-
-
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
2f020cf
commit 4015813
Showing
2 changed files
with
33 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,31 @@ | ||
{ stdenv, fetchFromGitHub, ocaml, findlib, uutf, sedlex, ppx_tools, js_of_ocaml | ||
, re }: | ||
|
||
if stdenv.lib.versionOlder ocaml.version "4.03" | ||
then throw "xtmpl not supported for ocaml ${ocaml.version}" | ||
else | ||
stdenv.mkDerivation rec { | ||
name = "xtmpl-${version}"; | ||
version = "0.16.0"; | ||
src = fetchFromGitHub { | ||
owner = "zoggy"; | ||
repo = "xtmpl"; | ||
rev = version; | ||
sha256 = "1dj5b4b266y4d8q3v1g0xsivz4vkhj0gi0jis37w84xcnlgiik8k"; | ||
}; | ||
|
||
buildInputs = [ ocaml findlib ppx_tools js_of_ocaml ]; | ||
propagatedBuildInputs = [ sedlex uutf re ]; | ||
|
||
createFindlibDestdir = true; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Xml template library for OCaml"; | ||
homepage = "https://zoggy.github.io/xtmpl/"; | ||
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