haskell.compiler.ghc912: 9.12.2 -> 9.12.3, haskell.packages.ghc9123.fourmolu,cabal-add: fix build (#494049)
This commit is contained in:
@@ -220,6 +220,15 @@ with haskellLib;
|
||||
lib.mapAttrs (_: pkg: pkg.overrideScope hls_overlay) (
|
||||
super
|
||||
// {
|
||||
# Work around test suite not finding executable due to https://github.com/haskell/cabal/issues/11598
|
||||
fourmolu = appendPatches [
|
||||
(pkgs.fetchpatch {
|
||||
name = "fourmolu-absolute-build-tool-paths.patch";
|
||||
url = "https://github.com/fourmolu/fourmolu/commit/9217bc926ab80d20b815f0486be2184db07df4fc.patch";
|
||||
hash = "sha256-ANzuKy5WfWCGZ7HFVBpTtuyUqzFfef/xR/v1KiyJEX4=";
|
||||
})
|
||||
] super.fourmolu;
|
||||
|
||||
# HLS 2.11: Too strict bound on Diff 1.0.
|
||||
haskell-language-server = lib.pipe super.haskell-language-server [
|
||||
dontCheck
|
||||
@@ -251,6 +260,15 @@ with haskellLib;
|
||||
disableCabalFlag "auto" super.ghc-lib-parser-ex
|
||||
);
|
||||
|
||||
# Work around test suite not finding executable due to https://github.com/haskell/cabal/issues/11598
|
||||
cabal-add = appendPatches [
|
||||
(pkgs.fetchpatch {
|
||||
name = "cabal-add-absolute-build-tool-paths.patch";
|
||||
url = "https://github.com/Bodigrim/cabal-add/commit/3b94b0175c294c2d0a30b6d8da3f56189216816c.patch";
|
||||
hash = "sha256-4Nbro9Gl+RC78yprO8fYG/IWS7QvJPd0dKqSZb5jq9k=";
|
||||
})
|
||||
] super.cabal-add;
|
||||
|
||||
###########################################
|
||||
### END HASKELL-LANGUAGE-SERVER SECTION ###
|
||||
###########################################
|
||||
|
||||
@@ -57,10 +57,18 @@ builtins.intersectAttrs super {
|
||||
### HASKELL-LANGUAGE-SERVER SECTION ###
|
||||
#######################################
|
||||
|
||||
cabal-add = overrideCabal (drv: {
|
||||
# tests depend on executable
|
||||
preCheck = ''export PATH="$PWD/dist/build/cabal-add:$PATH"'';
|
||||
}) super.cabal-add;
|
||||
cabal-add =
|
||||
# Can't find executable without https://github.com/haskell/cabal/pull/9912
|
||||
if lib.versionOlder self.ghc.version "9.12" then
|
||||
overrideCabal (drv: {
|
||||
# tests depend on executable
|
||||
preCheck = ''
|
||||
${drv.preCheck or ""}
|
||||
export PATH="$PWD/dist/build/cabal-add:$PATH"
|
||||
'';
|
||||
}) super.cabal-add
|
||||
else
|
||||
super.cabal-add;
|
||||
|
||||
haskell-language-server = overrideCabal (drv: {
|
||||
# starting with 1.6.1.1 haskell-language-server wants to be linked dynamically
|
||||
@@ -1818,11 +1826,16 @@ builtins.intersectAttrs super {
|
||||
inherit
|
||||
(
|
||||
let
|
||||
fourmoluTestFix = overrideCabal (drv: {
|
||||
preCheck = drv.preCheck or "" + ''
|
||||
export PATH="$PWD/dist/build/fourmolu:$PATH"
|
||||
'';
|
||||
});
|
||||
fourmoluTestFix =
|
||||
# Can't find executable without https://github.com/haskell/cabal/pull/9912
|
||||
if lib.versionOlder self.ghc.version "9.12" then
|
||||
overrideCabal (drv: {
|
||||
preCheck = drv.preCheck or "" + ''
|
||||
export PATH="$PWD/dist/build/fourmolu:$PATH"
|
||||
'';
|
||||
})
|
||||
else
|
||||
lib.id;
|
||||
in
|
||||
builtins.mapAttrs (_: fourmoluTestFix) super
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user