Set version properly
This commit is contained in:
parent
4fdec5f61d
commit
36c34c3b1f
1 changed files with 7 additions and 5 deletions
10
flake.nix
10
flake.nix
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue