mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-16 13:51:19 +01:00
perf(nix): stamp the commit only into the final macOS package
As for Windows and KDE: COMMIT_HASH was in the kfm commonArgs, so buildDepsOnly (about 1000 dependencies) and every kfm check got a new derivation for every commit and rebuilt in full on the Mac. commonArgs now has the constant "nix-check"; only fullBuild, and so packages.default and the extracted binaries, gets the real commit. Verified: the darwin clippy, nextest and deps attributes cannot be evaluated on this Linux host (a derivation of the stub source has to be built), so the drvPath table of the other attributes is the evidence; see the report. Needs a Mac build: after one cold build of the clippy check, a docs-only commit must be a cache hit.
This commit is contained in:
1 parent
af5ac69749
commit
7bfaf6479d
1 file changed
+4
-1
@@ -143,7 +143,9 @@
|
||||
cargoExtraArgs = "--locked ${packages}";
|
||||
inherit src version;
|
||||
strictDeps = true;
|
||||
COMMIT_HASH = self.rev or (pkgs.lib.removeSuffix "-dirty" (self.dirtyRev or "unknown"));
|
||||
# a constant, so that the dependencies and every check are the same derivations for
|
||||
# every commit; only fullBuild stamps the real one
|
||||
COMMIT_HASH = "nix-check";
|
||||
nativeBuildInputs = [
|
||||
pkgs.darwin.cctools
|
||||
];
|
||||
@@ -171,6 +173,7 @@
|
||||
individualCrateArgs
|
||||
// {
|
||||
pname = "komorebi-workspace";
|
||||
COMMIT_HASH = self.rev or (pkgs.lib.removeSuffix "-dirty" (self.dirtyRev or "unknown"));
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in new issue
Block a user