at v192 818 B view raw
1{ stdenv, fetchurl, ncurses, groff }: 2 3stdenv.mkDerivation rec { 4 name = "libedit-20150325-3.1"; 5 6 src = fetchurl { 7 url = "http://www.thrysoee.dk/editline/${name}.tar.gz"; 8 sha256 = "1if8zi9h52m80ck796an28rrqfljk2n8cn25m3fl0prwz155x2n8"; 9 }; 10 11 # Have `configure' avoid `/usr/bin/nroff' in non-chroot builds. 12 NROFF = "${groff}/bin/nroff"; 13 14 patches = if stdenv.isCygwin then [ 15 ./01-cygwin.patch 16 ] else null; 17 18 postInstall = '' 19 sed -i s/-lncurses/-lncursesw/g $out/lib/pkgconfig/libedit.pc 20 ''; 21 22 configureFlags = [ "--enable-widec" ]; 23 24 propagatedBuildInputs = [ ncurses ]; 25 26 meta = with stdenv.lib; { 27 homepage = "http://www.thrysoee.dk/editline/"; 28 description = "A port of the NetBSD Editline library (libedit)"; 29 license = licenses.bsd3; 30 platforms = platforms.all; 31 }; 32}