1{stdenv, fetchurl, pkgconfig, glib, ncurses, gpm}:
2stdenv.mkDerivation rec {
3 name = "libviper-1.4.6";
4
5 src = fetchurl {
6 url = "mirror://sourceforge/libviper/${name}.tar.gz";
7 sha256 = "1jvm7wdgw6ixyhl0pcfr9lnr9g6sg6whyrs9ihjiz0agvqrgvxwc";
8 };
9
10 patchPhase = ''
11 sed -i -e s@/usr/local@$out@ -e /ldconfig/d -e '/cd vdk/d' Makefile
12 '';
13
14 preInstall = ''
15 mkdir -p $out/include
16 mkdir -p $out/lib
17 '';
18
19 nativeBuildInputs = [ pkgconfig ];
20 buildInputs = [ glib ncurses gpm];
21
22 meta = with stdenv.lib; {
23 homepage = http://libviper.sourceforge.net/;
24 description = "Simple window creation and management facilities for the console";
25 license = licenses.gpl2Plus;
26 platforms = platforms.linux;
27 };
28}