on master help sign in
Store temp files in $HOME/.cache

This hopefully means we can reuse it.

commitd371f1a5a6d8b94cfb074f2dd4a03f28a61764f8 authorMatthew Bauer <mjbauer95@gmail.com> dateTue 10 Apr 2018, 12:58 (9 years ago) parent5e49fbc
1 file changed+9−2
default.nix+9−2
default.nix+9−2
@@ -2,12 +2,19 @@
22
33with nixpkgs;
44
5−rec {
5+let
6+ arx' = haskellPackages.arx.overrideAttrs (o: {
7+ patchPhase = (o.patchPhase or "") + ''
8+ substituteInPlace model-scripts/tmpx.sh \
9+ --replace "/tmp/" ' ''${XDG_CACHE_HOME:-"$HOME/.cache"}/'
10+ '';
11+ });
12+in rec {
613 arx = { archive, startup}:
714 stdenv.mkDerivation {
815 name = "arx";
916 buildCommand = ''
10− ${haskellPackages.arx}/bin/arx tmpx ${archive} -o $out // ${startup}
17+ ${arx'}/bin/arx tmpx --shared -rm! ${archive} -o $out // ${startup}
1118 chmod +x $out
1219 '';
1320 };