summaryrefslogtreecommitdiffstats
path: root/pkgs/test/haskell
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-05-01 13:36:24 +0200
committersterni <sternenseemann@systemli.org>2021-05-01 22:58:35 +0200
commit1bfa5e12913a04404d777a31fed5d4c5743865e6 (patch)
tree8da8c08a7819738871d59387d92325bf34516dcd /pkgs/test/haskell
parent9a0dc0fa3e19a360d28c8b102611feafad52afbd (diff)
tests.haskell.shellFor: use writeText instead of toFile
Diffstat (limited to 'pkgs/test/haskell')
-rw-r--r--pkgs/test/haskell/shellFor/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/test/haskell/shellFor/default.nix b/pkgs/test/haskell/shellFor/default.nix
index eeab231df402..37ad2e90d89e 100644
--- a/pkgs/test/haskell/shellFor/default.nix
+++ b/pkgs/test/haskell/shellFor/default.nix
@@ -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)