Skip to content

Commit c57d8de

Browse files
committed
default.nix: ignore some files/dirs when importing source
fixes #35
1 parent 879a4bd commit c57d8de

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

default.nix

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
with import <nixpkgs> {};
22
stdenv.mkDerivation {
33
name = "nixos-shell";
4-
src = ./.;
4+
src = builtins.filterSource
5+
(path: type: baseNameOf path != "nixos.qcow2" &&
6+
baseNameOf path != ".git" &&
7+
baseNameOf path != ".direnv" &&
8+
baseNameOf path != "result"
9+
) ./.;
510
buildInputs = [ bash ];
611
preConfigure = ''
712
export PREFIX=$out

0 commit comments

Comments
 (0)