diff --git a/pkgs/test/haskell/shellFor/default.nix b/pkgs/test/haskell/shellFor/default.nix index 3e0f3ed74934..87671f4bc798 100644 --- a/pkgs/test/haskell/shellFor/default.nix +++ b/pkgs/test/haskell/shellFor/default.nix @@ -68,4 +68,8 @@ maintainers = allMaintainers; inherit (cabal-install.meta) platforms; }; + # `shellFor` adds a `buildCommand` (via `envFunc -> runCommandCC`), which + # overrides custom phases. To ensure this test's phases run, we remove + # that `buildCommand` from the derivation. + buildCommand = null; })