Add lisp util functions
This commit is contained in:
parent
31ff4f6412
commit
df16233130
11
flake.nix
11
flake.nix
|
@ -74,6 +74,17 @@
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
lib = let
|
||||||
|
gatherDependencies = with nixpkgs.lib;
|
||||||
|
pkg:
|
||||||
|
unique (pkg.propagatedBuildInputs
|
||||||
|
++ (concatMap gatherDepdendencies pkg.propagatedBuildInputs));
|
||||||
|
|
||||||
|
lispSourceRegistry = pkg:
|
||||||
|
nixpkgs.lib.concatStringsSep ":"
|
||||||
|
(map (p: "${p}//") (gatherDependencies pkg));
|
||||||
|
in { inherit gatherDependencies lispSourceRegistry; };
|
||||||
|
|
||||||
nixosModules = rec {
|
nixosModules = rec {
|
||||||
default = packages;
|
default = packages;
|
||||||
packages = { ... }: {
|
packages = { ... }: {
|
||||||
|
|
Loading…
Reference in New Issue