mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
3e19234f34
This allows packagePlatforms to pick up on the overall supported platforms and schedule builds on Hydra for more than the evaluation platform (usually x86_64-linux).
27 lines
712 B
Nix
27 lines
712 B
Nix
# 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
|
|
path
|
|
;
|
|
in
|
|
|
|
runCommand "test-haskell-writers" {
|
|
meta = {
|
|
inherit (tests.writers.meta) platforms;
|
|
};
|
|
} ''
|
|
${writeTest "success" "test-haskell-bin-writer" "${bin.haskell}/bin/${bin.haskell.name}"}
|
|
${writeTest "success" "test-haskell-simple-writer" simple.haskell}
|
|
${writeTest "success" "test-haskell-path-writer" path.haskell}
|
|
touch $out
|
|
''
|