1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/libraries/haskell/readline/default.nix

20 lines
668 B
Nix
Raw Normal View History

{ cabal, readline, ncurses }:
cabal.mkDerivation (self: {
pname = "readline";
version = "1.0.3.0";
sha256 = "1sszlx34qa88fad3wlhd4rkb1my1nrpzvyd8vq7dn806j5sf3ff0";
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 = ''
sed -i -e "/^extra-libraries/ s/ncurses/ncursesw/" readline.buildinfo
'';
meta = {
description = "An interface to the GNU readline library";
license = "GPL";
platforms = self.ghc.meta.platforms;
maintainers = [ self.stdenv.lib.maintainers.andres ];
};
})