23 stdenv.mkDerivation rec {
27 src = fetchFromGitLab {
28 owner = "schmiddi-on-mobile";
31 hash = "sha256-SLZJiCkHUS2p7cNk3i3yO2c3tWR4T4ch+zJ1iYEkS6E=";
34 cargoDeps = rustPlatform.fetchCargoTarball {
35 name = "${pname}-${src}";
37 hash = "sha256-XYlRm8yqQr9ZNV7jQeuR8kvqFNudUjJlzE6h9X0zq0Y=";
46 rustPlatform.cargoSetupHook
59 ] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
65 # Darwin needs to link against gettext from nixpkgs instead of the one vendored by gettext-sys
66 # because the vendored copy does not build with newer versions of clang.
67 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
68 GETTEXT_BIN_DIR = "${lib.getBin gettext}/bin";
69 GETTEXT_INCLUDE_DIR = "${lib.getDev gettext}/include";
70 GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib";
74 changelog = "https://gitlab.com/schmiddi-on-mobile/railway/-/blob/${src.rev}/CHANGELOG.md";
75 description = "Travel with all your train information in one place. Also known as Railway";
76 homepage = "https://gitlab.com/schmiddi-on-mobile/railway";
77 license = lib.licenses.gpl3Plus;
78 mainProgram = "diebahn";
79 maintainers = with lib.maintainers; [ dotlambda lilacious ];