diff --git a/flake.nix b/flake.nix index 69d9c61..e61207a 100644 --- a/flake.nix +++ b/flake.nix @@ -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" + ''; }; }); };