mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
elmPackages.elm-format: jailbreak
This commit is contained in:
parent
627dd785ad
commit
884892c2c1
1 changed files with 12 additions and 1 deletions
|
|
@ -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 { };
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue