From cdffe459d8cb4697670fc3fa9eba10f839f7a990 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Wed, 29 Sep 2021 14:18:35 +0200 Subject: [PATCH] haskellPackages.hls-rename-plugin: provide necessary test env --- pkgs/development/haskell-modules/configuration-nix.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 55c5915bf793..6de0149a9980 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -832,6 +832,12 @@ self: super: builtins.intersectAttrs super { export HOME=$TMPDIR/home ''; }); + hls-rename-plugin = overrideCabal super.hls-rename-plugin (drv: { + testToolDepends = [ pkgs.git ]; + preCheck = '' + export HOME=$TMPDIR/home + '' + (drv.preCheck or ""); + }); hls-splice-plugin = overrideCabal super.hls-splice-plugin (drv: { testToolDepends = [ pkgs.git ]; preCheck = ''