1 { lib, stdenv, fetchurl, pkg-config, glib, ncurses }:
3 stdenv.mkDerivation rec {
8 url = "mirror://sourceforge/libvterm/${pname}-${version}.tar.gz";
9 sha256 = "10gaqygmmwp0cwk3j8qflri5caf8vl3f7pwfl2svw5whv8wkn0k2";
13 mkdir -p $out/include $out/lib
17 substituteInPlace Makefile \
18 --replace "gcc" "${stdenv.cc.targetPrefix}cc" \
19 --replace "ldconfig" "" \
20 --replace "/usr" "$out"
22 makeFlagsArray+=("PKG_CFG=`${stdenv.cc.targetPrefix}pkg-config --cflags glib-2.0`")
26 propagatedBuildInputs = [ glib ];
30 nativeBuildInputs = [ pkg-config ];
31 buildInputs = [ ncurses ];
34 homepage = "http://libvterm.sourceforge.net/";
35 description = "Terminal emulator library to mimic both vt100 and rxvt";
36 license = licenses.gpl2Plus;
37 platforms = platforms.linux;