diff options
Diffstat (limited to 'chaski')
-rw-r--r-- | chaski/configuration.nix | 4 | ||||
-rw-r--r-- | chaski/services/tracktrain.nix | 9 |
2 files changed, 9 insertions, 4 deletions
diff --git a/chaski/configuration.nix b/chaski/configuration.nix index 88d617b..6e14e95 100644 --- a/chaski/configuration.nix +++ b/chaski/configuration.nix @@ -8,9 +8,7 @@ imports = [ # Include the results of the hardware scan. ./hardware-configuration.nix - # note: dns records deleted - # ./services/jitsi.nix - ./services/uplcg.nix + # ./services/uplcg.nix ./services/woitb.nix ./services/geolocation.nix ./services/tracktrain.nix 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"; }; |