flake.nix: remove $HOME at end of every build
Build and test / test (push) Failing after 1m51s
Build and test / build-static-library (push) Failing after 2m4s
Build and test / build-shared-library (push) Failing after 2m28s

It seems that crane accidentally creates these, and makes it so that the
nix builders in CI complains about leftovers.

See also: https://github.com/ipetkov/crane/issues/815
This commit is contained in:
2026-05-06 23:55:40 +09:00
parent 26f30de32e
commit a1aa06db32
+13
View File
@@ -81,6 +81,11 @@
inherit src;
strictDeps = true;
};
# https://github.com/ipetkov/crane/issues/815
postFixup = ''
[ -d "$HOME" ] && rm -rf "$HOME"
'';
};
tamerye-static-lib = craneLib.buildPackage {
@@ -109,6 +114,10 @@
};
cargoExtraArgs = lib.escapeShellArgs [ "--features" "static" ];
postFixup = ''
[ -d "$HOME" ] && rm -rf "$HOME"
'';
};
tamerye-tests = craneLib.cargoNextest {
@@ -135,6 +144,10 @@
partitions = 1;
partitionType = "count";
cargoNextestPartitionsExtraArgs = "--no-tests=pass";
postFixup = ''
[ -d "$HOME" ] && rm -rf "$HOME"
'';
};
});
};