From 7c04e3eb7571ad8ce31a15a22beb11bfe921a387 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Sun, 17 Mar 2019 09:41:28 +0100 Subject: [PATCH] haskell-arbtt: add build products into $PATH for the check phase Fixes https://github.com/NixOS/nixpkgs/pull/57585. --- pkgs/development/haskell-modules/configuration-common.nix | 7 +++++-- .../haskell-modules/configuration-hackage2nix.yaml | 1 - pkgs/development/haskell-modules/hackage-packages.nix | 2 -- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 2729a3d2dc30..82ec20370ee2 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1027,6 +1027,11 @@ self: super: { testSystemDepends = (drv.testSystemDepends or []) ++ [pkgs.which]; preCheck = ''export PATH="$PWD/dist/build/alex:$PATH"''; }); + arbtt = overrideCabal super.arbtt (drv: { + preCheck = '' + for n in $PWD/dist/build/*; do PATH+=":$n"; done + ''; + }); # This package refers to the wrong library (itself in fact!) vulkan = super.vulkan.override { vulkan = pkgs.vulkan-loader; }; @@ -1156,8 +1161,6 @@ self: super: { xmonad-extras = doJailbreak super.xmonad-extras; - arbtt = doJailbreak super.arbtt; - # https://github.com/danfran/cabal-macosx/issues/13 cabal-macosx = dontCheck super.cabal-macosx; diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix.yaml index f92b3005e72f..8cd3b979906c 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix.yaml @@ -2823,7 +2823,6 @@ broken-packages: - arbor-monad-metric - arbor-monad-metric-datadog - arbor-postgres - - arbtt - archiver - archlinux - archlinux-web diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 1e97b09796dd..20968e540378 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -29814,8 +29814,6 @@ self: { ]; description = "Automatic Rule-Based Time Tracker"; license = stdenv.lib.licenses.gpl2; - hydraPlatforms = stdenv.lib.platforms.none; - broken = true; }) {}; "arcgrid" = callPackage