2d78e8df25
Semi-automatic update. These checks were done: - built on NixOS - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/gramps -h` got 0 exit code - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/gramps --help` got 0 exit code - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/gramps help` got 0 exit code - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/gramps -v` and found version 4.2.8 - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/gramps --version` and found version 4.2.8 - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/..gramps-wrapped-wrapped -h` got 0 exit code - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/..gramps-wrapped-wrapped --help` got 0 exit code - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/..gramps-wrapped-wrapped help` got 0 exit code - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/..gramps-wrapped-wrapped -v` and found version 4.2.8 - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/..gramps-wrapped-wrapped --version` and found version 4.2.8 - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/.gramps-wrapped -h` got 0 exit code - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/.gramps-wrapped --help` got 0 exit code - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/.gramps-wrapped help` got 0 exit code - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/.gramps-wrapped -v` and found version 4.2.8 - ran `/nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8/bin/.gramps-wrapped --version` and found version 4.2.8 - found 4.2.8 with grep in /nix/store/wpccn0mfc52ia42cx83v2q7irnvi99gg-gramps-4.2.8
66 lines
1.8 KiB
Nix
66 lines
1.8 KiB
Nix
{ stdenv, fetchFromGitHub, gtk3, pythonPackages, intltool,
|
|
pango, gsettings-desktop-schemas,
|
|
# Optional packages:
|
|
enableOSM ? true, osm-gps-map
|
|
}:
|
|
|
|
let
|
|
inherit (pythonPackages) python buildPythonApplication;
|
|
in buildPythonApplication rec {
|
|
version = "4.2.8";
|
|
name = "gramps-${version}";
|
|
|
|
buildInputs = [ intltool gtk3 ]
|
|
# Map support
|
|
++ stdenv.lib.optional enableOSM osm-gps-map
|
|
;
|
|
|
|
# Currently broken
|
|
doCheck = false;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "gramps-project";
|
|
repo = "gramps";
|
|
rev = "v${version}";
|
|
sha256 = "17y6rjvvcz7lwjck4f5nmhnn07i9k5vzk5dp1jk7j3ldxjagscsd";
|
|
};
|
|
|
|
pythonPath = with pythonPackages; [ bsddb3 PyICU pygobject3 pycairo ] ++ [ pango ];
|
|
|
|
# Same installPhase as in buildPythonApplication but without --old-and-unmanageble
|
|
# install flag.
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
mkdir -p "$out/lib/${python.libPrefix}/site-packages"
|
|
|
|
export PYTHONPATH="$out/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
|
|
|
|
${python}/bin/${python.executable} setup.py install \
|
|
--install-lib=$out/lib/${python.libPrefix}/site-packages \
|
|
--prefix="$out"
|
|
|
|
eapth="$out/lib/${python.libPrefix}"/site-packages/easy-install.pth
|
|
if [ -e "$eapth" ]; then
|
|
# move colliding easy_install.pth to specifically named one
|
|
mv "$eapth" $(dirname "$eapth")/${name}.pth
|
|
fi
|
|
|
|
rm -f "$out/lib/${python.libPrefix}"/site-packages/site.py*
|
|
|
|
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;
|
|
license = licenses.gpl2;
|
|
};
|
|
}
|