diff options
Diffstat (limited to 'pkgs/applications/graphics/giv/default.nix')
-rw-r--r-- | pkgs/applications/graphics/giv/default.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/giv/default.nix b/pkgs/applications/graphics/giv/default.nix new file mode 100644 index 000000000000..d32ef5bbebc9 --- /dev/null +++ b/pkgs/applications/graphics/giv/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchurl, gdk_pixbuf, scons, pkgconfig, gtk, glib, + pcre, cfitsio, perl, gob2, vala, libtiff }: + +stdenv.mkDerivation rec { + name = "giv-0.9.19"; + + src = fetchurl { + url = "mirror://sourceforge/giv/${name}.tar.gz"; + sha256 = "07sgpp4k27417ymavcvil4waq6ac2mj08g42g1l52l435xm5mnh7"; + }; + + # 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 = [ ./build.patch ./union.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; + }; +} |