about summary refs log tree commit diff
path: root/pkgs/test/haskell
diff options
context:
space:
mode:
authorDennis Gosnell <cdep.illabout@gmail.com>2024-01-15 18:25:53 +0900
committerDennis Gosnell <cdep.illabout@gmail.com>2024-01-15 18:25:53 +0900
commit9cc4b19ee67ccf6a7137d2570fc788f8cad8382b (patch)
treeaa6d7e5b10312363d333807cba381432e92660a4 /pkgs/test/haskell
parent65b9499b84bde1af8c256cec92950668cf97aca9 (diff)
tests.haskell.shellFor: change from using linear to cereal
The current version of linear (1.22) has incorrect constraints in its
cabal file (which has been corrected in a revision), so it is causing
this test to fail.

This commit just switches to another arbitrary package (cereal) for the
tests.
Diffstat (limited to 'pkgs/test/haskell')
-rw-r--r--pkgs/test/haskell/shellFor/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/test/haskell/shellFor/default.nix b/pkgs/test/haskell/shellFor/default.nix
index 83daf079cc0f2..82cd9e38e7315 100644
--- a/pkgs/test/haskell/shellFor/default.nix
+++ b/pkgs/test/haskell/shellFor/default.nix
@@ -1,7 +1,7 @@
 { lib, writeText, haskellPackages, cabal-install }:
 
 (haskellPackages.shellFor {
-  packages = p: [ p.constraints p.linear ];
+  packages = p: [ p.constraints p.cereal ];
   # WARNING: When updating this, make sure that the libraries passed to
   # `extraDependencies` are not actually transitive dependencies of libraries in
   # `packages` above.  We explicitly want to test that it is possible to specify
@@ -14,8 +14,8 @@
     mkdir -p "$sourceRoot"
     cd "$sourceRoot"
     tar -xf ${haskellPackages.constraints.src}
-    tar -xf ${haskellPackages.linear.src}
-    cp ${writeText "cabal.project" "packages: constraints* linear*"} cabal.project
+    tar -xf ${haskellPackages.cereal.src}
+    cp ${writeText "cabal.project" "packages: constraints* cereal*"} cabal.project
   '';
   buildPhase = ''
     export HOME=$(mktemp -d)
@@ -37,7 +37,7 @@
     fi
 
     # Check packages arg
-    cabal v2-build --offline --verbose constraints linear --ghc-options="-O0 -j$NIX_BUILD_CORES"
+    cabal v2-build --offline --verbose constraints cereal --ghc-options="-O0 -j$NIX_BUILD_CORES"
   '';
   installPhase = ''
     touch $out