File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 20
20
} ;
21
21
22
22
in recurseIntoAttrs ( {
23
+ # Making cabal-doctest work for cross compilers will be difficult.
24
+ meta . disabled = stdenv . buildPlatform != stdenv . hostPlatform || builtins . compareVersions
25
+ buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . version "9.0" >= 0 ;
23
26
ifdInputs = {
24
27
plan-nix = addMetaAttrs meta project . plan-nix ;
25
28
} ;
@@ -35,8 +38,6 @@ in recurseIntoAttrs ({
35
38
36
39
meta = {
37
40
platforms = platforms . all ;
38
- # Making cabal-doctest work for cross compilers will be difficult.
39
- disabled = stdenv . buildPlatform != stdenv . hostPlatform ;
40
41
} ;
41
42
42
43
passthru = {
Original file line number Diff line number Diff line change 10
10
with pkgs ;
11
11
12
12
let
13
+ inherit ( import ../ci-lib.nix ) dimension platformFilterGeneric filterAttrsOnlyRecursive ;
14
+ isDisabled = d : d . meta . disabled or false ;
15
+
13
16
# Set recurseForDerivations for both children and grand-children values in
14
17
# the input association list, but only if the key is "ifdInputs".
15
18
#
241
244
# - input ifdLevel is 3 or greater: return allTests
242
245
optionalIfdTests = ifdLevel :
243
246
pkgs . lib . optionalAttrs ( ifdLevel > 1 ) ( allTestsWithIfdInputs ifdLevel ) ;
244
- in pkgs . recurseIntoAttrs ( optionalIfdTests ifdLevel )
247
+ in filterAttrsOnlyRecursive ( _ : v : ! ( isDisabled v ) )
248
+ ( pkgs . recurseIntoAttrs ( optionalIfdTests ifdLevel ) )
245
249
246
250
## more possible test cases
247
251
# 1. fully static linking
Original file line number Diff line number Diff line change @@ -6,4 +6,8 @@ in recurseIntoAttrs {
6
6
inherit ( project ) plan-nix ;
7
7
} ;
8
8
build = project . getComponent "haskell-language-server:exe:haskell-language-server" ;
9
+
10
+ # Haskell Language Server does not build for GHC 9 yet
11
+ meta . disabled = builtins . compareVersions
12
+ buildPackages . haskell-nix . compiler . ${ compiler-nix-name } . version "9.0" >= 0 ;
9
13
}
You can’t perform that action at this time.
0 commit comments