From df0392dc3c0f83c0a17ada119c1cc3b35be3f489 Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Fri, 21 Feb 2020 04:33:29 +0100 Subject: [PATCH] haskellPackages.Chart-tests: Fix build --- pkgs/development/haskell-modules/configuration-common.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 086c8c8df64c..9771b4518c0e 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1460,4 +1460,11 @@ self: super: { # The appendConfigureFlags should remain even after we can drop patchedGtk. appendConfigureFlags patchedGtk (pkgs.lib.optional pkgs.stdenv.isDarwin "-f have-quartz-gtk"); + # Chart-tests needs and compiles some modules from Chart itself + Chart-tests = (addExtraLibrary super.Chart-tests self.QuickCheck).overrideAttrs (old: { + preCheck = old.postPatch or "" + '' + tar --one-top-level=../chart --strip-components=1 -xf ${self.Chart.src} + ''; + }); + } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super