nixpkgs/pkgs/development/libraries/libviper/default.nix
Tobias Geerinckx-Rice b2d7f4b1ba Use common licence attributes from lib/licenses.nix
Many (less easily automatically converted) old-style strings
remain.

Where there was any possible ambiguity about the exact version or
variant intended, nothing was changed. IANAL, nor a search robot.

Use `with stdenv.lib` wherever it makes sense.
2015-05-27 22:00:06 +02:00

27 lines
683 B
Nix

{stdenv, fetchurl, pkgconfig, glib, ncurses, gpm}:
stdenv.mkDerivation rec {
name = "libviper-1.4.6";
src = fetchurl {
url = "mirror://sourceforge/libviper/${name}.tar.gz";
sha256 = "1jvm7wdgw6ixyhl0pcfr9lnr9g6sg6whyrs9ihjiz0agvqrgvxwc";
};
patchPhase = ''
sed -i -e s@/usr/local@$out@ -e /ldconfig/d -e '/cd vdk/d' Makefile
'';
preInstall = ''
mkdir -p $out/include
mkdir -p $out/lib
'';
buildInputs = [pkgconfig glib ncurses gpm];
meta = with stdenv.lib; {
homepage = http://libviper.sourceforge.net/;
description = "Simple window creation and management facilities for the console";
license = with licenses; gpl2Plus;
};
}