2020-07-22 22:28:34 +02:00
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
|
|
|
let
|
2021-12-14 22:32:27 +01:00
|
|
|
src = with pkgs; srcOnly lispPackages.trivial-mimes;
|
2020-07-22 22:28:34 +02:00
|
|
|
|
2022-01-30 17:06:58 +01:00
|
|
|
mime-types = pkgs.runCommand "mime-types.lisp" { } ''
|
2020-07-22 22:28:34 +02:00
|
|
|
substitute ${src}/mime-types.lisp $out \
|
2021-08-09 02:47:07 +02:00
|
|
|
--replace /etc/mime.types ${src}/mime.types \
|
|
|
|
--replace "(asdf:system-source-directory :trivial-mimes)" '"/bogus-dir"'
|
|
|
|
# We want to prevent an ASDF lookup at build time since this will
|
|
|
|
# generally fail — we are not using ASDF after all.
|
2020-07-22 22:28:34 +02:00
|
|
|
'';
|
|
|
|
|
2022-01-30 17:06:58 +01:00
|
|
|
in
|
|
|
|
depot.nix.buildLisp.library {
|
2020-07-22 22:28:34 +02:00
|
|
|
name = "trivial-mimes";
|
|
|
|
|
|
|
|
deps = [
|
2021-08-09 02:47:07 +02:00
|
|
|
{
|
|
|
|
sbcl = depot.nix.buildLisp.bundled "uiop";
|
|
|
|
default = depot.nix.buildLisp.bundled "asdf";
|
|
|
|
}
|
2020-07-22 22:28:34 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
srcs = [ mime-types ];
|
|
|
|
}
|