3
0
Fork 0
forked from mirrors/nixpkgs

Merge pull request #185622 from tjni/fix-text-format

haskellPackages.text-format: fix GHC 9.2 build
This commit is contained in:
Dennis Gosnell 2022-08-08 13:32:52 +09:00 committed by GitHub
commit 80a505b0e6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 11 deletions

View file

@ -2622,4 +2622,11 @@ in {
purescript-ast = purescriptStOverride super.purescript-ast;
purenix = purescriptStOverride super.purenix;
# Needs update for ghc-9:
# https://github.com/haskell/text-format/issues/27
text-format = appendPatch (fetchpatch {
url = "https://github.com/hackage-trustees/text-format/pull/4/commits/949383aa053497b8c251219c10506136c29b4d32.patch";
sha256 = "QzpZ7lDedsz1mZcq6DL4x7LBnn58rx70+ZVvPh9shRo=";
}) super.text-format;
})

View file

@ -5033,7 +5033,6 @@ broken-packages:
- text-ascii
- text-builder-linear
- text-containers
- text-format
- text-format-heavy
- text-generic-pretty
- text-icu-normalized

View file

@ -279447,8 +279447,6 @@ self: {
];
description = "Text formatting";
license = lib.licenses.bsd3;
hydraPlatforms = lib.platforms.none;
broken = true;
}) {};
"text-format-heavy" = callPackage

View file

@ -8,13 +8,13 @@
, pkgsMusl # for passthru.tests
}:
stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs: {
pname = "bmake";
version = "20220208";
version = "20220726";
src = fetchurl {
url = "http://www.crufty.net/ftp/pub/sjg/${pname}-${version}.tar.gz";
hash = "sha256-ewDB4UYrLh5Upk2ND88n/HfursPxOSDv+NlST/BZ1to=";
url = "http://www.crufty.net/ftp/pub/sjg/${finalAttrs.pname}-${finalAttrs.version}.tar.gz";
hash = "sha256-G/N3B4lyJyHcp7C/+K/EqVINog8CGbt7xSNQrwEz8KA=";
};
# Make tests work with musl
@ -60,10 +60,15 @@ stdenv.mkDerivation rec {
];
# Disabled tests:
# opt-chdir: ofborg complains about it somehow
# opt-keep-going-indirect: not yet known
# varmod-localtime: musl doesn't support TZDIR and this test relies on impure,
# implicit paths
# opt-chdir: ofborg complains about it somehow
BROKEN_TESTS = "varmod-localtime opt-chdir";
BROKEN_TESTS = builtins.concatStringsSep " " [
"opt-chdir"
"opt-keep-going-indirect"
"varmod-localtime"
];
buildPhase = ''
runHook preBuild
@ -105,9 +110,8 @@ stdenv.mkDerivation rec {
license = licenses.bsd3;
maintainers = with maintainers; [ thoughtpolice AndersonTorres ];
platforms = platforms.unix;
broken = with stdenv; isAarch64 && !isDarwin; # ofborg complains
};
passthru.tests.bmakeMusl = pkgsMusl.bmake;
}
})
# TODO: report the quirks and patches to bmake devteam (especially the Musl one)