Skip to content

Commit 69ba0c1

Browse files
committed
Skip cabal-doctest test plan cross compiling
1 parent 1b2eae0 commit 69ba0c1

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/cabal-doctests/default.nix

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ let
1313

1414
packages = project.hsPkgs;
1515

16+
meta = {
17+
platforms = platforms.all;
18+
# Making this work for cross compilers will be difficult.
19+
disabled = stdenv.buildPlatform != stdenv.hostPlatform;
20+
};
21+
1622
in recurseIntoAttrs ({
1723
ifdInputs = {
18-
inherit (project) plan-nix;
24+
plan-nix = addMetaAttrs meta project.plan-nix;
1925
};
20-
2126
run = stdenv.mkDerivation {
2227
name = "cabal-doctests-test";
2328

@@ -30,12 +35,6 @@ in recurseIntoAttrs ({
3035
touch $out
3136
'';
3237

33-
meta = {
34-
platforms = platforms.all;
35-
# Making this work for cross compilers will be difficult.
36-
disabled = stdenv.buildPlatform != stdenv.hostPlatform;
37-
};
38-
3938
passthru = {
4039
# Used for debugging with nix repl
4140
inherit project packages;

0 commit comments

Comments
 (0)