File tree Expand file tree Collapse file tree 15 files changed +101
-21
lines changed
call-cabal-project-to-nix Expand file tree Collapse file tree 15 files changed +101
-21
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ in recurseIntoAttrs {
25
25
touch $out
26
26
'' ;
27
27
28
- meta . platforms = platforms . all ;
28
+ meta = rec {
29
+ platforms = lib . platforms . all ;
30
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
31
+ disabled = broken ;
32
+ } ;
29
33
30
34
passthru = {
31
35
# Attributes used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -55,7 +55,11 @@ in recurseIntoAttrs {
55
55
touch $out
56
56
'' ;
57
57
58
- meta . platforms = platforms . all ;
58
+ meta = rec {
59
+ platforms = lib . platforms . all ;
60
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
61
+ disabled = broken ;
62
+ } ;
59
63
60
64
passthru = {
61
65
# Used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -56,7 +56,11 @@ in recurseIntoAttrs {
56
56
touch $out
57
57
'' ;
58
58
59
- meta . platforms = platforms . all ;
59
+ meta = rec {
60
+ platforms = lib . platforms . all ;
61
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
62
+ disabled = broken ;
63
+ } ;
60
64
61
65
passthru = {
62
66
# Used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -32,7 +32,16 @@ in recurseIntoAttrs {
32
32
} ;
33
33
34
34
# Used for testing externally with nix-shell (../tests.sh).
35
- test-shell = project . shellFor { tools = { cabal = "latest" ; } ; withHoogle = ! __elem compiler-nix-name [ "ghc901" "ghc902" "ghc921" "ghc922" "ghc923" "ghc924" "ghc925" "ghc926" "ghc927" ] ; } ;
35
+ test-shell = ( project . shellFor {
36
+ tools = { cabal = "latest" ; } ;
37
+ withHoogle = ! __elem compiler-nix-name [ "ghc901" "ghc902" "ghc921" "ghc922" "ghc923" "ghc924" "ghc925" "ghc926" "ghc927" ] ;
38
+ } ) . overrideAttrs ( _ : _ : {
39
+ meta = rec {
40
+ platforms = lib . platforms . all ;
41
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
42
+ disabled = broken ;
43
+ } ;
44
+ } ) ;
36
45
37
46
run = stdenv . mkDerivation {
38
47
name = "cabal-simple-test" ;
@@ -64,7 +73,11 @@ in recurseIntoAttrs {
64
73
touch $out
65
74
'' ;
66
75
67
- meta . platforms = platforms . all ;
76
+ meta = rec {
77
+ platforms = lib . platforms . all ;
78
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
79
+ disabled = broken ;
80
+ } ;
68
81
69
82
passthru = {
70
83
# Used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -27,8 +27,12 @@ in recurseIntoAttrs {
27
27
touch $out
28
28
'' ;
29
29
30
- meta . platforms = platforms . all ;
31
-
30
+ meta = rec {
31
+ platforms = lib . platforms . all ;
32
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
33
+ disabled = broken ;
34
+ } ;
35
+
32
36
passthru = {
33
37
# Attributes used for debugging with nix repl
34
38
inherit packages ;
Original file line number Diff line number Diff line change @@ -27,7 +27,11 @@ in recurseIntoAttrs {
27
27
touch $out
28
28
'' ;
29
29
30
- meta . platforms = platforms . all ;
30
+ meta = rec {
31
+ platforms = lib . platforms . all ;
32
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
33
+ disabled = broken ;
34
+ } ;
31
35
32
36
passthru = {
33
37
# Attributes used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -57,7 +57,11 @@ in recurseIntoAttrs {
57
57
touch $out
58
58
'' ;
59
59
60
- meta . platforms = platforms . all ;
60
+ meta = rec {
61
+ platforms = lib . platforms . all ;
62
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
63
+ disabled = broken ;
64
+ } ;
61
65
62
66
passthru = {
63
67
# Used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -40,7 +40,11 @@ in recurseIntoAttrs {
40
40
touch $out
41
41
'' ;
42
42
43
- meta . platforms = platforms . all ;
43
+ meta = rec {
44
+ platforms = lib . platforms . all ;
45
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
46
+ disabled = broken ;
47
+ } ;
44
48
45
49
passthru = {
46
50
# Attributes used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -44,7 +44,11 @@ in recurseIntoAttrs {
44
44
touch $out
45
45
'' ;
46
46
47
- meta . platforms = platforms . all ;
47
+ meta = rec {
48
+ platforms = lib . platforms . all ;
49
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
50
+ disabled = broken ;
51
+ } ;
48
52
49
53
passthru = {
50
54
# Used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -57,7 +57,13 @@ in recurseIntoAttrs {
57
57
'' ) ) + ''
58
58
touch $out
59
59
'' ;
60
- meta . platforms = platforms . all ;
60
+
61
+ meta = rec {
62
+ platforms = lib . platforms . all ;
63
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
64
+ disabled = broken ;
65
+ } ;
66
+
61
67
passthru = {
62
68
inherit project ;
63
69
} ;
Original file line number Diff line number Diff line change @@ -33,7 +33,11 @@ in recurseIntoAttrs {
33
33
touch $out
34
34
'' ;
35
35
36
- meta . platforms = platforms . all ;
36
+ meta = rec {
37
+ platforms = lib . platforms . all ;
38
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
39
+ disabled = broken ;
40
+ } ;
37
41
38
42
passthru = {
39
43
# Attributes used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -35,7 +35,11 @@ in recurseIntoAttrs {
35
35
echo '${ concatStringsSep " " packageNames } ' > $out
36
36
'' ;
37
37
38
- meta . platforms = platforms . all ;
38
+ meta = rec {
39
+ platforms = lib . platforms . all ;
40
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
41
+ disabled = broken ;
42
+ } ;
39
43
40
44
passthru = {
41
45
# Attributes used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -25,7 +25,11 @@ in recurseIntoAttrs {
25
25
touch $out
26
26
'' ;
27
27
28
- meta . platforms = platforms . all ;
28
+ meta = rec {
29
+ platforms = lib . platforms . all ;
30
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
31
+ disabled = broken ;
32
+ } ;
29
33
30
34
passthru = {
31
35
# Attributes used for debugging with nix repl
Original file line number Diff line number Diff line change @@ -26,7 +26,11 @@ in recurseIntoAttrs {
26
26
touch $out
27
27
'' ;
28
28
29
- meta . platforms = platforms . all ;
29
+ meta = rec {
30
+ platforms = lib . platforms . all ;
31
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
32
+ disabled = broken ;
33
+ } ;
30
34
31
35
passthru = {
32
36
# Attributes used for debugging with nix repl
Original file line number Diff line number Diff line change 39
39
in recurseIntoAttrs {
40
40
# Used for testing externally with nix-shell (../tests.sh).
41
41
# This just adds cabal-install to the existing shells.
42
- test-shell = addCabalInstall library . shell ;
42
+ test-shell = ( addCabalInstall library . shell ) . overrideAttrs ( _ : _ : {
43
+ meta = rec {
44
+ platforms = lib . platforms . all ;
45
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
46
+ disabled = broken ;
47
+ } ;
48
+ } ) ;
43
49
44
50
# A variant of test-shell with the component option doExactConfig enabled
45
- test-shell-dec = addCabalInstall decLibrary . shell ;
51
+ test-shell-dec = ( addCabalInstall decLibrary . shell ) . overrideAttrs ( _ : _ : {
52
+ meta = rec {
53
+ platforms = lib . platforms . all ;
54
+ broken = stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ;
55
+ disabled = broken ;
56
+ } ;
57
+ } ) ;
46
58
47
59
run = stdenv . mkDerivation {
48
60
name = "with-packages-test" ;
@@ -94,9 +106,10 @@ in recurseIntoAttrs {
94
106
95
107
dontInstall = true ;
96
108
97
- meta = {
98
- platforms = platforms . all ;
99
- disabled = stdenv . hostPlatform . isMusl ;
109
+ meta = rec {
110
+ platforms = lib . platforms . all ;
111
+ broken = ( stdenv . hostPlatform . isGhcjs && __elem compiler-nix-name [ "ghc961" ] ) || stdenv . hostPlatform . isMusl ;
112
+ disabled = broken ;
100
113
} ;
101
114
102
115
passthru = {
You can’t perform that action at this time.
0 commit comments