2021-07-13 15:19:36 +02:00
|
|
|
# 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
|
2021-07-13 15:22:34 +02:00
|
|
|
path
|
2021-07-13 15:19:36 +02:00
|
|
|
;
|
|
|
|
in
|
|
|
|
|
2021-07-13 15:37:22 +02:00
|
|
|
runCommand "test-haskell-writers" {
|
|
|
|
meta = {
|
|
|
|
inherit (tests.writers.meta) platforms;
|
|
|
|
};
|
|
|
|
} ''
|
2021-07-13 15:19:36 +02:00
|
|
|
${writeTest "success" "test-haskell-bin-writer" "${bin.haskell}/bin/${bin.haskell.name}"}
|
|
|
|
${writeTest "success" "test-haskell-simple-writer" simple.haskell}
|
2021-07-13 15:22:34 +02:00
|
|
|
${writeTest "success" "test-haskell-path-writer" path.haskell}
|
2021-07-13 15:19:36 +02:00
|
|
|
touch $out
|
|
|
|
''
|