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:
commit
80a505b0e6
|
@ -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;
|
||||
})
|
||||
|
|
|
@ -5033,7 +5033,6 @@ broken-packages:
|
|||
- text-ascii
|
||||
- text-builder-linear
|
||||
- text-containers
|
||||
- text-format
|
||||
- text-format-heavy
|
||||
- text-generic-pretty
|
||||
- text-icu-normalized
|
||||
|
|
|
@ -279447,8 +279447,6 @@ self: {
|
|||
];
|
||||
description = "Text formatting";
|
||||
license = lib.licenses.bsd3;
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
broken = true;
|
||||
}) {};
|
||||
|
||||
"text-format-heavy" = callPackage
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue