summary refs log tree commit diff
path: root/pkgs/test/haskell/setBuildTarget
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-07-13 15:37:22 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-07-13 15:37:22 +0200
commit3e19234f34b4ac3090771e9b72e24870e820486a (patch)
treea6dd53225fb3418774b1799047c5695ba4f07fb3 /pkgs/test/haskell/setBuildTarget
parent6bd0c16f89c88abca07c684d30584124cd979224 (diff)
tests.haskell: set meta.platforms
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).
Diffstat (limited to 'pkgs/test/haskell/setBuildTarget')
-rw-r--r--pkgs/test/haskell/setBuildTarget/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/test/haskell/setBuildTarget/default.nix b/pkgs/test/haskell/setBuildTarget/default.nix
index b1335e2a74cf9..5a8391d088614 100644
--- a/pkgs/test/haskell/setBuildTarget/default.nix
+++ b/pkgs/test/haskell/setBuildTarget/default.nix
@@ -30,7 +30,12 @@ let
          fi
      '';
 
-in pkgs.runCommand "test haskell.lib.setBuildTarget" {} ''
+in
+pkgs.runCommand "test haskell.lib.setBuildTarget" {
+  meta = {
+    inherit (drv.meta) platforms;
+  };
+} ''
   ${test "foo" "bar"}
   ${test "bar" "foo"}
   touch "$out"