diff --git a/pkgs/development/libraries/haskell/ghc-core/default.nix b/pkgs/development/libraries/haskell/ghc-core/default.nix new file mode 100644 index 000000000000..4a36928173fb --- /dev/null +++ b/pkgs/development/libraries/haskell/ghc-core/default.nix @@ -0,0 +1,13 @@ +{cabal, pcreLight, hscolour}: + +cabal.mkDerivation (self : { + pname = "ghc-core"; + version = "0.4.3"; + sha256 = "cdd6082ebc692087db781cb10194bbbf34a768b31eea0dcb78c73921c7047444"; + propagatedBuildInputs = [pcreLight hscolour]; + configureFlags = ''--constraint=base<4''; + meta = { + description = "Display GHC's core and assembly output in a pager"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/hscolour/default.nix b/pkgs/development/libraries/haskell/hscolour/default.nix index 10d702cde78f..c22e110a7da3 100644 --- a/pkgs/development/libraries/haskell/hscolour/default.nix +++ b/pkgs/development/libraries/haskell/hscolour/default.nix @@ -2,8 +2,8 @@ cabal.mkDerivation (self : { pname = "hscolour"; - version = "1.10.1"; - sha256 = "293f24b8373be1d70d9e5a4b8d3c527166ad645b4ac983c1a6fc5999c44a2d36"; + version = "1.11"; + sha256 = "ebe26f1911e8796de45350014404c5e31cc2701dae9a87ba58fe0d0d37a5d41b"; meta = { description = "Colourise Haskell code"; }; diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 6c65fdd8d8a7..5b5c74f40af1 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -81,6 +81,10 @@ rec { inherit cabal mtl; }; + ghcCore = import ../development/libraries/haskell/ghc-core { + inherit cabal pcreLight hscolour; + }; + ghcPaths = import ../development/libraries/haskell/ghc-paths { inherit cabal; };