diff options
author | Malte Brandy <malte.brandy@maralorn.de> | 2022-06-05 23:07:42 +0200 |
---|---|---|
committer | Malte Brandy <malte.brandy@maralorn.de> | 2022-06-05 23:08:03 +0200 |
commit | 3586c258e8dfd305b8a6c65dd5c98efabd288e59 (patch) | |
tree | c0d7c9203f2e3ece1aec371c4208e623710537bc /pkgs/development/haskell-modules | |
parent | 70d95b25b6c7130563522aed285374b2b20d7464 (diff) | |
download | nixpkgs-3586c258e8dfd305b8a6c65dd5c98efabd288e59.tar nixpkgs-3586c258e8dfd305b8a6c65dd5c98efabd288e59.tar.gz nixpkgs-3586c258e8dfd305b8a6c65dd5c98efabd288e59.tar.bz2 nixpkgs-3586c258e8dfd305b8a6c65dd5c98efabd288e59.tar.lz nixpkgs-3586c258e8dfd305b8a6c65dd5c98efabd288e59.tar.xz nixpkgs-3586c258e8dfd305b8a6c65dd5c98efabd288e59.tar.zst nixpkgs-3586c258e8dfd305b8a6c65dd5c98efabd288e59.zip |
haskell.packages.ghc923: pin fourmolu to 0.6.0.0
Diffstat (limited to 'pkgs/development/haskell-modules')
3 files changed, 38 insertions, 1 deletions
diff --git a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix index fc5855025bb..02fe3d6a61a 100644 --- a/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix +++ b/pkgs/development/haskell-modules/configuration-ghc-9.2.x.nix @@ -206,9 +206,13 @@ self: super: { regex-rure = doDistribute (markUnbroken super.regex-rure); jacinda = doDistribute super.jacinda; some = doJailbreak super.some; - fourmolu = super.fourmolu_0_7_0_1; + + # 2022-06-05: this is not the latest version of fourmolu because + # hls-fourmolu-plugin 1.0.3.0 doesnât support a newer one. + fourmolu = super.fourmolu_0_6_0_0; # hls-fourmolu-plugin in this version has a to strict upper bound of fourmolu <= 0.5.0.0 hls-fourmolu-plugin = assert super.hls-fourmolu-plugin.version == "1.0.3.0"; doJailbreak super.hls-fourmolu-plugin; + hls-ormolu-plugin = assert super.hls-ormolu-plugin.version == "1.0.2.1"; doJailbreak super.hls-ormolu-plugin; implicit-hie-cradle = doJailbreak super.implicit-hie-cradle; # 1.3 introduced support for GHC 9.2.x, so when this assert fails, the jailbreak can be removed diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 2ddf5c2a534..05ab12f1294 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -134,6 +134,7 @@ extra-packages: - hspec-core < 2.8 # 2022-04-07: Needed for tasty-hspec 1.1.6 - hspec-discover < 2.8 # 2022-04-07: Needed for tasty-hspec 1.1.6 - bower-json == 1.0.0.1 # 2022-05-21: Needed for spago 0.20.9 + - fourmolu == 0.6.0.0 # 2022-06-05: Last fourmolu version compatible with hls 1.7/ hls-fourmolu-plugin 1.0.3.0 package-maintainers: abbradar: diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 599b63b8d2d..7b6fe7c7c04 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -99389,6 +99389,38 @@ self: { license = lib.licenses.bsd3; }) {}; + "fourmolu_0_6_0_0" = callPackage + ({ mkDerivation, aeson, ansi-terminal, array, base, bytestring + , Cabal, containers, Diff, directory, dlist, exceptions, filepath + , ghc-lib-parser, gitrev, hspec, hspec-discover, HsYAML + , HsYAML-aeson, mtl, optparse-applicative, path, path-io, syb + , temporary, text + }: + mkDerivation { + pname = "fourmolu"; + version = "0.6.0.0"; + sha256 = "0yxv3ih2jjnjzdhz31y4a94ly6g3qhddrm3lvflqrb4krk445p67"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson ansi-terminal array base bytestring Cabal containers Diff + directory dlist exceptions filepath ghc-lib-parser HsYAML + HsYAML-aeson mtl syb text + ]; + executableHaskellDepends = [ + base directory filepath ghc-lib-parser gitrev optparse-applicative + text + ]; + testHaskellDepends = [ + base containers directory filepath hspec path path-io temporary + text + ]; + testToolDepends = [ hspec-discover ]; + description = "A formatter for Haskell source code"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "fourmolu_0_7_0_1" = callPackage ({ mkDerivation, aeson, ansi-terminal, array, base, bytestring , Cabal, containers, Diff, directory, dlist, exceptions, filepath |