elmPackages.elm-format: jailbreak (#529072)

This commit is contained in:
Wolfgang Walther 2026-06-07 10:03:20 +00:00 committed by GitHub
commit 6306c15610
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,6 +12,11 @@ pkgs.haskell.packages.ghc98.override {
# https://github.com/avh4/elm-format/blob/e7e5da37716acbfb4954a88128b5cc72b2c911d9/package/nix/generate_derivation.sh
elm-format = justStaticExecutables (
overrideCabal (drv: {
# jailbreak required due to optparse-applicative bounds
# optparse-applicative >=0.17.0.0 && <0.19
# upstream PR https://github.com/avh4/elm-format/pull/841
jailbreak = true;
postPatch = ''
mkdir -p ./generated
cat <<EOHS > ./generated/Build_elm_format.hs
@ -35,8 +40,14 @@ pkgs.haskell.packages.ghc98.override {
inherit elmPkgs;
# Needed for elm-format
avh4-lib = self.callPackage ./elm-format/avh4-lib.nix { };
elm-format-lib = self.callPackage ./elm-format/elm-format-lib.nix { };
# jailbreak required due to optparse-applicative bounds
# optparse-applicative >=0.17.0.0 && <0.19
# upstream PR https://github.com/avh4/elm-format/pull/841
elm-format-lib = pkgs.haskell.lib.doJailbreak (
self.callPackage ./elm-format/elm-format-lib.nix { }
);
elm-format-test-lib = self.callPackage ./elm-format/elm-format-test-lib.nix { };
elm-format-markdown = self.callPackage ./elm-format/elm-format-markdown.nix { };
};