default.nix: exlcude result from source

This commit is contained in:
Michele Guerini Rocco 2021-12-15 02:31:20 +01:00
parent da1ddd186e
commit 095ee7ecf2
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -17,7 +17,7 @@ let
# Exclude this file and build artifacts
source = builtins.filterSource
(path: type:
!builtins.elem path [ "configure.mk" "default.nix" ]
!builtins.elem path [ "configure.mk" "default.nix" "result" ]
&& baseNameOf path != "build") ./.;
inherit (nixpkgs) lib pkgs;