summaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
authornetworkException <git@nwex.de>2025-04-18 13:33:55 +0200
committernetworkException <git@nwex.de>2025-04-18 13:36:24 +0200
commit78b9b451b2da03a3d3261247bbbdde2f8195919d (patch)
tree1a5d695dfd3e1aee4405930d5b028a3963651bef /shell.nix
Initial version of Travel::Status::MOTIS
This patch contains the initial implementation of Travel::Status::MOTIS, an interface to MOTIS routing services for departures, trips and stop search based on Travel::Status::DE::DBRIS. While MOTIS' focus is on intermodal routing, this module has been written for use in https://finalrewind.org/projects/travelynx, as such it focuses on departures at stops and trips. As MOTIS is open source and can be self hosted, there are multiple services (sourced from the transport-apis repository located as a submodule in `ext/`), available: Currently RNV for local transit in Mannheim, Germany and surrounding cities and transitous for worldwide crowdsourced tranit feeds. In addition to scheduled stops and trips this module supports realtime delay predictions, tracks, polylines, cancellations, headsigns and route colors whenever available.
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..8a10355
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,17 @@
+{ pkgs ? import <nixpkgs> {} }: pkgs.mkShell {
+ nativeBuildInputs = with pkgs; [
+ (perl.withPackages (perlPackages: with perlPackages; [
+ ModuleBuild
+ ClassAccessor
+ DateTime
+ DateTimeFormatISO8601
+ JSON
+ LWPProtocolHttps
+ LWPUserAgent
+ TestCompile
+ TestPod
+ URI
+ FileSlurp
+ ]))
+ ];
+}