diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libviper')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/libviper/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libviper/default.nix b/nixpkgs/pkgs/development/libraries/libviper/default.nix new file mode 100644 index 000000000000..e3b3674acc9f --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/libviper/default.nix @@ -0,0 +1,28 @@ +{lib, stdenv, fetchurl, pkg-config, 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 = [ pkg-config ]; + buildInputs = [ glib ncurses gpm]; + + meta = with lib; { + homepage = "http://libviper.sourceforge.net/"; + description = "Simple window creation and management facilities for the console"; + license = licenses.gpl2Plus; + platforms = platforms.linux; + }; +} |