blob: 6ad8a10ce3782b971f71fba9878ef271d4f458a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# SPDX-License-Identifier: GPL-3.0-only
# SPDX-FileCopyrightText: Copyright (C) 2022-2023 by sterni
{ depot, pkgs, ... }:
(depot.nix.buildLisp.program {
name = "mblog";
srcs = [
./packages.lisp
./config.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"
'';
})
|