22 stdenv.mkDerivation rec {
26 src = fetchFromGitLab {
27 owner = "schmiddi-on-mobile";
30 hash = "sha256-WEjMtRXRmcbgCIQNJRlGYGQhem9W8nb/lsjft0oWxAk=";
33 cargoDeps = rustPlatform.importCargoLock {
34 lockFile = ./Cargo.lock;
36 "hafas-rs-0.1.0" = "sha256-9YmWiief8Nux1ZkPTZjzer/qKAa5hORVn8HngMtKDxM=";
46 rustPlatform.cargoSetupHook
58 ] ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk.frameworks; [
64 # Darwin needs to link against gettext from nixpkgs instead of the one vendored by gettext-sys
65 # because the vendored copy does not build with newer versions of clang.
66 env = lib.optionalAttrs stdenv.isDarwin {
67 GETTEXT_BIN_DIR = "${lib.getBin gettext}/bin";
68 GETTEXT_INCLUDE_DIR = "${lib.getDev gettext}/include";
69 GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib";
73 description = "GTK4 frontend for the travel information of the german railway";
74 homepage = "https://gitlab.com/schmiddi-on-mobile/diebahn";
75 license = lib.licenses.gpl3Plus;
76 maintainers = with lib.maintainers; [ dotlambda ];