Add flake.nix

This commit is contained in:
Eelco Dolstra
2019-05-08 13:28:02 +02:00
parent ff64583d07
commit 4172b5b290
3 changed files with 32 additions and 1 deletions

View File

@ -30,7 +30,8 @@ let
environment.systemPackages = [ pkgs.perlPackages.LWP pkgs.perlPackages.JSON ];
};
version = builtins.readFile ./version + "." + toString hydraSrc.revCount + "." + hydraSrc.rev;
# FIXME: use commit date.
version = builtins.readFile ./version + "." + toString hydraSrc.revCount or 0 + "." + hydraSrc.shortRev or "0000000";
in