From 671db18e2221371e856e659d47842d96191fbbd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCtke-Stetzkamp?= Date: Sat, 8 Feb 2020 20:52:00 +0100 Subject: [PATCH] haskellPackages.hledger-flow: do not build static Fixes #68840 --- pkgs/development/haskell-modules/configuration-common.nix | 7 +++++++ .../haskell-modules/configuration-hackage2nix.yaml | 1 - 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index dcf858e61550..91e61abf1bc1 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1393,4 +1393,11 @@ self: super: { # See https://github.com/ekmett/perhaps/pull/5 perhaps = doJailbreak super.perhaps; + # it wants to build a statically linked binary by default + hledger-flow = overrideCabal super.hledger-flow ( drv: { + postPatch = (drv.postPatch or "") + '' + substituteInPlace hledger-flow.cabal --replace "-static" "" + ''; + }); + } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix.yaml index 4958a8bddc7e..95dbcea342e3 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix.yaml @@ -5719,7 +5719,6 @@ broken-packages: - HLearn-distributions - hledger-api - hledger-chart - - hledger-flow - hledger-irr - hledger-vty - hlibBladeRF