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:
@@ -16,7 +16,12 @@ let
|
|||||||
ghc = ghcWithPackages modules;
|
ghc = ghcWithPackages modules;
|
||||||
hsie =
|
hsie =
|
||||||
runCommand "haskellimports" { inherit name src; }
|
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 =
|
bin =
|
||||||
runCommand name { inherit hsie name; }
|
runCommand name { inherit hsie name; }
|
||||||
''
|
''
|
||||||
|
|||||||
Reference in New Issue
Block a user