Skip to content

Commit fa9597f

Browse files
committed
Skip cabal-doctests test when cross compiling
1 parent c659d88 commit fa9597f

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

test/cabal-doctests/default.nix

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Test a package set
2-
{ stdenv, util, cabalProject', haskellLib, gmp6, zlib, recurseIntoAttrs }:
2+
{ stdenv, util, cabalProject', haskellLib, gmp6, zlib, recurseIntoAttrs, runCommand }:
33

44
with stdenv.lib;
55

@@ -42,7 +42,19 @@ let
4242

4343
in
4444

45-
recurseIntoAttrs {
45+
# Making this work for cross compilers will be difficult. Skipping for now.
46+
recurseIntoAttrs (if stdenv.buildPlatform != stdenv.hostPlatform
47+
then
48+
let skip = runCommand "skipping-test-cabal-doctests" {} ''
49+
echo "Skipping cabal-doctests test on cross compilers (does not work yet)" >& 2
50+
touch $out
51+
'';
52+
in {
53+
ifdInputs = { plan-nix = skip; };
54+
env = skip;
55+
run = skip;
56+
}
57+
else {
4658
ifdInputs = {
4759
inherit (project) plan-nix;
4860
};
@@ -70,4 +82,4 @@ recurseIntoAttrs {
7082
inherit project packages;
7183
};
7284
};
73-
}
85+
})

0 commit comments

Comments
 (0)