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