Skip to content

[ghc-js] mark buildable and c-ffi as broken #1899

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 11 commits into from
Mar 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion test/buildable/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Attributes used for debugging with nix repl
Expand Down
6 changes: 5 additions & 1 deletion test/c-ffi/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Used for debugging with nix repl
Expand Down
6 changes: 5 additions & 1 deletion test/cabal-hpack/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Used for debugging with nix repl
Expand Down
17 changes: 15 additions & 2 deletions test/cabal-simple/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,16 @@ in recurseIntoAttrs {
};

# Used for testing externally with nix-shell (../tests.sh).
test-shell = project.shellFor { tools = { cabal = "latest"; }; withHoogle = !__elem compiler-nix-name ["ghc901" "ghc902" "ghc921" "ghc922" "ghc923" "ghc924" "ghc925" "ghc926" "ghc927"]; };
test-shell = (project.shellFor {
tools = { cabal = "latest"; };
withHoogle = !__elem compiler-nix-name ["ghc901" "ghc902" "ghc921" "ghc922" "ghc923" "ghc924" "ghc925" "ghc926" "ghc927"];
}).overrideAttrs (_: _: {
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};
});

run = stdenv.mkDerivation {
name = "cabal-simple-test";
Expand Down Expand Up @@ -64,7 +73,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Used for debugging with nix repl
Expand Down
8 changes: 6 additions & 2 deletions test/cabal-source-repo-comments/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,12 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;

meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Attributes used for debugging with nix repl
inherit packages;
Expand Down
6 changes: 5 additions & 1 deletion test/cabal-source-repo/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Attributes used for debugging with nix repl
Expand Down
6 changes: 5 additions & 1 deletion test/cabal-sublib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Used for debugging with nix repl
Expand Down
6 changes: 5 additions & 1 deletion test/call-cabal-project-to-nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Attributes used for debugging with nix repl
Expand Down
6 changes: 5 additions & 1 deletion test/exe-only/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Used for debugging with nix repl
Expand Down
8 changes: 7 additions & 1 deletion test/extra-hackage/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ in recurseIntoAttrs {
'')) + ''
touch $out
'';
meta.platforms = platforms.all;

meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
inherit project;
};
Expand Down
6 changes: 5 additions & 1 deletion test/ghc-options/cabal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Attributes used for debugging with nix repl
Expand Down
6 changes: 5 additions & 1 deletion test/ghc-options/stack.nix
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,11 @@ in recurseIntoAttrs {
echo '${concatStringsSep " " packageNames}' > $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Attributes used for debugging with nix repl
Expand Down
6 changes: 5 additions & 1 deletion test/project-flags/cabal.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Attributes used for debugging with nix repl
Expand Down
6 changes: 5 additions & 1 deletion test/project-flags/stack.nix
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ in recurseIntoAttrs {
touch $out
'';

meta.platforms = platforms.all;
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};

passthru = {
# Attributes used for debugging with nix repl
Expand Down
23 changes: 18 additions & 5 deletions test/with-packages/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,22 @@ let
in recurseIntoAttrs {
# Used for testing externally with nix-shell (../tests.sh).
# This just adds cabal-install to the existing shells.
test-shell = addCabalInstall library.shell;
test-shell = (addCabalInstall library.shell).overrideAttrs (_: _: {
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};
});

# A variant of test-shell with the component option doExactConfig enabled
test-shell-dec = addCabalInstall decLibrary.shell;
test-shell-dec = (addCabalInstall decLibrary.shell).overrideAttrs (_: _: {
meta = rec {
platforms = lib.platforms.all;
broken = stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"];
disabled = broken;
};
});

run = stdenv.mkDerivation {
name = "with-packages-test";
Expand Down Expand Up @@ -94,9 +106,10 @@ in recurseIntoAttrs {

dontInstall = true;

meta = {
platforms = platforms.all;
disabled = stdenv.hostPlatform.isMusl;
meta = rec {
platforms = lib.platforms.all;
broken = (stdenv.hostPlatform.isGhcjs && __elem compiler-nix-name ["ghc961"]) || stdenv.hostPlatform.isMusl;
disabled = broken;
};

passthru = {
Expand Down