Merge branch 'shared-tmpdir'
commit014d3a620962407179822496c833b57690d0bf60
authorMatthew Bauer <mjbauer95@gmail.com>
dateWed 25 Apr 2018, 14:30 (8 years ago)
parent89185dbebbcafa
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/ \$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 };