summaryrefslogtreecommitdiff
path: root/chaski/services
diff options
context:
space:
mode:
authorstuebinm2023-02-03 01:00:06 +0100
committerstuebinm2023-02-03 01:00:06 +0100
commit6181a98668a74f4ddc88cc5814ba910d40b32b5a (patch)
tree2a90760790d7f8b8d26bff49b73173f23e37a512 /chaski/services
parent633265d115900647a5ea9a862a41ad11ed3dccf1 (diff)
chaski: update tracktrain & use static gtfs
Diffstat (limited to 'chaski/services')
-rw-r--r--chaski/services/gtfs.zipbin0 -> 61958 bytes
-rw-r--r--chaski/services/tracktrain.nix3
2 files changed, 1 insertions, 2 deletions
diff --git a/chaski/services/gtfs.zip b/chaski/services/gtfs.zip
new file mode 100644
index 0000000..e0b8fc3
--- /dev/null
+++ b/chaski/services/gtfs.zip
Binary files differ
diff --git a/chaski/services/tracktrain.nix b/chaski/services/tracktrain.nix
index f1a7d13..940ad71 100644
--- a/chaski/services/tracktrain.nix
+++ b/chaski/services/tracktrain.nix
@@ -14,7 +14,7 @@ let
tracktrain-config = ''
dbstring: "dbname=tracktrain user=tracktrain"
- gtfs: ./gtfs.zip
+ gtfs: ${pkgs.copyPathToStore ./gtfs.zip}
warp:
port: 4000
@@ -105,7 +105,6 @@ in
script = ''
cd /tmp
ln -sf ${pkgs.writeText "config.yaml" tracktrain-config} "config.yaml"
- wget "https://ilztalbahn.eu/wp-content/uploads/2020/07/gtfs.zip"
${stripLib (((import inputs.tracktrain {nixpkgs = pkgs;}))
# have to remove version constraints because some aren't in 22.05
.overrideAttrs (old: { patchPhase = ''