anchor.diff:    version = "4.2.6";
     name = "gramps-${version}";
   
  -  buildInputs = [ intltool gtk3 ] 
  +  nativeBuildInputs = [ wrapGAppsHook ];
  +  buildInputs = [ intltool gtk3 gobjectIntrospection pango gnome3.gexiv2 ] 
       # Map support
       ++ stdenv.lib.optional enableOSM osm-gps-map
     ;
  -
  -  # Currently broken
  -  doCheck = false;
   
     src = fetchFromGitHub {
       owner = "gramps-project";
  
positive.code:     runHook postInstall
    '';
  
    # gobjectIntrospection package, wrap accordingly
    preFixup = ''
      wrapProgram $out/bin/gramps \
        --prefix GI_TYPELIB_PATH : "$GI_TYPELIB_PATH" \
        --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH:$out/share"
    '';
  
    meta = with stdenv.lib; {
      description = "Genealogy software";
      homepage = http://gramps-project.org;
  
negative.code: { stdenv, fetchFromGitHub, gtk3, pythonPackages, intltool, gnome3,
    pango, gsettings-desktop-schemas, gobjectIntrospection, wrapGAppsHook,
  # Optional packages:
   enableOSM ? true, osm-gps-map
   }:
  