From 2aa7130da4dcad0aface92c40ea3acd9e3e10efe Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Wed, 7 May 2025 17:49:11 +1000 Subject: [PATCH] gramps: add macOS app bundle --- pkgs/by-name/gr/gramps/package.nix | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/gr/gramps/package.nix b/pkgs/by-name/gr/gramps/package.nix index 1c3aed85a1c3..7972d9ec2ae3 100644 --- a/pkgs/by-name/gr/gramps/package.nix +++ b/pkgs/by-name/gr/gramps/package.nix @@ -1,4 +1,5 @@ { + stdenv, lib, fetchFromGitHub, gtk3, @@ -10,6 +11,7 @@ gobject-introspection, wrapGAppsHook3, gettext, + desktopToDarwinBundle, # Optional packages: enableOSM ? true, osm-gps-map, @@ -52,13 +54,18 @@ buildPythonApplication rec { python3Packages.setuptools ]; - nativeCheckInputs = [ - glibcLocales - python3Packages.unittestCheckHook - python3Packages.jsonschema - python3Packages.mock - python3Packages.lxml - ]; + nativeCheckInputs = + [ + glibcLocales + python3Packages.unittestCheckHook + python3Packages.jsonschema + python3Packages.mock + python3Packages.lxml + ] + # TODO: use JHBuild to build the Gramps' bundle + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + desktopToDarwinBundle + ]; buildInputs = [