2016-09-11 23:24:51 +02:00
|
|
|
{ stdenv, fetchFromGitHub, gdk_pixbuf, scons, pkgconfig, gtk2, glib,
|
2017-12-19 05:18:53 +01:00
|
|
|
pcre, cfitsio, perl, gob2, vala, libtiff, json_glib }:
|
2011-04-06 12:00:48 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-09-22 13:55:14 +02:00
|
|
|
name = "giv-${version}";
|
|
|
|
version = "0.9.26";
|
2011-04-06 12:00:48 +02:00
|
|
|
|
2016-03-29 17:39:43 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dov";
|
|
|
|
repo = "giv";
|
2017-09-22 13:55:14 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1sfm8j3hvqij6z3h8xz724d7hjqqbzljl2a6pp4yjpnnrxksnic2";
|
2011-04-06 12:00:48 +02:00
|
|
|
};
|
|
|
|
|
2016-02-26 18:38:15 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2011-04-06 12:00:48 +02:00
|
|
|
|
|
|
|
prePatch = ''
|
|
|
|
sed -i s,/usr/bin/perl,${perl}/bin/perl, doc/eperl
|
2017-12-19 05:18:53 +01:00
|
|
|
sed -i s,/usr/local,$out, SConstruct
|
2011-04-06 12:00:48 +02:00
|
|
|
'';
|
|
|
|
|
2011-11-21 15:47:28 +01:00
|
|
|
patches = [ ./build.patch ];
|
2011-04-06 12:00:48 +02:00
|
|
|
|
|
|
|
buildPhase = "scons";
|
|
|
|
|
|
|
|
installPhase = "scons install";
|
|
|
|
|
2017-12-19 05:18:53 +01:00
|
|
|
nativeBuildInputs = [ scons pkgconfig vala perl gob2 ];
|
|
|
|
buildInputs = [ gdk_pixbuf gtk2 glib pcre cfitsio libtiff json_glib ];
|
2011-04-06 12:00:48 +02:00
|
|
|
|
2017-12-19 05:18:53 +01:00
|
|
|
meta = with stdenv.lib; {
|
2011-04-06 12:00:48 +02:00
|
|
|
description = "Cross platform image and hierarchical vector viewer based";
|
|
|
|
homepage = http://giv.sourceforge.net/giv/;
|
2017-12-19 05:18:53 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ viric ];
|
|
|
|
platforms = with platforms; linux;
|
2011-04-06 12:00:48 +02:00
|
|
|
};
|
|
|
|
}
|