haskellPackages.cabal-fmt: Fix build with patch

main
Malte Brandy 2 years ago
parent 1aa02b5c38
commit 0acc49e24d
  1. 10
      pkgs/development/haskell-modules/configuration-common.nix

@ -2271,7 +2271,15 @@ self: super: {
# The shipped Setup.hs file is broken.
csv = overrideCabal (drv: { preCompileBuildDriver = "rm Setup.hs"; }) super.csv;
# 2022-02-25: Upstream fixes are not released. Remove this override on update.
cabal-fmt = assert super.cabal-fmt.version = "0.1.5.1"; pkgs.lib.pipe super.cabal-fmt [
doJailbreak
(appendPatch (pkgs.fetchpatch {
url = "https://github.com/phadej/cabal-fmt/commit/842630f70adb5397245109f77dba07662836e964.patch";
sha256 = "sha256-s0W/TI3wHA73MFyKKcNBJFHgFAmBDLGbLaIvWbe/Bsg=";
}))
];
# Too strict bounds on chell: https://github.com/fpco/haskell-filesystem/issues/24
system-fileio = doJailbreak super.system-fileio;
} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super

Loading…
Cancel
Save