stylish-cabal: fix the build
We can still compile the package with ghc-8.6.5. Later compiler versions don't work, unfortunately.
This commit is contained in:
parent
a6130f1848
commit
376ff258b5
@ -87,4 +87,8 @@ self: super: {
|
||||
# Builds only with ghc-8.8.x and beyond.
|
||||
policeman = markBroken super.policeman;
|
||||
|
||||
# https://github.com/pikajude/stylish-cabal/issues/12
|
||||
stylish-cabal = doDistribute (markUnbroken (super.stylish-cabal.override { haddock-library = self.haddock-library_1_7_0; }));
|
||||
haddock-library_1_7_0 = dontCheck super.haddock-library_1_7_0;
|
||||
|
||||
}
|
||||
|
@ -2367,6 +2367,7 @@ extra-packages:
|
||||
- gloss < 1.9.3 # new versions don't compile with GHC 7.8.x
|
||||
- haddock == 2.22.* # required on GHC 8.0.x
|
||||
- haddock-api == 2.22.* # required on GHC 7.8.x
|
||||
- haddock-library ==1.7.* # required by stylish-cabal-0.5.0.0
|
||||
- happy <1.19.6 # newer versions break Agda
|
||||
- happy == 1.19.9 # for purescript
|
||||
- haskell-gi-overloading == 0.0 # gi-* packages use this dependency to disable overloading support
|
||||
|
@ -107228,6 +107228,27 @@ self: {
|
||||
broken = true;
|
||||
}) {};
|
||||
|
||||
"haddock-library_1_7_0" = callPackage
|
||||
({ mkDerivation, base, base-compat, bytestring, containers, deepseq
|
||||
, hspec, hspec-discover, parsec, QuickCheck, text, transformers
|
||||
}:
|
||||
mkDerivation {
|
||||
pname = "haddock-library";
|
||||
version = "1.7.0";
|
||||
sha256 = "04fhcjk0pvsaqvsgp2w06cv2qvshq1xs1bwc157q4lmkgr57khp7";
|
||||
libraryHaskellDepends = [
|
||||
base bytestring containers parsec text transformers
|
||||
];
|
||||
testHaskellDepends = [
|
||||
base base-compat bytestring containers deepseq hspec parsec
|
||||
QuickCheck text transformers
|
||||
];
|
||||
testToolDepends = [ hspec-discover ];
|
||||
description = "Library exposing some functionality of Haddock";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
hydraPlatforms = stdenv.lib.platforms.none;
|
||||
}) {};
|
||||
|
||||
"haddock-library" = callPackage
|
||||
({ mkDerivation, base, base-compat, bytestring, containers, deepseq
|
||||
, directory, filepath, hspec, hspec-discover, optparse-applicative
|
||||
@ -231440,7 +231461,8 @@ self: {
|
||||
doHaddock = false;
|
||||
description = "Format Cabal files";
|
||||
license = stdenv.lib.licenses.bsd3;
|
||||
maintainers = with stdenv.lib.maintainers; [ peti ];
|
||||
hydraPlatforms = stdenv.lib.platforms.none;
|
||||
broken = true;
|
||||
}) {};
|
||||
|
||||
"stylish-haskell" = callPackage
|
||||
|
@ -8292,7 +8292,9 @@ in
|
||||
|
||||
stack = haskell.lib.justStaticExecutables haskellPackages.stack;
|
||||
hlint = haskell.lib.justStaticExecutables haskellPackages.hlint;
|
||||
stylish-cabal = haskell.lib.justStaticExecutables haskellPackages.stylish-cabal;
|
||||
|
||||
# We use a version built with an older compiler because of https://github.com/pikajude/stylish-cabal/issues/12.
|
||||
stylish-cabal = haskell.lib.justStaticExecutables haskell.packages.ghc865.stylish-cabal;
|
||||
|
||||
all-cabal-hashes = callPackage ../data/misc/hackage { };
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user