Merge pull request #309295 from TomaSajt/hieroglyphic

hieroglypic: fix darwin build
This commit is contained in:
Weijia Wang 2024-05-08 20:58:33 +02:00 committed by GitHub
commit 9a4fc03ff4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,8 +13,13 @@
glib,
gtk4,
libadwaita,
darwin,
gettext,
}:
let
inherit (darwin.apple_sdk.frameworks) CoreFoundation Foundation;
in
stdenv.mkDerivation (finalAttrs: {
pname = "hieroglyphic";
version = "1.0.1";
@ -44,11 +49,19 @@ stdenv.mkDerivation (finalAttrs: {
desktop-file-utils
];
buildInputs = [
glib
gtk4
libadwaita
];
buildInputs =
[
glib
gtk4
libadwaita
]
++ lib.optionals stdenv.isDarwin [
CoreFoundation
Foundation
];
# needed for darwin
env.GETTEXT_DIR = "${gettext}";
meta = {
changelog = "https://github.com/FineFindus/Hieroglyphic/releases/tag/v${finalAttrs.version}";