From 37782b8f4833ec9208e021f5cb4ab954c8b390a6 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 21 Nov 2024 22:51:31 -0700 Subject: [PATCH] Update --- flake.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 9a50704..63928f8 100644 --- a/flake.nix +++ b/flake.nix @@ -23,11 +23,12 @@ in (type == "regular") && (builtins.elem bname names); - npSrc = pkgs.lib.cleanSourceWith { - filter = name: type: - (type == "directory") || (naiveFilter ["package.json" "yarn.lock"] name type); - src = ./.; - }; + mkNpSrc = src: + pkgs.lib.cleanSourceWith { + inherit src; + filter = name: type: + (type == "directory") || (naiveFilter ["package.json" "yarn.lock"] name type); + }; mimeTypes = pkgs.concatTextFile { name = "mime.types"; files = [./mime.types];