summaryrefslogtreecommitdiff
path: root/chaski/services/tracktrain.nix
diff options
context:
space:
mode:
authorstuebinm2022-06-14 17:38:25 +0200
committerstuebinm2022-06-14 17:38:25 +0200
commit0d0734d2239c6f2f61ae7ddd859f491f46d6848a (patch)
tree76e18091bcf5c750387818ade016208bdcc20e20 /chaski/services/tracktrain.nix
parentcb8c015c2cae844c998e8ff30588536f519349a7 (diff)
update sources, move to NixOS 22.05
Diffstat (limited to 'chaski/services/tracktrain.nix')
-rw-r--r--chaski/services/tracktrain.nix9
1 files changed, 8 insertions, 1 deletions
diff --git a/chaski/services/tracktrain.nix b/chaski/services/tracktrain.nix
index 6f9acb9..3841a42 100644
--- a/chaski/services/tracktrain.nix
+++ b/chaski/services/tracktrain.nix
@@ -23,7 +23,14 @@
script = ''
cd /tmp
wget "https://ilztalbahn.eu/wp-content/uploads/2020/07/gtfs.zip"
- ${import inputs.tracktrain {nixpkgs = pkgs;}}/bin/haskell-gtfs
+ ${((import inputs.tracktrain {nixpkgs = pkgs;}))
+ # have to remove version constraints because some aren't in 22.05
+ .overrideAttrs (old: { patchPhase = ''
+ sed -i "s/base.*/base/g" *.cabal
+ sed -i "s/^>=.*//g" *.cabal
+ sed -i "s/>=.*//g" *.cabal
+ ''; })
+ }/bin/haskell-gtfs
'';
startAt = "daily";
};