mirror of
https://github.com/DreamMaoMao/maomaowm.git
synced 2026-05-05 06:47:12 -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 ;
|
inherit (pkgs) callPackage ;
|
||||||
mango = callPackage ./nix {
|
mango = callPackage ./nix {
|
||||||
inherit (inputs.scenefx.packages.${pkgs.stdenv.hostPlatform.system}) scenefx;
|
inherit (inputs.scenefx.packages.${pkgs.stdenv.hostPlatform.system}) scenefx;
|
||||||
|
gitRev = self.shortRev or "dirty";
|
||||||
};
|
};
|
||||||
shellOverride = old: {
|
shellOverride = old: {
|
||||||
nativeBuildInputs = old.nativeBuildInputs ++ [];
|
nativeBuildInputs = old.nativeBuildInputs ++ [];
|
||||||
|
|
|
||||||
|
|
@ -20,10 +20,11 @@
|
||||||
libGL,
|
libGL,
|
||||||
enableXWayland ? true,
|
enableXWayland ? true,
|
||||||
debug ? false,
|
debug ? false,
|
||||||
|
gitRev ? "unknown",
|
||||||
}:
|
}:
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
pname = "mango";
|
pname = "mango";
|
||||||
version = "nightly";
|
version = "nightly-${gitRev}";
|
||||||
|
|
||||||
src = builtins.path {
|
src = builtins.path {
|
||||||
path = ../.;
|
path = ../.;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue