From 541bdd67bf406e9d54e36401fb85b08f8c6abba9 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Mon, 16 May 2022 14:42:10 +0000 Subject: Remove Nix files in copyPathToStore Nix files shouldn't be considered part of the sources, and so they should be filtered out. This way, changes to them (that don't change their meaning) won't force rebuilds. --- vm/app/catgirl/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'vm/app/catgirl') diff --git a/vm/app/catgirl/default.nix b/vm/app/catgirl/default.nix index 4e700f8..2b27710 100644 --- a/vm/app/catgirl/default.nix +++ b/vm/app/catgirl/default.nix @@ -13,7 +13,7 @@ pkgs.pkgsStatic.callPackage ( }: let - inherit (lib) cleanSource cleanSourceWith concatMapStringsSep; + inherit (lib) cleanSource cleanSourceWith concatMapStringsSep hasSuffix; packages = [ catgirl execline kmod mdevd s6 s6-linux-init s6-rc @@ -65,7 +65,9 @@ stdenv.mkDerivation { name = "spectrum-appvm-catgirl"; src = cleanSourceWith { - filter = name: _type: name != "${toString ./.}/build"; + filter = name: _type: + name != "${toString ./.}/build" && + !(hasSuffix ".nix" name); src = cleanSource ./.; }; -- cgit 1.4.1