From 9a39115172986f55f3eeabab452ecb79709a6a09 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Thu, 5 Aug 2021 08:28:42 +0200 Subject: [PATCH] haskellPackages.GLHUI: fix build on darwin --- pkgs/development/haskell-modules/configuration-darwin.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 6d884d849d38..50d627376dd4 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -198,4 +198,12 @@ self: super: { # We are lacking pure pgrep at the moment for tests to work tmp-postgres = dontCheck super.tmp-postgres; + # On darwin librt doesn't exist and will fail to link against, + # however linking against it is also not necessary there + GLHUI = overrideCabal super.GLHUI (drv: { + postPatch = '' + substituteInPlace GLHUI.cabal --replace " rt" "" + '' + (drv.postPatch or ""); + }); + }