Merge pull request #38472 from symphorien/gramps

Gramps
This commit is contained in:
Matthew Justin Bauer 2018-04-08 21:39:34 -05:00 committed by GitHub
commit a2b9d84793
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, gtk3, pythonPackages, intltool,
pango, gsettings-desktop-schemas,
{ stdenv, fetchFromGitHub, gtk3, pythonPackages, intltool, gnome3,
pango, gsettings-desktop-schemas, gobjectIntrospection, wrapGAppsHook,
# Optional packages:
enableOSM ? true, osm-gps-map
}:
@ -10,14 +10,12 @@ in buildPythonApplication rec {
version = "4.2.8";
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";
repo = "gramps";
@ -25,7 +23,7 @@ in buildPythonApplication rec {
sha256 = "17y6rjvvcz7lwjck4f5nmhnn07i9k5vzk5dp1jk7j3ldxjagscsd";
};
pythonPath = with pythonPackages; [ bsddb3 PyICU pygobject3 pycairo ] ++ [ pango ];
pythonPath = with pythonPackages; [ bsddb3 PyICU pygobject3 pycairo ];
# Same installPhase as in buildPythonApplication but without --old-and-unmanageble
# install flag.
@ -51,13 +49,6 @@ in buildPythonApplication rec {
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;