haskellPackages.hadolint: add back justStaticExecutables and fix Paths references on aarch64-darwin (#528142)
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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 { };
|
||||
|
||||
Reference in New Issue
Block a user