forked from mirrors/nixpkgs
haskellPackages.large-hashable: unbreak
The source tarball now has DOS line endings for some reason, requiring the use of dos2unix. Also needs a jailbreak since the template-haskell bound has become too strict.
This commit is contained in:
parent
dc5420fbe8
commit
3a6f8567a6
|
@ -1828,22 +1828,30 @@ EOT
|
|||
|
||||
# 2021-05-09: compilation requires patches from master,
|
||||
# remove at next release (current is 0.1.0.4).
|
||||
large-hashable = appendPatches super.large-hashable [
|
||||
# Fix compilation of TH code for GHC >= 8.8
|
||||
(pkgs.fetchpatch {
|
||||
url = "https://github.com/factisresearch/large-hashable/commit/ee7afe4bd181cf15a324c7f4823f7a348e4a0e6b.patch";
|
||||
sha256 = "1ha77v0bc6prxacxhpdfgcsgw8348gvhl9y81smigifgjbinphxv";
|
||||
excludes = [
|
||||
".travis.yml"
|
||||
"stack**"
|
||||
];
|
||||
})
|
||||
# Fix cpp invocation
|
||||
(pkgs.fetchpatch {
|
||||
url = "https://github.com/factisresearch/large-hashable/commit/7b7c2ed6ac6e096478e8ee00160fa9d220df853a.patch";
|
||||
sha256 = "1sf9h3k8jbbgfshzrclaawlwx7k2frb09z2a64f93jhvk6ci6vgx";
|
||||
})
|
||||
];
|
||||
large-hashable = overrideCabal super.large-hashable (drv: {
|
||||
# fix line endings which are an issue all of a sudden for an unknown reason
|
||||
prePatch = ''
|
||||
find . -type f -print0 | xargs -0 ${pkgs.buildPackages.dos2unix}/bin/dos2unix
|
||||
'' + (drv.prePatch or "");
|
||||
# allow newer template haskell
|
||||
jailbreak = true;
|
||||
patches = [
|
||||
# Fix compilation of TH code for GHC >= 8.8
|
||||
(pkgs.fetchpatch {
|
||||
url = "https://github.com/factisresearch/large-hashable/commit/ee7afe4bd181cf15a324c7f4823f7a348e4a0e6b.patch";
|
||||
sha256 = "1ha77v0bc6prxacxhpdfgcsgw8348gvhl9y81smigifgjbinphxv";
|
||||
excludes = [
|
||||
".travis.yml"
|
||||
"stack**"
|
||||
];
|
||||
})
|
||||
# Fix cpp invocation
|
||||
(pkgs.fetchpatch {
|
||||
url = "https://github.com/factisresearch/large-hashable/commit/7b7c2ed6ac6e096478e8ee00160fa9d220df853a.patch";
|
||||
sha256 = "1sf9h3k8jbbgfshzrclaawlwx7k2frb09z2a64f93jhvk6ci6vgx";
|
||||
})
|
||||
];
|
||||
});
|
||||
|
||||
# BSON defaults to requiring network instead of network-bsd which is
|
||||
# required nowadays: https://github.com/mongodb-haskell/bson/issues/26
|
||||
|
|
|
@ -2680,7 +2680,6 @@ broken-packages:
|
|||
- language-vhdl
|
||||
- language-webidl
|
||||
- lapack-ffi
|
||||
- large-hashable
|
||||
- Lastik
|
||||
- latest-npm-version
|
||||
- latex-formulae-image
|
||||
|
|
|
@ -159536,9 +159536,7 @@ self: {
|
|||
platforms = [
|
||||
"armv7l-linux" "i686-linux" "x86_64-darwin" "x86_64-linux"
|
||||
];
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
maintainers = with lib.maintainers; [ sternenseemann ];
|
||||
broken = true;
|
||||
}) {};
|
||||
|
||||
"largeword" = callPackage
|
||||
|
|
Loading…
Reference in a new issue