diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 487db708c48d..bdab68723322 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -418,6 +418,13 @@ self: super: ${old.postInstall or ""} ''; }) super.happy; + hadolint = overrideCabal (old: { + postInstall = '' + remove-references-to -t ${self.ShellCheck} "$out/bin/hadolint" + + ${old.postInstall or ""} + ''; + }) super.hadolint; # https://github.com/fpco/unliftio/issues/87 unliftio = dontCheck super.unliftio; diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index eae4e1c104f6..87ee6ea7c63c 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -1641,10 +1641,6 @@ builtins.intersectAttrs super { # there are three very heavy test suites that need external repos, one requires network access hevm = dontCheck super.hevm; - # hadolint enables static linking by default in the cabal file, so we have to explicitly disable it. - # https://github.com/hadolint/hadolint/commit/e1305042c62d52c2af4d77cdce5d62f6a0a3ce7b - hadolint = disableCabalFlag "static" super.hadolint; - # Test suite tries to execute the build product "doctest-driver-gen", but it's not in $PATH. doctest-driver-gen = dontCheck super.doctest-driver-gen; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8f918116c6fa..7c9aa346d7a4 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5457,15 +5457,7 @@ with pkgs; griffe = with python3Packages; toPythonApplication griffe; - hadolint = - # TODO: Erroneous references to GHC on aarch64-darwin: https://github.com/NixOS/nixpkgs/issues/318013 - ( - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then - lib.id - else - haskell.lib.compose.justStaticExecutables - ) - haskellPackages.hadolint; + hadolint = haskell.lib.compose.justStaticExecutables haskellPackages.hadolint; iaca_2_1 = callPackage ../development/tools/iaca/2.1.nix { }; iaca_3_0 = callPackage ../development/tools/iaca/3.0.nix { };