summary refs log tree commit diff
path: root/pkgs/test/haskell/writers/default.nix
blob: aa99e2c3c05219464a9c2c69c91ed5711290d8b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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
''