1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 13:41:26 +00:00
nixpkgs/pkgs/development/libraries/libviper/default.nix
John Ericson 531e4b80c9 misc pkgs: Basic sed to get fix pkgconfig and autoreconfHook buildInputs
Only acts on one-line dependency lists.
2017-09-21 15:49:53 -04:00

29 lines
738 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
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ glib ncurses gpm];
meta = with stdenv.lib; {
homepage = http://libviper.sourceforge.net/;
description = "Simple window creation and management facilities for the console";
license = licenses.gpl2Plus;
platforms = platforms.linux;
};
}