mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
gramps: fix startup
Should fix #38463 I still get ``` WARNING: grampsgui.py: GTK translations missing, GUI will be broken, especially for RTL languages! ``` but at least it seems usable.
This commit is contained in:
parent
4ee9d05086
commit
360d241bd6
@ -1,5 +1,5 @@
|
|||||||
{ stdenv, fetchFromGitHub, gtk3, pythonPackages, intltool,
|
{ stdenv, fetchFromGitHub, gtk3, pythonPackages, intltool, gnome3,
|
||||||
pango, gsettings-desktop-schemas,
|
pango, gsettings-desktop-schemas, gobjectIntrospection, wrapGAppsHook,
|
||||||
# Optional packages:
|
# Optional packages:
|
||||||
enableOSM ? true, osm-gps-map
|
enableOSM ? true, osm-gps-map
|
||||||
}:
|
}:
|
||||||
@ -10,14 +10,12 @@ in buildPythonApplication rec {
|
|||||||
version = "4.2.6";
|
version = "4.2.6";
|
||||||
name = "gramps-${version}";
|
name = "gramps-${version}";
|
||||||
|
|
||||||
buildInputs = [ intltool gtk3 ]
|
nativeBuildInputs = [ wrapGAppsHook ];
|
||||||
|
buildInputs = [ intltool gtk3 gobjectIntrospection pango gnome3.gexiv2 ]
|
||||||
# Map support
|
# Map support
|
||||||
++ stdenv.lib.optional enableOSM osm-gps-map
|
++ stdenv.lib.optional enableOSM osm-gps-map
|
||||||
;
|
;
|
||||||
|
|
||||||
# Currently broken
|
|
||||||
doCheck = false;
|
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "gramps-project";
|
owner = "gramps-project";
|
||||||
repo = "gramps";
|
repo = "gramps";
|
||||||
@ -25,7 +23,7 @@ in buildPythonApplication rec {
|
|||||||
sha256 = "0k0bx6msc2kvkg0nwa9v2mp3qy7lmnxjd97n6a1zdzlq8yzw29f1";
|
sha256 = "0k0bx6msc2kvkg0nwa9v2mp3qy7lmnxjd97n6a1zdzlq8yzw29f1";
|
||||||
};
|
};
|
||||||
|
|
||||||
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
|
# Same installPhase as in buildPythonApplication but without --old-and-unmanageble
|
||||||
# install flag.
|
# install flag.
|
||||||
@ -51,13 +49,6 @@ in buildPythonApplication rec {
|
|||||||
runHook postInstall
|
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; {
|
meta = with stdenv.lib; {
|
||||||
description = "Genealogy software";
|
description = "Genealogy software";
|
||||||
homepage = http://gramps-project.org;
|
homepage = http://gramps-project.org;
|
||||||
|
Loading…
Reference in New Issue
Block a user