summary refs log tree commit diff
diff options
context:
space:
mode:
authorJani Mustonen <janijohannes@kapsi.fi>2017-08-05 18:56:41 +0300
committerGitHub <noreply@github.com>2017-08-05 18:56:41 +0300
commit0777dba5e1f7454d2ed4e477b63f8ad2f26e32d0 (patch)
tree60e7529f9e83fe906df20b9526a82979c02070b5
parentAdd basic nix expressions (#47) (diff)
downloadnheko-0777dba5e1f7454d2ed4e477b63f8ad2f26e32d0.tar.xz
Nix: ignore earlier build results
-rw-r--r--package.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/package.nix b/package.nix

index 915f9db3..134d1d74 100644 --- a/package.nix +++ b/package.nix
@@ -2,7 +2,12 @@ stdenv.mkDerivation rec { version = "0.1.0"; name = "nheko-${version}"; - src = ./.; + src = builtins.filterSource + (path: type: + let name = baseNameOf path; + in !((type == "directory" && (name == ".git" || name == "build")) || + (type == "symlink" && name == "result") )) + ./.; nativeBuildInputs = [ cmake ]; buildInputs = [ qtbase qttranslations lmdb ]; installPhase = ''