summary refs log tree commit diff
path: root/pkgs/test
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-07-13 15:19:36 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-07-13 15:19:36 +0200
commit52acca72bff778d492aac4aceb144d12b2d7c771 (patch)
treeab4a00efb5771f5af19d582bf41d4aee9de87d8e /pkgs/test
parentb7a0833e686e6d5dd9dca7e07ece90bf813ee3a9 (diff)
downloadnixpkgs-52acca72bff778d492aac4aceb144d12b2d7c771.tar
nixpkgs-52acca72bff778d492aac4aceb144d12b2d7c771.tar.gz
nixpkgs-52acca72bff778d492aac4aceb144d12b2d7c771.tar.bz2
nixpkgs-52acca72bff778d492aac4aceb144d12b2d7c771.tar.lz
nixpkgs-52acca72bff778d492aac4aceb144d12b2d7c771.tar.xz
nixpkgs-52acca72bff778d492aac4aceb144d12b2d7c771.tar.zst
nixpkgs-52acca72bff778d492aac4aceb144d12b2d7c771.zip
top-level/release-haskell.nix: test writers on all platforms
Since the rust writer doesn't seem to get fixed on darwin, we'll just
wrap the haskell writer test in our own derivation (which is possible
since tests.writers exposes a bunch of internals via passthru) and
expose it via tests.haskell which are already in mergeable.

Finally a way to test the (hopefully) working haskell writer on darwin
again!
Diffstat (limited to 'pkgs/test')
-rw-r--r--pkgs/test/haskell/default.nix1
-rw-r--r--pkgs/test/haskell/writers/default.nix20
2 files changed, 21 insertions, 0 deletions
diff --git a/pkgs/test/haskell/default.nix b/pkgs/test/haskell/default.nix
index eb389f4051f..03e4f346155 100644
--- a/pkgs/test/haskell/default.nix
+++ b/pkgs/test/haskell/default.nix
@@ -4,4 +4,5 @@ lib.recurseIntoAttrs {
   shellFor = callPackage ./shellFor { };
   documentationTarball = callPackage ./documentationTarball { };
   setBuildTarget = callPackage ./setBuildTarget { };
+  writers = callPackage ./writers { };
 }
diff --git a/pkgs/test/haskell/writers/default.nix b/pkgs/test/haskell/writers/default.nix
new file mode 100644
index 00000000000..aa99e2c3c05
--- /dev/null
+++ b/pkgs/test/haskell/writers/default.nix
@@ -0,0 +1,20 @@
+# Wrap only the haskell-related tests from tests.writers
+# in their own derivation for Hydra CI in the haskell-updates
+# jobset. Can presumably removed as soon as tests.writers is
+# always green on darwin as well:
+# https://github.com/NixOS/nixpkgs/issues/126182
+{ runCommand, tests }:
+
+let
+  inherit (tests.writers)
+    writeTest
+    bin
+    simple
+    ;
+in
+
+runCommand "test-haskell-writers" {} ''
+  ${writeTest "success" "test-haskell-bin-writer" "${bin.haskell}/bin/${bin.haskell.name}"}
+  ${writeTest "success" "test-haskell-simple-writer" simple.haskell}
+  touch $out
+''