mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-02 07:31:26 +00:00
Add ncurses haskell library
This commit is contained in:
parent
61822435fd
commit
e8a37d3d41
22
pkgs/development/libraries/haskell/ncurses/default.nix
Normal file
22
pkgs/development/libraries/haskell/ncurses/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
})
|
@ -1473,6 +1473,8 @@ let result = let callPackage = x : y : modifyPrio (newScope result.final x y);
|
|||||||
|
|
||||||
naturals = callPackage ../development/libraries/haskell/naturals {};
|
naturals = callPackage ../development/libraries/haskell/naturals {};
|
||||||
|
|
||||||
|
ncurses = callPackage ../development/libraries/haskell/ncurses { inherit (pkgs) ncurses; };
|
||||||
|
|
||||||
netlist = callPackage ../development/libraries/haskell/netlist {};
|
netlist = callPackage ../development/libraries/haskell/netlist {};
|
||||||
|
|
||||||
netlistToVhdl = callPackage ../development/libraries/haskell/netlist-to-vhdl {};
|
netlistToVhdl = callPackage ../development/libraries/haskell/netlist-to-vhdl {};
|
||||||
|
Loading…
Reference in New Issue
Block a user