Skip to content

Commit

Permalink
ocamlPackages.higlo: init at 0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
thufschmitt authored and vbgl committed Mar 30, 2017
1 parent 4015813 commit 89e5963
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
29 changes: 29 additions & 0 deletions pkgs/development/ocaml-modules/higlo/default.nix
Original file line number Diff line number Diff line change
@@ -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 changes: 14 additions & 0 deletions pkgs/development/ocaml-modules/higlo/install.patch
Original file line number Diff line number Diff line change
@@ -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 \
2 changes: 2 additions & 0 deletions pkgs/top-level/ocaml-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 89e5963

Please sign in to comment.