Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-19.03 29 lines 703 B view raw
1{ stdenv, fetchurl, pkgconfig, glib, ncurses }: 2 3stdenv.mkDerivation rec { 4 name = "libvterm-0.99.7"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/libvterm/${name}.tar.gz"; 8 sha256 = "10gaqygmmwp0cwk3j8qflri5caf8vl3f7pwfl2svw5whv8wkn0k2"; 9 }; 10 11 patchPhase = '' 12 sed -i -e s@/usr@$out@ -e /ldconfig/d Makefile 13 ''; 14 15 preInstall = '' 16 mkdir -p $out/include 17 mkdir -p $out/lib 18 ''; 19 20 nativeBuildInputs = [ pkgconfig ]; 21 buildInputs = [ glib ncurses ]; 22 23 meta = with stdenv.lib; { 24 homepage = http://libvterm.sourceforge.net/; 25 description = "Terminal emulator library to mimic both vt100 and rxvt"; 26 license = licenses.gpl2Plus; 27 platforms = platforms.linux; 28 }; 29}