Skip to content

Commit 3f94083

Browse files
committed
fix revision issue
1 parent 37c36a1 commit 3f94083

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

flake.nix

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
description = "Instant, easy, predictable shells and containers";
2+
description = "Instant, easy, predictable dev environments";
33

44
inputs = {
55
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
@@ -16,9 +16,9 @@
1616
# Add the commit to the version string, in case someone builds from main
1717
getVersion = pkgs.lib.trivial.pipe self [
1818
(x: "${lastTag}")
19-
(x: if (self ? revCount)
19+
(x: if (self ? shortRev)
2020
then "${x}-${self.shortRev}"
21-
else "${x}-${self.dirtyShortRev}")
21+
else "${x}-${if self ? dirtyShortRev then self.dirtyShortRev else "dirty"}")
2222
];
2323

2424
# Run `devbox run update-flake` to update the vendorHash

0 commit comments

Comments
 (0)