summary refs log tree commit diff
path: root/pkgs/development/libraries/libvterm/default.nix
blob: 20433ab1458829bb20e7ae42d9e1c5e069dfe115 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{stdenv, fetchurl, pkgconfig, glib, ncurses}:
stdenv.mkDerivation rec {
  name = "libvterm-0.99.7";

  src = fetchurl {
    url = "mirror://sourceforge/libvterm/${name}.tar.gz";
    sha256 = "10gaqygmmwp0cwk3j8qflri5caf8vl3f7pwfl2svw5whv8wkn0k2";
  };

  patchPhase = ''
    sed -i -e s@/usr@$out@ -e /ldconfig/d Makefile
  '';

  preInstall = ''
    mkdir -p $out/include
    mkdir -p $out/lib
  '';

  buildInputs = [pkgconfig glib ncurses];

  meta = {
    homepage = http://libvterm.sourceforge.net/;
    description = "Terminal emulator library to mimic both vt100 and rxvt";
    license="GPLv2+";
  };
}