Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ocamlPackages.camomile: 0.8.5 -> 0.8.6
- Loading branch information
Showing
3 changed files
with
53 additions
and
23 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,30 @@ | ||
{stdenv, fetchurl, fetchpatch, ocaml, findlib, camlp4}: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "camomile-${version}"; | ||
version = "0.8.5"; | ||
|
||
src = fetchurl { | ||
url = https://github.com/yoriyuki/Camomile/releases/download/rel-0.8.5/camomile-0.8.5.tar.bz2; | ||
sha256 = "003ikpvpaliy5hblhckfmln34zqz0mk3y2m1fqvbjngh3h2np045"; | ||
}; | ||
|
||
patches = [ (fetchpatch { | ||
url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/camomile/camomile.0.8.5/files/4.05-typing-fix.patch; | ||
sha256 = "167279lia6qx62mdcyc5rjsi4gf4yi52wn9mhgd9y1v3754z7fwb"; | ||
})]; | ||
|
||
buildInputs = [ocaml findlib camlp4]; | ||
|
||
createFindlibDestdir = true; | ||
|
||
meta = { | ||
homepage = https://github.com/yoriyuki/Camomile/tree/master/Camomile; | ||
description = "A comprehensive Unicode library for OCaml"; | ||
license = stdenv.lib.licenses.lgpl21; | ||
platforms = ocaml.meta.platforms or []; | ||
maintainers = [ | ||
stdenv.lib.maintainers.z77z | ||
]; | ||
}; | ||
} |
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 |
---|---|---|
@@ -1,30 +1,27 @@ | ||
{stdenv, fetchurl, fetchpatch, ocaml, findlib, camlp4}: | ||
{ stdenv, fetchFromGitHub, ocaml, findlib, jbuilder, cppo }: | ||
|
||
stdenv.mkDerivation rec { | ||
name = "camomile-${version}"; | ||
version = "0.8.5"; | ||
version = "0.8.6"; | ||
name = "ocaml${ocaml.version}-camomile-${version}"; | ||
|
||
src = fetchurl { | ||
url = https://github.com/yoriyuki/Camomile/releases/download/rel-0.8.5/camomile-0.8.5.tar.bz2; | ||
sha256 = "003ikpvpaliy5hblhckfmln34zqz0mk3y2m1fqvbjngh3h2np045"; | ||
}; | ||
src = fetchFromGitHub { | ||
owner = "yoriyuki"; | ||
repo = "camomile"; | ||
rev = "rel-${version}"; | ||
sha256 = "1jq1xhaikczk6lbvas7c35aa04q0kjaqd8m54c4jivpj80yvg4x9"; | ||
}; | ||
|
||
patches = [ (fetchpatch { | ||
url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/camomile/camomile.0.8.5/files/4.05-typing-fix.patch; | ||
sha256 = "167279lia6qx62mdcyc5rjsi4gf4yi52wn9mhgd9y1v3754z7fwb"; | ||
})]; | ||
buildInputs = [ ocaml findlib jbuilder cppo ]; | ||
|
||
buildInputs = [ocaml findlib camlp4]; | ||
configurePhase = "ocaml configure.ml --share $out/share/camomile"; | ||
|
||
createFindlibDestdir = true; | ||
inherit (jbuilder) installPhase; | ||
|
||
meta = { | ||
homepage = https://github.com/yoriyuki/Camomile/tree/master/Camomile; | ||
description = "A comprehensive Unicode library for OCaml"; | ||
license = stdenv.lib.licenses.lgpl21; | ||
platforms = ocaml.meta.platforms or []; | ||
maintainers = [ | ||
stdenv.lib.maintainers.z77z | ||
]; | ||
}; | ||
meta = { | ||
inherit (ocaml.meta) platforms; | ||
inherit (src.meta) homepage; | ||
maintainers = [ stdenv.lib.maintainers.vbgl ]; | ||
license = stdenv.lib.licenses.lgpl21; | ||
description = "A Unicode library for OCaml"; | ||
}; | ||
} |
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