Skip to content

Commit

Permalink
fix flake version string issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Lagoja committed Nov 22, 2024
1 parent 3c4df04 commit a9522f4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,19 @@

lastTag = "0.13.6";

revision = if (self ? shortRev)
then "${self.shortRev}"
else "${self.dirtyShortRev or "dirty"}";
revision =
if (self ? shortRev)
then "${self.shortRev}"
else "${self.dirtyShortRev or "dirty"}";

# Add the commit to the version string for flake builds
version = "${lastTag}-${revision}";
version = "${lastTag}";

# Run `devbox run update-flake` to update the vendor-hash
vendorHash = if builtins.pathExists ./vendor-hash
then builtins.readFile ./vendor-hash
else "";
vendorHash =
if builtins.pathExists ./vendor-hash
then builtins.readFile ./vendor-hash
else "";

buildGoModule = pkgs.buildGo123Module;

Expand Down

0 comments on commit a9522f4

Please sign in to comment.