ocamlPackages.higlo: init at 0.6

This commit is contained in:
regnat 2017-03-23 08:58:25 +01:00 committed by Vincent Laporte
parent 40158137fd
commit 89e5963f2c
3 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ stdenv, fetchFromGitHub, ocaml, findlib, xtmpl, ulex }:
stdenv.mkDerivation rec {
name = "higlo-${version}";
version = "0.6";
src = fetchFromGitHub {
owner = "zoggy";
repo = "higlo";
rev = "release-${version}";
sha256 = "0m0qyk2ydivai54502s45sdw9w4xr0j3jpwyc4vqk62a7iz9ihxh";
};
buildInputs = [ ocaml findlib ];
propagatedBuildInputs = [ xtmpl ulex ];
createFindlibDestdir = true;
patches = ./install.patch;
meta = with stdenv.lib; {
description = "OCaml library for syntax highlighting";
homepage = "https://zoggy.github.io/higlo/";
license = licenses.lgpl3;
platforms = ocaml.meta.platforms or [];
maintainers = with maintainers; [ regnat ];
};
}

View File

@ -0,0 +1,14 @@
diff --git a/Makefile b/Makefile
index b8c2e01..fcd07ed 100644
--- a/Makefile
+++ b/Makefile
@@ -149,7 +149,8 @@ webdoc:
install: install-lib install-bin
install-bin:
- $(CP) $(HIGLO) $(HIGLO_BYTE) $(MK_HIGLO) `dirname \`which ocamlfind\``/
+ mkdir -p $(out)/bin
+ $(CP) $(HIGLO) $(HIGLO_BYTE) $(MK_HIGLO) $(out)/bin
install-lib: higlo.cmo higlo.cmx higlo.cmxs $(HIGLO) $(HIGLO_BYTE)
ocamlfind install higlo META LICENSE \

View File

@ -203,6 +203,8 @@ let
herelib = callPackage ../development/ocaml-modules/herelib { };
higlo = callPackage ../development/ocaml-modules/higlo { };
io-page = callPackage ../development/ocaml-modules/io-page { };
ipaddr_p4 = callPackage ../development/ocaml-modules/ipaddr/2.6.1.nix { };