2011-04-06 12:00:48 +02:00
|
|
|
{ stdenv, fetchurl, gdk_pixbuf, scons, pkgconfig, gtk, glib,
|
|
|
|
pcre, cfitsio, perl, gob2, vala, libtiff }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2011-06-15 10:59:02 +02:00
|
|
|
name = "giv-0.9.19";
|
2011-04-06 12:00:48 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/giv/${name}.tar.gz";
|
2011-06-15 10:59:02 +02:00
|
|
|
sha256 = "07sgpp4k27417ymavcvil4waq6ac2mj08g42g1l52l435xm5mnh7";
|
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-08-12 10:31:48 +02:00
|
|
|
patches = [ ./build.patch ./union.patch ];
|
2011-04-06 12:00:48 +02:00
|
|
|
|
|
|
|
buildPhase = "scons";
|
|
|
|
|
|
|
|
installPhase = "scons install";
|
|
|
|
|
|
|
|
buildInputs = [ gdk_pixbuf pkgconfig gtk glib scons pcre cfitsio perl gob2 vala libtiff ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Cross platform image and hierarchical vector viewer based";
|
|
|
|
homepage = http://giv.sourceforge.net/giv/;
|
|
|
|
license = "GPLv2+";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|