Files
nixpkgs/pkgs/by-name/mo/mobroute/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

58 lines
1.6 KiB
Nix

{
lib,
buildGoModule,
fetchFromSourcehut,
sqlite,
stdenv,
}:
buildGoModule rec {
pname = "mobroute";
version = "0.10.0";
src = fetchFromSourcehut {
owner = "~mil";
repo = "mobroute";
rev = "v${version}";
hash = "sha256-qQmOvo8fVZfAE0XzX1YPhfzXrBXEWwRkNNnhLQFd4ec=";
};
vendorHash = "sha256-HcHPQq9KmqSB5RdmZDFR6BXsVoJ4XfBMClS8hR8weCU=";
buildInputs = [ sqlite ];
tags = [
"libsqlite3"
"sqlite_math_functions"
];
preCheck = ''
export HOME=$TMPDIR
'';
postInstall = ''
mv $out/bin/{cli,mobroute}
'';
meta = with lib; {
description = "General purpose public transportation router based on GTFS";
longDescription = ''
Mobroute is a general purpose public transportation router
(e.g. trip planner) Go library and CLI that works
by directly ingesting timetable (GTFS) data from transit agencies
(sourced from the Mobility Database). After data has been fetched,
routing calculations can be run offline.
Overall, Mobroute aims to offer an opensource framework
for integrating data-provider-agnostic GTFS public transit capabilities
(integrated GTFS ETL, GTFS multisource support, and routing algorithm)
into applications to get users from point-a to point-b via public transit
without comprising privacy or user freedoms.
'';
homepage = "https://git.sr.ht/~mil/mobroute";
license = licenses.gpl3Plus;
maintainers = [ maintainers.McSinyx ];
mainProgram = "mobroute";
platforms = platforms.unix;
broken = stdenv.hostPlatform.isDarwin;
};
}