Add noFlakeSrc

This commit is contained in:
Ivan Malison 2024-11-22 01:17:21 -07:00
parent 4cfd35338f
commit c98ea7a17b

View File

@ -23,6 +23,13 @@
in
(type == "regular") && (builtins.elem bname names);
noFlakeSrc = src:
pkgs.lib.cleanSourceWith {
inherit src;
filter = path: type:
!(baseNameOf path == "flake.nix" || baseNameOf path == "flake.lock" || baseNameOf path == "mime.types");
};
mkNpSrc = src:
pkgs.lib.cleanSourceWith {
inherit src;