a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
44 lines
901 B
Nix
44 lines
901 B
Nix
{ depot, pkgs, ... }:
|
|
|
|
(depot.nix.buildLisp.program {
|
|
name = "mblog";
|
|
|
|
srcs = [
|
|
./packages.lisp
|
|
./maildir.lisp
|
|
./transformer.lisp
|
|
./note.lisp
|
|
./mblog.lisp
|
|
./cli.lisp
|
|
];
|
|
|
|
deps = [
|
|
{
|
|
sbcl = depot.nix.buildLisp.bundled "uiop";
|
|
default = depot.nix.buildLisp.bundled "asdf";
|
|
}
|
|
depot.lisp.klatre
|
|
depot.third_party.lisp.alexandria
|
|
depot.third_party.lisp.closure-html
|
|
depot.third_party.lisp.cl-date-time-parser
|
|
depot.third_party.lisp.cl-who
|
|
depot.third_party.lisp.local-time
|
|
depot.third_party.lisp.mime4cl
|
|
];
|
|
|
|
main = "cli:main";
|
|
|
|
# due to sclf
|
|
brokenOn = [
|
|
"ccl"
|
|
"ecl"
|
|
];
|
|
}).overrideAttrs (super: {
|
|
# The built binary dispatches based on argv[0]. Building two executables would
|
|
# waste a lot of space.
|
|
buildCommand = ''
|
|
${super.buildCommand}
|
|
|
|
ln -s "$out/bin/mblog" "$out/bin/mnote-html"
|
|
'';
|
|
})
|