2022-07-09 13:25:32 +02:00
|
|
|
# SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
# SPDX-FileCopyrightText: Copyright (C) 2022 by sterni
|
2021-08-02 15:13:05 +02:00
|
|
|
{ depot, pkgs, ... }:
|
|
|
|
|
2022-01-29 16:18:19 +01:00
|
|
|
(depot.nix.buildLisp.program {
|
|
|
|
name = "mblog";
|
2021-08-02 15:13:05 +02:00
|
|
|
|
|
|
|
srcs = [
|
|
|
|
./packages.lisp
|
2021-11-30 17:42:05 +01:00
|
|
|
./maildir.lisp
|
2021-08-02 15:13:05 +02:00
|
|
|
./transformer.lisp
|
|
|
|
./note.lisp
|
2022-01-29 16:18:19 +01:00
|
|
|
./mblog.lisp
|
2021-08-02 15:13:05 +02:00
|
|
|
./cli.lisp
|
|
|
|
];
|
|
|
|
|
|
|
|
deps = [
|
|
|
|
{
|
|
|
|
sbcl = depot.nix.buildLisp.bundled "uiop";
|
|
|
|
default = depot.nix.buildLisp.bundled "asdf";
|
|
|
|
}
|
2022-01-29 16:18:19 +01:00
|
|
|
depot.lisp.klatre
|
2021-08-02 15:13:05 +02:00
|
|
|
depot.third_party.lisp.alexandria
|
|
|
|
depot.third_party.lisp.closure-html
|
2022-01-13 00:33:59 +01:00
|
|
|
depot.third_party.lisp.cl-date-time-parser
|
2021-08-02 15:13:05 +02:00
|
|
|
depot.third_party.lisp.cl-who
|
2022-01-29 16:18:19 +01:00
|
|
|
depot.third_party.lisp.local-time
|
2021-08-02 15:13:05 +02:00
|
|
|
depot.third_party.lisp.mime4cl
|
|
|
|
];
|
|
|
|
|
2022-01-29 16:18:19 +01:00
|
|
|
main = "cli:main";
|
2021-08-02 15:13:05 +02:00
|
|
|
|
|
|
|
# due to sclf
|
|
|
|
brokenOn = [
|
|
|
|
"ccl"
|
|
|
|
"ecl"
|
|
|
|
];
|
2022-01-29 16:18:19 +01:00
|
|
|
}).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"
|
|
|
|
'';
|
|
|
|
})
|