Add lisp util functions

This commit is contained in:
niten 2024-05-29 17:25:38 -07:00
parent 31ff4f6412
commit df16233130
1 changed files with 11 additions and 0 deletions

View File

@ -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 {
default = packages;
packages = { ... }: {