diff options
author | sternenseemann <sternenseemann@systemli.org> | 2023-03-20 14:23:57 +0100 |
---|---|---|
committer | sternenseemann <sternenseemann@systemli.org> | 2023-03-20 14:23:57 +0100 |
commit | 6634553e48f47185056d6646784a5f8fd329b1fe (patch) | |
tree | 70a259591618865ffe98ef3556a46b19e8c0a864 /pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix | |
parent | 600fd969f6d317524f4e859824f577663d795d15 (diff) | |
download | nixlib-6634553e48f47185056d6646784a5f8fd329b1fe.tar nixlib-6634553e48f47185056d6646784a5f8fd329b1fe.tar.gz nixlib-6634553e48f47185056d6646784a5f8fd329b1fe.tar.bz2 nixlib-6634553e48f47185056d6646784a5f8fd329b1fe.tar.lz nixlib-6634553e48f47185056d6646784a5f8fd329b1fe.tar.xz nixlib-6634553e48f47185056d6646784a5f8fd329b1fe.tar.zst nixlib-6634553e48f47185056d6646784a5f8fd329b1fe.zip |
haskell.packages.ghc94.cborg: resolve duplicate overlay entry
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix index f9ce2a5165aa..f6582b9e2752 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.4.x.nix @@ -210,13 +210,6 @@ in { servant-client = doJailbreak super.servant-client; relude = doJailbreak super.relude; - cborg = appendPatch (pkgs.fetchpatch { - name = "cborg-support-ghc-9.4.patch"; - url = "https://github.com/well-typed/cborg/pull/304.diff"; - sha256 = "sha256-W4HldlESKOVkTPhz9nkFrvbj9akCOtF1SbIt5eJqtj8="; - relative = "cborg"; - }) super.cborg; - # https://github.com/tweag/ormolu/issues/941 ormolu = doDistribute self.ormolu_0_5_3_0; fourmolu = overrideCabal (drv: { @@ -240,10 +233,18 @@ in { # https://github.com/well-typed/cborg/pull/307 # https://github.com/well-typed/cborg/pull/304 # https://github.com/well-typed/cborg/issues/309#issuecomment-1471862045 - cborg = overrideCabal rec { + cborg = overrideCabal (old: rec { + patches = old.patches or [] ++ [ + (pkgs.fetchpatch { + name = "cborg-support-ghc-9.4.patch"; + url = "https://github.com/well-typed/cborg/pull/304.diff"; + sha256 = "sha256-W4HldlESKOVkTPhz9nkFrvbj9akCOtF1SbIt5eJqtj8="; + relative = "cborg"; + }) + ]; badPlatforms = lib.platforms.aarch64; hydraPlatforms = lib.subtractLists badPlatforms lib.platforms.all; - } super.cborg; + }) super.cborg; weeder = overrideCabal { inherit (self.cborg.meta) hydraPlatforms; } super.weeder; |