anchor.diff:  { stdenv, fetchFromGitHub, gdk_pixbuf, scons, pkgconfig, gtk2, glib,
  -  pcre, cfitsio, perl, gob2, vala_0_23, libtiff, json_glib }:
  +  pcre, cfitsio, perl, gob2, vala, libtiff, json_glib }:
   
   stdenv.mkDerivation rec {
     name = "giv-${version}";
  
positive.code: 
    prePatch = ''
      sed -i s,/usr/bin/perl,${perl}/bin/perl, doc/eperl
      sed -i s,/usr/local,$out, SConstruct 
    '';
  
    patches = [ ./build.patch ];
  
negative.code: 
    installPhase = "scons install";
  
    nativeBuildInputs = [ scons pkgconfig vala perl gob2 ];
    buildInputs = [ gdk_pixbuf gtk2 glib pcre cfitsio libtiff json_glib ];
  
    meta = with stdenv.lib; {
      description = "Cross platform image and hierarchical vector viewer based";
      homepage = http://giv.sourceforge.net/giv/;
      license = licenses.gpl2Plus;
      maintainers = with maintainers; [ viric ];
      platforms = with platforms; linux;
    };
  }
  