mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-04 06:46:38 -04:00
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:
parent
0212ee7177
commit
904a8aff78
2 changed files with 3 additions and 1 deletions
|
|
@ -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 ++ [];
|
||||
|
|
|
|||
|
|
@ -20,10 +20,11 @@
|
|||
libGL,
|
||||
enableXWayland ? true,
|
||||
debug ? false,
|
||||
gitRev ? "unknown",
|
||||
}:
|
||||
stdenv.mkDerivation {
|
||||
pname = "mango";
|
||||
version = "nightly";
|
||||
version = "nightly-${gitRev}";
|
||||
|
||||
src = builtins.path {
|
||||
path = ../.;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue