Set version properly

This commit is contained in:
Eelco Dolstra 2020-04-01 00:20:12 +02:00
parent 4fdec5f61d
commit 36c34c3b1f

View file

@ -9,11 +9,11 @@
let
version =
builtins.readFile ./.version
+ (if officialRelease
version = builtins.readFile ./.version + versionSuffix;
versionSuffix =
if officialRelease
then ""
else "pre${builtins.substring 0 8 self.lastModified}_${self.shortRev or "dirty"}");
else "pre${builtins.substring 0 8 self.lastModified}_${self.shortRev or "dirty"}";
officialRelease = false;
@ -116,6 +116,8 @@
src = self;
VERSION_SUFFIX = versionSuffix;
outputs = [ "out" "dev" "doc" ];
buildInputs = buildDeps;