Skip to content

Commit ab8075d

Browse files
committed
WIP: survey: Add/default to ghc8101. Still breaking
WIP because breaking builds should not be default; just for development convenience.
1 parent 0e1002a commit ab8075d

File tree

1 file changed

+67
-20
lines changed

1 file changed

+67
-20
lines changed

survey/default.nix

+67-20
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,17 @@ in
3535
])."${approach}",
3636

3737
# When changing this, also change the default version of Cabal declared below
38-
compiler ? "ghc865",
38+
compiler ? "ghc8101",
3939

4040
defaultCabalPackageVersionComingWithGhc ?
4141
({
4242
ghc822 = "Cabal_2_2_0_1"; # TODO this is technically incorrect for ghc 8.2.2, should be 2.0.1.0, but nixpkgs doesn't have that
4343
ghc844 = "Cabal_2_2_0_1";
4444
ghc863 = throw "static-haskell-nix: ghc863 is no longer supported, please upgrade";
45-
ghc864 = throw "static-haskell-nix: ghc863 is no longer supported, please upgrade";
45+
ghc864 = throw "static-haskell-nix: ghc864 is no longer supported, please upgrade";
4646
ghc865 = "Cabal_2_4_1_0"; # TODO this is technically incorrect for ghc 8.6.5, should be 2.4.0.1, but nixpkgs doesn't have that
4747
ghc881 = "Cabal_3_0_0_0";
48+
ghc8101 = "Cabal_3_2_0_0";
4849
}."${compiler}"),
4950

5051
# Use `integer-simple` instead of `integer-gmp` to avoid linking in
@@ -609,6 +610,11 @@ let
609610
enableSystemd = false;
610611
};
611612

613+
procps = previous.procps.override {
614+
# systemd doesn't currently build with musl.
615+
withSystemd = false;
616+
};
617+
612618
pixman = previous.pixman.overrideAttrs (old: { dontDisableStatic = true; });
613619
freetype = previous.freetype.overrideAttrs (old: { dontDisableStatic = true; });
614620
fontconfig = previous.fontconfig.overrideAttrs (old: {
@@ -715,6 +721,23 @@ let
715721
# https://git.alpinelinux.org/aports/tree/community/R/APKBUILD?id=e2bce14c748aacb867713cb81a91fad6e8e7f7f6#n56
716722
doCheck = false;
717723
});
724+
725+
bash-completion = previous.bash-completion.overrideAttrs (old: {
726+
# Disable tests because it some of them seem dynamic linking specific:
727+
# FAILED test/t/test_getconf.py::TestGetconf::test_1 - assert <CompletionResult...
728+
# FAILED test/t/test_ldd.py::TestLdd::test_options - assert <CompletionResult []>
729+
doCheck = false;
730+
});
731+
732+
# As of writing, emacs still doesn't build, erroring with:
733+
# Segmentation fault ./temacs --batch --no-build-details --load loadup bootstrap
734+
emacs = previous.emacs.override {
735+
# Requires librsvg (in Rust), which gives:
736+
# missing bootstrap url for platform x86_64-unknown-linux-musl
737+
withX = false;
738+
withGTK3 = false; # needs to be disabled because `withX` is disabled above
739+
systemd = null; # does not build with musl
740+
};
718741
};
719742

720743

@@ -1225,6 +1248,31 @@ let
12251248
dontCheck (overrideCabal super.hakyll (drv: {
12261249
testToolDepends = [];
12271250
}));
1251+
1252+
# Inspection tests fail on `disableOptimization`with
1253+
# examples/Fusion.hs:25:1: sumUpSort `hasNoType` GHC.Types.[] failed expectedly.
1254+
inspection-testing =
1255+
(if disableOptimization then dontCheck else lib.id)
1256+
super.inspection-testing;
1257+
1258+
# Inspection tests fail on `disableOptimization`with
1259+
# examples/Fusion.hs:25:1: sumUpSort `hasNoType` GHC.Types.[] failed expectedly
1260+
algebraic-graphs =
1261+
(if disableOptimization then dontCheck else lib.id)
1262+
super.algebraic-graphs;
1263+
1264+
# Test suite tries to connect to the Internet
1265+
aur = dontCheck super.aur;
1266+
1267+
# Test suite tries to run `minisat` which is not on PATH
1268+
ersatz = dontCheck super.ersatz;
1269+
1270+
# doctests test suite fails with:
1271+
# /build/trifecta-2.1/src/Text/Trifecta/Util/It.hs:61: failure in expression `let keepIt a = Pure a'
1272+
# expected:
1273+
# but got: /nix/store/xz6sgnl68v00yhfk25cfankpdf7g57cs-binutils-2.31.1/bin/ld: warning: type and size of dynamic symbol `TextziTrifectaziDelta_zdfHasDeltaByteString_closure' are not defined
1274+
trifecta = dontCheck super.trifecta;
1275+
12281276
});
12291277

