release.nix: refactor with fileContents

This commit is contained in:
Eric Sagnes 2016-07-31 22:05:38 +09:00
parent e276842f6a
commit 1114ab41e6

View file

@ -7,7 +7,7 @@ with import ../lib;
let
version = builtins.readFile ../.version;
version = fileContents ../.version;
versionSuffix =
(if stableBranch then "." else "pre") + "${toString nixpkgs.revCount}.${nixpkgs.shortRev}";