diff options
author | stuebinm | 2022-06-14 17:38:25 +0200 |
---|---|---|
committer | stuebinm | 2022-06-14 17:38:25 +0200 |
commit | 0d0734d2239c6f2f61ae7ddd859f491f46d6848a (patch) | |
tree | 76e18091bcf5c750387818ade016208bdcc20e20 /chaski | |
parent | cb8c015c2cae844c998e8ff30588536f519349a7 (diff) |
update sources, move to NixOS 22.05
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"; }; |