12301278
});
@@ -1291,6 +1339,7 @@ in
12911339
bench
12921340
dhall
12931341
hsyslog # Small example of handling https://github.com/NixOS/nixpkgs/issues/43849 correctly
1342+
aura
12941343
;
12951344
} // (if approach == "pkgsStatic" then {} else {
12961345
# Packages that work with `pkgsMusl` but fail with `pkgsStatic`:
@@ -1316,7 +1365,6 @@ in
13161365

13171366
notWorking = {
13181367
inherit (haskellPackages)
1319-
aura # Removed for now as it keeps having Cabal bounds issues (https://github.com/aurapm/aura/issues/526#issuecomment-493716675)
13201368
tttool # see #14 # TODO reenable after fixing Package `HPDF-1.4.10` being marked as broken and failing to evaluate
13211369
;
13221370
};
@@ -1332,26 +1380,25 @@ in
13321380
builtins.removeAttrs allStackageExecutables [
13331381
# List of executables that don't work for reasons not yet investigated.
13341382
# When changing this file, we should always check if this list grows or shrinks.
1335-
"Agda" # anonymous function at build-support/fetchurl/boot.nix:5:1 called with unexpected argument 'meta', at build-support/fetchpatch/default.nix:14:1
1336-
"Allure" # marked as broken
1337-
"csg" # marked as broken
1383+
"Agda" # fails on `emacs` not building
1384+
"Allure" # depends on `LambdaHack` also in this list
1385+
"csg" # `base >=4.0 && <4.14` on `doctest-driver-gen`
13381386
"cuda" # needs `allowUnfree = true`; enabling it gives `unsupported platform for the pure Linux stdenv`
1339-
"debug" # marked as broken
1340-
"diagrams-builder" # marked as broken
1341-
"ersatz" # marked as broken
1342-
"gloss-examples" # needs opengl: `cannot find -lGLU` `-lGL`
1343-
"gtk3" # problem compiling `glib` dependency: relocation R_X86_64_32 against hidden symbol `__TMC_END__' can not be used when making a PIE object
1344-
"H" # `zgemm_: symbol not found` when compiling Main; not clear how that can be provided
1345-
"hamilton" # openmp linker error via openblas
1346-
"hquantlib" # marked as broken
1347-
"ihaskell" # marked as broken
1348-
"LambdaHack" # marked as broken
1349-
"language-puppet" # dependency `hruby` does not build
1387+
"debug" # `regex-base <0.94` on `regex-tdfa-text`
1388+
"diagrams-builder" # `template-haskell >=2.5 && <2.16` on `size-based`
1389+
"gloss-examples" # `base >=4.8 && <4.14` on `repa-io`
1390+
"gtk3" # Haskell package `glib` fails with `Ambiguous module name ‘Gtk2HsSetup’: it was found in multiple packages: gtk2hs-buildtools-0.13.8.0 gtk2hs-buildtools-0.13.8.0`
1391+
"H" # error: anonymous function at pkgs/applications/science/math/R/default.nix:1:1 called with unexpected argument 'javaSupport', at lib/customisation.nix:69:16
1392+
"hamilton" # `_gfortran_concat_string` linker error via openblas
1393+
"hquantlib" # `time >=1.4.0.0 && <1.9.0.0` on `hquantlib-time`
1394+
"ihaskell" # linker error
1395+
"LambdaHack" # fails `systemd` dependency erroring on `#include <printf.h>`
1396+
"language-puppet" # `base >=4.6 && <4.14, ghc-prim >=0.3 && <0.6` for dependency `protolude`
13501397
"learn-physics" # needs opengl: `cannot find -lGLU` `-lGL`
1351-
"odbc" # marked as broken
1352-
"qchas" # openmp linker error via openblas
1398+
"odbc" # `odbcss.h: No such file or directory`
1399+
"qchas" # `_gfortran_concat_string` linker error via openblas
13531400
"rhine-gloss" # needs opengl: `cannot find -lGLU` `-lGL`
1354-
"soxlib" # dependency `sox` fails with: `formats.c:425:4: error: #error FIX NEEDED HERE`
1401+
"soxlib" # fails `systemd` dependency erroring on `#include <printf.h>`
13551402
];
13561403

13571404
inherit normalPkgs;

0 commit comments

Comments
 (0)