nixpkgs/pkgs/applications/graphics/giv/default.nix

39 lines
1.0 KiB
Nix
Raw Normal View History

{ stdenv, fetchFromGitHub, gdk_pixbuf, scons, pkgconfig, gtk2, glib,
pcre, cfitsio, perl, gob2, vala, libtiff, json-glib }:
stdenv.mkDerivation rec {
2017-09-22 12:55:14 +01:00
name = "giv-${version}";
version = "0.9.26";
src = fetchFromGitHub {
owner = "dov";
repo = "giv";
2017-09-22 12:55:14 +01:00
rev = "v${version}";
sha256 = "1sfm8j3hvqij6z3h8xz724d7hjqqbzljl2a6pp4yjpnnrxksnic2";
};
hardeningDisable = [ "format" ];
prePatch = ''
sed -i s,/usr/bin/perl,${perl}/bin/perl, doc/eperl
2017-12-19 04:18:53 +00:00
sed -i s,/usr/local,$out, SConstruct
'';
patches = [ ./build.patch ];
buildPhase = "scons";
installPhase = "scons install";
2017-12-19 04:18:53 +00:00
nativeBuildInputs = [ scons pkgconfig vala perl gob2 ];
buildInputs = [ gdk_pixbuf gtk2 glib pcre cfitsio libtiff json-glib ];
2017-12-19 04:18:53 +00:00
meta = with stdenv.lib; {
description = "Cross platform image and hierarchical vector viewer based";
homepage = http://giv.sourceforge.net/giv/;
2017-12-19 04:18:53 +00:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ viric ];
platforms = with platforms; linux;
};
}