Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,7 @@

with nixpkgs;

let
arx' = haskellPackages.arx.overrideAttrs (o: {
patchPhase = (o.patchPhase or "") + ''
substituteInPlace model-scripts/tmpx.sh \
--replace /tmp/ \$HOME/.cache/
'';
});
in rec {
rec {
toStorePath = target:
# If a store path has been given but is not a derivation, add the missing context
# to it so it will be propagated properly as a build input.
Expand All @@ -24,7 +17,12 @@ in rec {
stdenv.mkDerivation {
name = "arx";
buildCommand = ''
${arx'}/bin/arx tmpx --shared -rm! ${archive} -o $out // ${startup}
# tmpdir has a additional `/` in the beginning to work around `QualifiedPath` checking for `|/|./|../|`
${haskellPackages.arx}/bin/arx tmpx \
--tmpdir '/$HOME/.cache' \
--shared \
-rm! ${archive} \
-o $out // ${startup}
chmod +x $out
'';
};
Expand Down