fix(nix): don't add git rev to package version

causes a full deps rebuild each commit 🫠
This commit is contained in:
uku 2025-05-12 16:42:37 +02:00
parent 89390e4f3f
commit 09b4829281
Signed by: uku
SSH key fingerprint: SHA256:4P0aN6M8ajKukNi6aPOaX0LacanGYtlfjmN+m/sHY/o
2 changed files with 3 additions and 13 deletions

View file

@ -1,5 +1,4 @@
{
self,
lib,
craneLib,
mold-wrapped,
@ -9,11 +8,10 @@
}:
let
cargoToml = lib.importTOML ./Cargo.toml;
rev = self.shortRev or self.dirtyShortRev or "dirty";
in
craneLib.buildPackage {
pname = cargoToml.package.name;
version = "${cargoToml.package.version}+git.${rev}";
inherit (cargoToml.package) version;
src = craneLib.cleanCargoSource ./.;