tests.haskell.shellFor: use writeText instead of toFile
This commit is contained in:
parent
9a0dc0fa3e
commit
1bfa5e1291
|
@ -1,4 +1,4 @@
|
||||||
{ lib, haskellPackages, cabal-install }:
|
{ lib, writeText, haskellPackages, cabal-install }:
|
||||||
|
|
||||||
(haskellPackages.shellFor {
|
(haskellPackages.shellFor {
|
||||||
packages = p: [ p.constraints p.linear ];
|
packages = p: [ p.constraints p.linear ];
|
||||||
|
@ -10,7 +10,7 @@
|
||||||
cd "$sourceRoot"
|
cd "$sourceRoot"
|
||||||
tar -xf ${haskellPackages.constraints.src}
|
tar -xf ${haskellPackages.constraints.src}
|
||||||
tar -xf ${haskellPackages.linear.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 = ''
|
buildPhase = ''
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
|
|
Loading…
Reference in New Issue