Skip to content

Commit

Permalink
Merge pull request #262663 from reckenrode/diebahn-fix
Browse files Browse the repository at this point in the history
diebahn: fix build on Darwin
  • Loading branch information
wegank authored Oct 22, 2023
2 parents 0b6077f + 6c799ba commit 66796ff
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions pkgs/applications/misc/diebahn/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
, gtk4
, libadwaita
, pango
, gettext
, darwin
}:

Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 66796ff

Please sign in to comment.