22 stdenv.mkDerivation rec {
26 src = fetchFromGitLab {
27 owner = "schmiddi-on-mobile";
30 hash = "sha256-ps55DiAsetmdcItZKcfyYDD0q0w1Tkf/U48UR/zQx1g=";
33 cargoDeps = rustPlatform.fetchCargoTarball {
34 name = "${pname}-${src}";
36 hash = "sha256-StJxWasUMj9kh9rLs4LFI3XaZ1Z5pvFBjEjtp79WZjg=";
45 rustPlatform.cargoSetupHook
57 ] ++ lib.optionals stdenv.hostPlatform.isDarwin (with darwin.apple_sdk.frameworks; [
63 # Darwin needs to link against gettext from nixpkgs instead of the one vendored by gettext-sys
64 # because the vendored copy does not build with newer versions of clang.
65 env = lib.optionalAttrs stdenv.hostPlatform.isDarwin {
66 GETTEXT_BIN_DIR = "${lib.getBin gettext}/bin";
67 GETTEXT_INCLUDE_DIR = "${lib.getDev gettext}/include";
68 GETTEXT_LIB_DIR = "${lib.getLib gettext}/lib";
72 changelog = "https://gitlab.com/schmiddi-on-mobile/railway/-/blob/${src.rev}/CHANGELOG.md";
73 description = "Travel with all your train information in one place. Also known as Railway";
74 homepage = "https://gitlab.com/schmiddi-on-mobile/railway";
75 license = lib.licenses.gpl3Plus;
76 mainProgram = "diebahn";
77 maintainers = with lib.maintainers; [ dotlambda lilacious ];