6cfba00e1b
svn path=/nixpkgs/trunk/; revision=26709
35 lines
977 B
Nix
35 lines
977 B
Nix
{ stdenv, fetchurl, gdk_pixbuf, scons, pkgconfig, gtk, glib,
|
|
pcre, cfitsio, perl, gob2, vala, libtiff }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "giv-0.9.18";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/giv/${name}.tar.gz";
|
|
sha256 = "0w81cc56mq8qiv36jljgarycly3fnpr5i7cjnsprgfm79icdi8nl";
|
|
};
|
|
|
|
# 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
|
|
'';
|
|
|
|
patches = [ /tmp/patch ];
|
|
|
|
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;
|
|
};
|
|
}
|