Add ncurses haskell library

This commit is contained in:
Gergely Risko 2013-08-21 23:39:07 +02:00
parent 61822435fd
commit e8a37d3d41
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,22 @@
{ cabal, c2hs, ncurses, text, transformers }:
cabal.mkDerivation (self: {
pname = "ncurses";
version = "0.2.4";
sha256 = "0d4h85qgva1sf59g55k9xidqdpw18qj51xj7w5cqsf5pcpxgkcwh";
buildDepends = [ text transformers ];
buildTools = [ c2hs ];
extraLibraries = [ ncurses ];
preConfigure = ''
sed -i -e "s,ncursesw/,," lib/UI/NCurses.chs
sed -i -e "s,ncursesw/,," lib/UI/NCurses/Enums.chs
sed -i -e "s,ncursesw/,," lib/UI/NCurses/Panel.chs
sed -i -e "s,ncursesw/,," cbits/hsncurses-shim.c
'';
meta = {
homepage = "https://john-millikin.com/software/haskell-ncurses/";
description = "Modernised bindings to GNU ncurses";
license = self.stdenv.lib.licenses.gpl3;
platforms = self.ghc.meta.platforms;
};
})

View File

@ -1473,6 +1473,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
naturals = callPackage ../development/libraries/haskell/naturals {};
ncurses = callPackage ../development/libraries/haskell/ncurses { inherit (pkgs) ncurses; };
netlist = callPackage ../development/libraries/haskell/netlist {};
netlistToVhdl = callPackage ../development/libraries/haskell/netlist-to-vhdl {};