forked from mirrors/nixpkgs
carp: patch for GHC 9.2 and Stackage LTS-20
This commit is contained in:
parent
cdfe559a68
commit
fb32148a96
|
@ -1,4 +1,4 @@
|
|||
{ lib, fetchFromGitHub, makeWrapper, clang, haskellPackages }:
|
||||
{ lib, fetchFromGitHub, fetchpatch, makeWrapper, clang, haskellPackages }:
|
||||
|
||||
haskellPackages.mkDerivation rec {
|
||||
pname = "carp";
|
||||
|
@ -11,6 +11,16 @@ haskellPackages.mkDerivation rec {
|
|||
sha256 = "sha256-B7SBzjegFzL2gGivIJE6BZcLD3f0Bsh8yndjScG2TZI=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Compat with GHC 9.2 / Stackage LTS 20, can be dropped at the next release
|
||||
# https://github.com/carp-lang/Carp/pull/1449
|
||||
(fetchpatch {
|
||||
name = "carp-lts-20.patch";
|
||||
url = "https://github.com/carp-lang/Carp/commit/25f50c92a57cc91b6cb4ec48df658439f936b641.patch";
|
||||
sha256 = "14yjv0hcvw1qyjmrhksrj6chac3n14d1f1gcaxldfa05llrbfqk0";
|
||||
})
|
||||
];
|
||||
|
||||
# -Werror breaks build with GHC >= 9.0
|
||||
# https://github.com/carp-lang/Carp/issues/1386
|
||||
postPatch = ''
|
||||
|
@ -49,8 +59,4 @@ haskellPackages.mkDerivation rec {
|
|||
|
||||
# Windows not (yet) supported.
|
||||
platforms = with lib.platforms; unix ++ darwin;
|
||||
|
||||
# doesn't build on ghc92
|
||||
hydraPlatforms = lib.platforms.none;
|
||||
broken = true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue