nixpkgs/pkgs/development/libraries/libviper/default.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

26 lines
649 B
Nix

{stdenv, fetchurl, pkgconfig, glib, ncurses, gpm}:
stdenv.mkDerivation rec {
name = "libviper-1.4.5";
src = fetchurl {
url = "mirror://sourceforge/libviper/${name}.tar.gz";
sha256 = "1lryqv9xfsshx8x8c858h8fmsi2fkja0mhw415wa2bj9cqyb8byz";
};
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 = {
homepage = http://libviper.sourceforge.net/;
description = "Simple window creation and management facilities for the console";
license="GPLv2+";
};
}