Skip to content

Commit

Permalink
default.nix: ignore some files/dirs when importing source
Browse files Browse the repository at this point in the history
fixes #35
  • Loading branch information
Mic92 committed Apr 30, 2021
1 parent 879a4bd commit c57d8de
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "nixos-shell";
src = ./.;
src = builtins.filterSource
(path: type: baseNameOf path != "nixos.qcow2" &&
baseNameOf path != ".git" &&
baseNameOf path != ".direnv" &&
baseNameOf path != "result"
) ./.;
buildInputs = [ bash ];
preConfigure = ''
export PREFIX=$out
Expand Down

0 comments on commit c57d8de

Please sign in to comment.