a291c8690a
GitOrigin-RevId: e6e19f3d81a982a62e1bba08f0b4f7fdc21b4ea0
33 lines
675 B
Nix
33 lines
675 B
Nix
{ depot, ... }:
|
|
|
|
let
|
|
inherit (depot.nix) buildLisp;
|
|
|
|
# Example Lisp library.
|
|
#
|
|
# Currently the `name` attribute is only used for the derivation
|
|
# itself, it has no practical implications.
|
|
libExample = buildLisp.library {
|
|
name = "lib-example";
|
|
srcs = [
|
|
./lib.lisp
|
|
];
|
|
};
|
|
|
|
# Example Lisp program.
|
|
#
|
|
# This builds & writes an executable for a program using the library
|
|
# above to disk.
|
|
#
|
|
# By default, buildLisp.program expects the entry point to be
|
|
# `$name:main`. This can be overridden by configuring the `main`
|
|
# attribute.
|
|
in
|
|
buildLisp.program {
|
|
name = "example";
|
|
deps = [ libExample ];
|
|
|
|
srcs = [
|
|
./main.lisp
|
|
];
|
|
}
|