tests.haskell.shellFor: use writeText instead of toFile
This commit is contained in:
parent
9a0dc0fa3e
commit
1bfa5e1291
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue