nix: include git rev in version to avoid cache issues

Changes version from "nightly" to "nightly-<gitRev>" so each commit
gets a unique derivation hash, forcing rebuilds when flake inputs update.
This commit is contained in:
Andrej Novikov 2025-12-16 23:02:54 +02:00
parent 0212ee7177
commit 904a8aff78
No known key found for this signature in database
GPG key ID: 0B3D7DD3D63C5E4C
2 changed files with 3 additions and 1 deletions

View file

@ -31,6 +31,7 @@
inherit (pkgs) callPackage ;
mango = callPackage ./nix {
inherit (inputs.scenefx.packages.${pkgs.stdenv.hostPlatform.system}) scenefx;
gitRev = self.shortRev or "dirty";
};
shellOverride = old: {
nativeBuildInputs = old.nativeBuildInputs ++ [];

View file

@ -20,10 +20,11 @@
libGL,
enableXWayland ? true,
debug ? false,
gitRev ? "unknown",
}:
stdenv.mkDerivation {
pname = "mango";
version = "nightly";
version = "nightly-${gitRev}";
src = builtins.path {
path = ../.;