stog: fix compatibility with uri ≥ 4.0.0

authored by

Vincent Laporte and committed by
Vincent Laporte
57f22850 24b4e109

+14 -1
+1 -1
pkgs/applications/misc/stog/default.nix
··· 18 18 19 19 createFindlibDestdir = true; 20 20 21 - patches = [ ./install.patch ]; 21 + patches = [ ./install.patch ./uri.patch ]; 22 22 23 23 meta = with stdenv.lib; { 24 24 description = "XML documents and web site compiler";
+13
pkgs/applications/misc/stog/uri.patch
··· 1 + diff --git a/src/stog_url.ml b/src/stog_url.ml 2 + index 5d30a43f..c67bfc36 100644 3 + --- a/src/stog_url.ml 4 + +++ b/src/stog_url.ml 5 + @@ -40,7 +40,7 @@ let of_string s = 6 + with _ -> 7 + failwith (Printf.sprintf "Malformed URL %S" s) 8 + ;; 9 + -let to_string = Uri.to_string ;; 10 + +let to_string u = Uri.to_string u;; 11 + 12 + let path url = 13 + let l =