diff options
author | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-05-05 17:31:03 +0200 |
---|---|---|
committer | TomaSajt <62384384+TomaSajt@users.noreply.github.com> | 2024-05-05 19:47:59 +0200 |
commit | a2bd19b1d444c66b6326b39958c95d7c59695d7e (patch) | |
tree | 476a19e531895a27078ca0adc63e808bfced08f2 /pkgs/by-name/hi/hieroglyphic/package.nix | |
parent | 818f65922cf7bdc4f67395a171416382777e8bce (diff) |
hieroglypic: fix darwin build
Diffstat (limited to 'pkgs/by-name/hi/hieroglyphic/package.nix')
-rw-r--r-- | pkgs/by-name/hi/hieroglyphic/package.nix | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/pkgs/by-name/hi/hieroglyphic/package.nix b/pkgs/by-name/hi/hieroglyphic/package.nix index e1a28fc7be4c5..f130488e95b2c 100644 --- a/pkgs/by-name/hi/hieroglyphic/package.nix +++ b/pkgs/by-name/hi/hieroglyphic/package.nix @@ -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}"; |