mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
commit
a2b9d84793
1 changed files with 5 additions and 14 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue