gramps: add support for recommended packages

The GRAMPS readme indicates there are a number of recommended packages (graphviz, ghostscript,
PyICU and osm-gps-map which was already supported).  These default to true.
This commit is contained in:
joncojonathan 2018-10-07 17:37:59 +01:00
parent 938a0ddf4a
commit 5a8a982526
No known key found for this signature in database
GPG key ID: E1E5A26A2C69B733

View file

@ -1,7 +1,9 @@
{ stdenv, fetchFromGitHub, gtk3, pythonPackages, intltool, gnome3,
pango, gobjectIntrospection, wrapGAppsHook,
# Optional packages:
enableOSM ? true, osm-gps-map
enableOSM ? true, osm-gps-map,
enableGraphviz ? true, graphviz,
enableGhostscript ? true, ghostscript
}:
let
@ -14,6 +16,11 @@ in buildPythonApplication rec {
buildInputs = [ intltool gtk3 gobjectIntrospection pango gnome3.gexiv2 ]
# Map support
++ stdenv.lib.optional enableOSM osm-gps-map
# Graphviz support
++ stdenv.lib.optional enableGraphviz graphviz
# Ghostscript support
++ stdenv.lib.optional enableGhostscript ghostscript
;
src = fetchFromGitHub {