nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 buildInputs = [pkgconfig glib ncurses gpm];
20
21 meta = with stdenv.lib; {
22 homepage = http://libviper.sourceforge.net/;
23 description = "Simple window creation and management facilities for the console";
24 license = licenses.gpl2Plus;
25 platforms = platforms.linux;
26 };
27}