diff --git a/flake.nix b/flake.nix index bd8a453..588fecf 100644 --- a/flake.nix +++ b/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 { default = packages; packages = { ... }: {