2011-04-06 12:00:48 +02:00
|
|
|
{ stdenv, fetchurl, gdk_pixbuf, scons, pkgconfig, gtk, glib,
|
2012-03-08 11:08:56 +01:00
|
|
|
pcre, cfitsio, perl, gob2, vala, libtiff, json_glib }:
|
2011-04-06 12:00:48 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2012-03-08 11:08:56 +01:00
|
|
|
name = "giv-0.9.22";
|
2011-04-06 12:00:48 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/giv/${name}.tar.gz";
|
2012-03-08 11:08:56 +01:00
|
|
|
sha256 = "1q0806b66ajppxbv1i71wx5d3ydc1h3hsz23m6g4g80dhiai7dly";
|
2011-04-06 12:00:48 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
# It built code to be put in a shared object without -fPIC
|
|
|
|
NIX_CFLAGS_COMPILE = "-fPIC";
|
|
|
|
|
|
|
|
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";
|
|
|
|
|
2012-03-08 11:08:56 +01:00
|
|
|
buildInputs = [ gdk_pixbuf pkgconfig gtk glib scons pcre cfitsio perl gob2 vala libtiff
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|