Skip to content

Commit

Permalink
.version: Add newline
Browse files Browse the repository at this point in the history
  • Loading branch information
roberth committed Dec 7, 2022
1 parent 9c97685 commit cc27bd0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.13.0
2.13.0
7 changes: 4 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@

let

version = builtins.readFile ./.version + versionSuffix;
officialRelease = false;

version = strip (builtins.readFile ./.version) + versionSuffix;
strip = nixpkgs.lib.removeSuffix "\n";
versionSuffix =
if officialRelease
then ""
else "pre${builtins.substring 0 8 (self.lastModifiedDate or self.lastModified or "19700101")}_${self.shortRev or "dirty"}";

officialRelease = false;

linux64BitSystems = [ "x86_64-linux" "aarch64-linux" ];
linuxSystems = linux64BitSystems ++ [ "i686-linux" ];
systems = linuxSystems ++ [ "x86_64-darwin" "aarch64-darwin" ];
Expand Down

0 comments on commit cc27bd0

Please sign in to comment.