Skip to content

Commit

Permalink
Snabb version is now statically stored in .version
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Jun 10, 2016
1 parent 0d4cf92 commit 738ef31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .version
@@ -0,0 +1 @@
2016.06
8 changes: 4 additions & 4 deletions default.nix
Expand Up @@ -3,15 +3,15 @@
# ... and the files are produced in ./result/

{ pkgs ? (import <nixpkgs> {})
, src ? ./.
, version ? builtins.replaceStrings ["\n"] [""] (builtins.readFile ./.version)
}:

with pkgs;

stdenv.mkDerivation rec {
# TODO: get the version from somewhere?
name = "snabb";

src = ./.;
name = "snabb-${version}";
inherit src version;

buildInputs = [ makeWrapper ];

Expand Down

0 comments on commit 738ef31

Please sign in to comment.