From 916c5213185d857ec87296634d76b0efe7b0e273 Mon Sep 17 00:00:00 2001 From: aszlig Date: Sat, 10 Oct 2020 05:14:05 +0200 Subject: [PATCH] maps: Add patch fixing DB migration Since Nextcloud 19.0.4.2, database columns that are non-null can no longer contain a default of empty string. This also has been addressed upstream[1], but Nextcloud 19 currently gets maps version 0.1.6, which does not yet contain this fix. https://github.com/nextcloud/maps/pull/453 Signed-off-by: aszlig --- osrm/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/osrm/default.nix b/osrm/default.nix index 643f729..d4489c5 100644 --- a/osrm/default.nix +++ b/osrm/default.nix @@ -66,6 +66,11 @@ in { '' else '' patch -p1 -d apps/maps < ${./proxy-routing.patch} patch -p1 -d apps/maps < ${./proxy-routing.dist.patch} + patch -p1 -d apps/maps < ${pkgs.fetchpatch { + url = "https://github.com/nextcloud/maps/commit/" + + "e130afbd65a875eeb620d49d7806f8d15765f9d1.patch"; + sha256 = "105wx00cl6v1h77iv49m45jsw91q0w551xvhlbfarvcmh6zl4i08"; + }} ''; } (lib.mkIf (cfg.osmDataset != null && cfg.profiles != []) {