nix: don't write to /nix/store from hsie build (fixes #2304)

This is a kind of hacky fix to the kind of hacky hsie derivation.
This commit is contained in:
Robert Vollmert
2022-06-07 21:36:38 +02:00
committed by Robert
parent e3252a6e9e
commit 4ff2469f57
+6 -1
View File
@@ -16,7 +16,12 @@ let
ghc = ghcWithPackages modules;
hsie =
runCommand "haskellimports" { inherit name src; }
"${ghc}/bin/ghc -O -Werror -Wall -package ghc $src -o $out";
''
cd $TMP
cp $src $TMP/Main.hs
${ghc}/bin/ghc -O -Werror -Wall -package ghc Main.hs -o Main
cp Main $out
'';
bin =
runCommand name { inherit hsie name; }
''