qalculate-gtk: generate bundle on macOS

This commit is contained in:
Michael Hoang 2023-09-14 18:49:12 +02:00
parent f5892ddac1
commit a03367cae4

View file

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, intltool, autoreconfHook, pkg-config, libqalculate, gtk3, curl, wrapGAppsHook }:
{ lib, stdenv, fetchFromGitHub, intltool, autoreconfHook, pkg-config, libqalculate, gtk3, curl, wrapGAppsHook, desktopToDarwinBundle }:
stdenv.mkDerivation (finalAttrs: {
pname = "qalculate-gtk";
@ -13,7 +13,8 @@ stdenv.mkDerivation (finalAttrs: {
hardeningDisable = [ "format" ];
nativeBuildInputs = [ intltool pkg-config autoreconfHook wrapGAppsHook ];
nativeBuildInputs = [ intltool pkg-config autoreconfHook wrapGAppsHook ]
++ lib.optionals stdenv.isDarwin [ desktopToDarwinBundle ];
buildInputs = [ libqalculate gtk3 curl ];
enableParallelBuilding = true;