2016-03-29 17:39:43 +02:00
|
|
|
{ stdenv, fetchFromGitHub, gdk_pixbuf, scons, pkgconfig, gtk, glib,
|
2016-08-21 18:21:29 +02:00
|
|
|
pcre, cfitsio, perl, gob2, vala_0_23, libtiff, json_glib }:
|
2011-04-06 12:00:48 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2016-03-29 17:39:43 +02:00
|
|
|
name = "giv-20150811-git";
|
2011-04-06 12:00:48 +02:00
|
|
|
|
2016-03-29 17:39:43 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dov";
|
|
|
|
repo = "giv";
|
|
|
|
rev = "64648bfbbf10ec4a9adfbc939c96c7d1dbdce57a";
|
|
|
|
sha256 = "1sz2n7jbmg3g97bs613xxjpzqbsl5rvpg6v7g3x3ycyd35r8vsfp";
|
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
|
|
|
|
sed -i s,/usr/local,$out, SConstruct
|
|
|
|
'';
|
|
|
|
|
2011-11-21 15:47:28 +01:00
|
|
|
patches = [ ./build.patch ];
|
2011-04-06 12:00:48 +02:00
|
|
|
|
|
|
|
buildPhase = "scons";
|
|
|
|
|
|
|
|
installPhase = "scons install";
|
|
|
|
|
2016-08-21 18:21:29 +02:00
|
|
|
buildInputs = [ gdk_pixbuf pkgconfig gtk glib scons pcre cfitsio perl gob2 vala_0_23 libtiff
|
2012-03-08 11:08:56 +01:00
|
|
|
json_glib ];
|
2011-04-06 12:00:48 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Cross platform image and hierarchical vector viewer based";
|
|
|
|
homepage = http://giv.sourceforge.net/giv/;
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2011-04-06 12:00:48 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|