summary refs log tree commit diff
path: root/pkgs/test
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
parent9a0dc0fa3e19a360d28c8b102611feafad52afbd (diff)
downloadnixpkgs-1bfa5e12913a04404d777a31fed5d4c5743865e6.tar
nixpkgs-1bfa5e12913a04404d777a31fed5d4c5743865e6.tar.gz
nixpkgs-1bfa5e12913a04404d777a31fed5d4c5743865e6.tar.bz2
nixpkgs-1bfa5e12913a04404d777a31fed5d4c5743865e6.tar.lz
nixpkgs-1bfa5e12913a04404d777a31fed5d4c5743865e6.tar.xz
nixpkgs-1bfa5e12913a04404d777a31fed5d4c5743865e6.tar.zst
nixpkgs-1bfa5e12913a04404d777a31fed5d4c5743865e6.zip
tests.haskell.shellFor: use writeText instead of toFile
Diffstat (limited to 'pkgs/test')
-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 eeab231df40..37ad2e90d89 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)