at v206 879 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 find $out/lib -type f | grep '\.\(la\|pc\)''$' | xargs sed -i \ 20 -e 's,-lncurses[a-z]*,-L${ncurses}/lib -lncursesw,g' 21 ''; 22 23 configureFlags = [ "--enable-widec" ]; 24 25 propagatedBuildInputs = [ ncurses ]; 26 27 meta = with stdenv.lib; { 28 homepage = "http://www.thrysoee.dk/editline/"; 29 description = "A port of the NetBSD Editline library (libedit)"; 30 license = licenses.bsd3; 31 platforms = platforms.all; 32 }; 33}