diff --git a/pkgs/development/libraries/haskell/Shellac/Shellac-haskeline.nix b/pkgs/development/libraries/haskell/Shellac/Shellac-haskeline.nix new file mode 100644 index 000000000000..9a697b95c911 --- /dev/null +++ b/pkgs/development/libraries/haskell/Shellac/Shellac-haskeline.nix @@ -0,0 +1,12 @@ +{cabal, Shellac, haskeline}: + +cabal.mkDerivation (self : { + pname = "Shellac-haskeline"; + version = "0.2"; + sha256 = "e3024b1915efd9841be9f405503f26c52524e7ea2a9c630ad651a9986e5329e0"; + propagatedBuildInputs = [Shellac haskeline]; + meta = { + description = "Haskeline backend module for Shellac"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/Shellac/Shellac-readline.nix b/pkgs/development/libraries/haskell/Shellac/Shellac-readline.nix new file mode 100644 index 000000000000..991126f709b2 --- /dev/null +++ b/pkgs/development/libraries/haskell/Shellac/Shellac-readline.nix @@ -0,0 +1,12 @@ +{cabal, Shellac, readline}: + +cabal.mkDerivation (self : { + pname = "Shellac-readline"; + version = "0.9"; + sha256 = "3edffecf2225c199f0a4df55e3685f7deee47755ae7f8d03f5da7fac3c2ab878"; + propagatedBuildInputs = [Shellac readline]; + meta = { + description = "Readline backend module for Shellac"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/Shellac/Shellac.nix b/pkgs/development/libraries/haskell/Shellac/Shellac.nix new file mode 100644 index 000000000000..8660bd6dc134 --- /dev/null +++ b/pkgs/development/libraries/haskell/Shellac/Shellac.nix @@ -0,0 +1,12 @@ +{cabal, mtl}: + +cabal.mkDerivation (self : { + pname = "Shellac"; + version = "0.9.5"; + sha256 = "a8b07918be23b7e7c3114aed7d929f95ace37fbacd82f185358f05f337f09c70"; + propagatedBuildInputs = [mtl]; + meta = { + description = "A framework for creating shell environments"; + }; +}) + diff --git a/pkgs/development/libraries/haskell/readline/default.nix b/pkgs/development/libraries/haskell/readline/default.nix index 409d7db27ab4..d29df7cefde3 100644 --- a/pkgs/development/libraries/haskell/readline/default.nix +++ b/pkgs/development/libraries/haskell/readline/default.nix @@ -1,10 +1,10 @@ -{ cabal, readline } : +{ cabal, readline, ncurses } : cabal.mkDerivation (self : { pname = "readline"; version = "1.0.1.0"; sha256 = "07f2f039f32bf18838a4875d0f3caa3ed9436dd52b962b2061f0bb8a3316fa1d"; - propagatedBuildInputs = [ readline ]; + propagatedBuildInputs = [ readline ncurses ]; # experimentally link with ncursesw because ghci can't interpret ld scripts, # and ncurses sometimes seems to be a script pointing to ncursesw postConfigure = '' diff --git a/pkgs/top-level/haskell-packages.nix b/pkgs/top-level/haskell-packages.nix index 6157e36e46b8..29550bee37c8 100644 --- a/pkgs/top-level/haskell-packages.nix +++ b/pkgs/top-level/haskell-packages.nix @@ -231,7 +231,7 @@ rec { readline = import ../development/libraries/haskell/readline { inherit cabal; - inherit (pkgs) readline; + inherit (pkgs) readline ncurses; }; regexBase = import ../development/libraries/haskell/regex-base { @@ -266,6 +266,18 @@ rec { inherit (pkgs) SDL; }; + Shellac = import ../development/libraries/haskell/Shellac/Shellac.nix { + inherit cabal mtl; + }; + + ShellacHaskeline = import ../development/libraries/haskell/Shellac/Shellac-haskeline.nix { + inherit cabal Shellac haskeline; + }; + + ShellacReadline = import ../development/libraries/haskell/Shellac/Shellac-readline.nix { + inherit cabal Shellac readline; + }; + stm = import ../development/libraries/haskell/stm { inherit cabal; };