From c98ea7a17b34c9eb19cfbbe1180265736a86be14 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Fri, 22 Nov 2024 01:17:21 -0700 Subject: [PATCH] Add noFlakeSrc --- flake.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/flake.nix b/flake.nix index e9e17bc..32749a3 100644 --- a/flake.nix +++ b/flake.nix @@ -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;