mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 23:43:30 +00:00
6557fff985
Diff: https://gitlab.com/schmiddi-on-mobile/railway/-/compare/2.5.0...2.6.0 Changelog: https://gitlab.com/schmiddi-on-mobile/railway/-/blob/2.6.0/CHANGELOG.md
80 lines
1.7 KiB
Nix
80 lines
1.7 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitLab
|
|
, cargo
|
|
, desktop-file-utils
|
|
, meson
|
|
, ninja
|
|
, pkg-config
|
|
, rustPlatform
|
|
, rustc
|
|
, wrapGAppsHook4
|
|
, cairo
|
|
, gdk-pixbuf
|
|
, glib
|
|
, gtk4
|
|
, libadwaita
|
|
, pango
|
|
, gettext
|
|
, darwin
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "diebahn";
|
|
version = "2.6.0";
|
|
|
|
src = fetchFromGitLab {
|
|
owner = "schmiddi-on-mobile";
|
|
repo = "railway";
|
|
rev = version;
|
|
hash = "sha256-cVCq7iVurX5SlCs7A5FSds6KaxMW3Qv/JIhhO69FTrk=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoTarball {
|
|
name = "${pname}-${src}";
|
|
inherit src;
|
|
hash = "sha256-J8KOmvSiUNBpt4qSFnNEwSKFJMSaTFd14G2INDYwPUE=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cargo
|
|
desktop-file-utils
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
rustPlatform.cargoSetupHook
|
|
rustc
|
|
wrapGAppsHook4
|
|
];
|
|
|
|
buildInputs = [
|
|
cairo
|
|
gdk-pixbuf
|
|
glib
|
|
gtk4
|
|
libadwaita
|
|
pango
|
|
] ++ 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 = {
|
|
changelog = "https://gitlab.com/schmiddi-on-mobile/railway/-/blob/${src.rev}/CHANGELOG.md";
|
|
description = "Travel with all your train information in one place. Also known as Railway";
|
|
homepage = "https://gitlab.com/schmiddi-on-mobile/railway";
|
|
license = lib.licenses.gpl3Plus;
|
|
mainProgram = "diebahn";
|
|
maintainers = with lib.maintainers; [ dotlambda lilacious ];
|
|
};
|
|
}
|