tests.haskell.shellFor: use writeText instead of toFile

This commit is contained in:
sternenseemann 2021-05-01 13:36:24 +02:00 committed by sterni
parent 9a0dc0fa3e
commit 1bfa5e1291

View file

@ -1,4 +1,4 @@
{ lib, haskellPackages, cabal-install }:
{ lib, writeText, haskellPackages, cabal-install }:
(haskellPackages.shellFor {
packages = p: [ p.constraints p.linear ];
@ -10,7 +10,7 @@
cd "$sourceRoot"
tar -xf ${haskellPackages.constraints.src}
tar -xf ${haskellPackages.linear.src}
cp ${builtins.toFile "cabal.project" "packages: constraints* linear*"} cabal.project
cp ${writeText "cabal.project" "packages: constraints* linear*"} cabal.project
'';
buildPhase = ''
export HOME=$(mktemp -d)