diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-23 00:27:55 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 00:27:55 +0200 |
commit | 66796ff6a6294acd8e7c46d77d1893911214f927 (patch) | |
tree | c16c6332ac43e710259378c47eb170611de42bc5 /pkgs/applications | |
parent | 0b6077fb7b3666372713233ad7d7a9abd97c97b2 (diff) | |
parent | 6c799bae33bc76dc028ba8a17f296b23056c4b3f (diff) |
Merge pull request #262663 from reckenrode/diebahn-fix
diebahn: fix build on Darwin
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/misc/diebahn/default.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/pkgs/applications/misc/diebahn/default.nix b/pkgs/applications/misc/diebahn/default.nix index a90dddb3162f0..ea74034642187 100644 --- a/pkgs/applications/misc/diebahn/default.nix +++ b/pkgs/applications/misc/diebahn/default.nix @@ -15,6 +15,7 @@ , gtk4 , libadwaita , pango +, gettext , darwin }: @@ -54,9 +55,19 @@ stdenv.mkDerivation rec { gtk4 libadwaita pango - ] ++ lib.optionals stdenv.isDarwin [ - darwin.apple_sdk.frameworks.Security - ]; + ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [ + CoreFoundation + Foundation + Security + ]); + + # Darwin needs to link against gettext from nixpkgs instead of the one vendored by gettext-sys + # because the vendored copy does not build with newer versions of clang. + env = lib.optionalAttrs stdenv.isDarwin { + GETTEXT_BIN_DIR = "${lib.getBin gettext}/bin"; + GETTEXT_INCLUDE_DIR = "${lib.getDev gettext}/include"; + GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib"; + }; meta = { description = "GTK4 frontend for the travel information of the german railway"; |