-
-
Notifications
You must be signed in to change notification settings - Fork 12.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4015813
commit 89e5963
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ]; | ||
}; | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters