stog: init at 0.17.0

authored by regnat and committed by Vincent Laporte 4e9e1bc7 89e5963f

+53
+31
pkgs/applications/misc/stog/default.nix
··· 1 + { stdenv, fetchFromGitHub, ocaml, findlib, ocf, ptime, 2 + uutf, uri, ppx_blob, xtmpl, ocaml_lwt, higlo, camlp4, omd 3 + }: 4 + 5 + stdenv.mkDerivation rec { 6 + name = "stog-${version}"; 7 + version = "0.17.0"; 8 + src = fetchFromGitHub { 9 + owner = "zoggy"; 10 + repo = "stog"; 11 + rev = "release-${version}"; 12 + sha256 = "06fnl3im0rycn05w39adfmm7w4s8l3jrj43h8f8h3b56grh21x0d"; 13 + }; 14 + 15 + buildInputs = [ ocaml camlp4 uutf ]; 16 + propagatedBuildInputs = [ findlib omd ppx_blob ocf ptime uri xtmpl ocaml_lwt higlo ]; 17 + 18 + createFindlibDestdir = true; 19 + 20 + patches = [ ./install.patch ]; 21 + 22 + meta = with stdenv.lib; { 23 + description = "XML documents and web site compiler"; 24 + homepage = "https://zoggy.github.io/stog/"; 25 + license = licenses.lgpl3; 26 + platforms = ocaml.meta.platforms or []; 27 + maintainers = with maintainers; [ regnat ]; 28 + }; 29 + } 30 + 31 +
+18
pkgs/applications/misc/stog/install.patch
··· 1 + diff --git a/src/Makefile b/src/Makefile 2 + index 736dd037..79a85b9c 100644 3 + --- a/src/Makefile 4 + +++ b/src/Makefile 5 + @@ -431,11 +431,12 @@ install-lib: 6 + install-share: 7 + 8 + install-bin: 9 + + mkdir $(out)/bin 10 + $(CP) $(MAIN) $(MAIN_BYTE) $(TMPL) $(TMPL_BYTE) \ 11 + $(SERVER) $(SERVER_BYTE) $(OCAML_SESSION) \ 12 + $(MK_STOG) $(MK_STOG_BYTE) $(MK_STOG_OCAML) \ 13 + $(LATEX2STOG) $(LATEX2STOG_BYTE) \ 14 + - `dirname \`which $(OCAMLC)\``/ 15 + + $(out)/bin 16 + 17 + uninstall: uninstall-lib uninstall-share uninstall-bin 18 +
+2
pkgs/top-level/all-packages.nix
··· 15507 15507 15508 15508 stalonetray = callPackage ../applications/window-managers/stalonetray {}; 15509 15509 15510 + inherit (ocamlPackages_4_03) stog; 15511 + 15510 15512 stp = callPackage ../applications/science/logic/stp {}; 15511 15513 15512 15514 stumpwm = callPackage ../applications/window-managers/stumpwm {
+2
pkgs/top-level/ocaml-packages.nix
··· 517 517 518 518 stdio = callPackage ../development/ocaml-modules/stdio { }; 519 519 520 + stog = callPackage ../applications/misc/stog { }; 521 + 520 522 stringext = callPackage ../development/ocaml-modules/stringext { }; 521 523 522 524 topkg = callPackage ../development/ocaml-modules/topkg { };