Permalink
Browse files

default.nix: don't hardcode the version

Nix expressions will always just set it according to source,
but let's still provide a default for convenience.
  • Loading branch information...
1 parent 307b1e1 commit 1b60645552e80325471a76a546bca209207097b1 @domenkozar domenkozar committed Jun 23, 2016
Showing with 2 additions and 4 deletions.
  1. +0 −1 .version
  2. +2 −3 default.nix
View
@@ -1 +0,0 @@
-2016.06
View
@@ -1,10 +1,10 @@
# Run like this:
# nix-build /path/to/this/directory
-# ... and the files are produced in ./result/
+# ... and the files are produced in ./result/bin/snabb
{ pkgs ? (import <nixpkgs> {})
, source ? ./.
-, version ? builtins.replaceStrings ["\n"] [""] (builtins.readFile ./.version)
+, version ? "dev"
}:
with pkgs;
@@ -39,5 +39,4 @@ stdenv.mkDerivation rec {
'';
enableParallelBuilding = true;
-
}

0 comments on commit 1b60645

Please sign in to comment.