ocamlPackages.higlo: init at 0.6
This commit is contained in:
parent
40158137fd
commit
89e5963f2c
29
pkgs/development/ocaml-modules/higlo/default.nix
Normal file
29
pkgs/development/ocaml-modules/higlo/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
||||
|
||||
|
14
pkgs/development/ocaml-modules/higlo/install.patch
Normal file
14
pkgs/development/ocaml-modules/higlo/install.patch
Normal 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 \
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user