mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 00:54:11 +00:00
ocamlPackages.iri: init at 0.4.0
iri is an OCaml implementation of Internationalized Resource Identifiers (IRIs). Homepage: https://framagit.org/zoggy/ocaml-iri
This commit is contained in:
parent
131e9f59e8
commit
de1a8ddb3c
34
pkgs/development/ocaml-modules/iri/default.nix
Normal file
34
pkgs/development/ocaml-modules/iri/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{ stdenv, fetchFromGitLab, ocaml, findlib
|
||||
, sedlex, uunf, uutf
|
||||
}:
|
||||
|
||||
if !stdenv.lib.versionAtLeast ocaml.version "4.03"
|
||||
then throw "iri is not available for OCaml ${ocaml.version}"
|
||||
else
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
version = "0.4.0";
|
||||
name = "ocaml${ocaml.version}-iri-${version}";
|
||||
|
||||
src = fetchFromGitLab {
|
||||
domain = "framagit.org";
|
||||
owner = "zoggy";
|
||||
repo = "ocaml-iri";
|
||||
rev = version;
|
||||
sha256 = "0fsmfmzmyggm0h77a7mb0n41vqi6q4ln1xzsv72zbvysa7l8w84q";
|
||||
};
|
||||
|
||||
buildInputs = [ ocaml findlib ];
|
||||
|
||||
propagatedBuildInputs = [ sedlex uunf uutf ];
|
||||
|
||||
createFindlibDestdir = true;
|
||||
|
||||
meta = {
|
||||
description = "IRI (RFC3987) native OCaml implementation";
|
||||
license = stdenv.lib.licenses.lgpl3;
|
||||
maintainers = [ stdenv.lib.maintainers.vbgl ];
|
||||
inherit (src.meta) homepage;
|
||||
inherit (ocaml.meta) platforms;
|
||||
};
|
||||
}
|
|
@ -321,6 +321,8 @@ let
|
|||
|
||||
inifiles = callPackage ../development/ocaml-modules/inifiles { };
|
||||
|
||||
iri = callPackage ../development/ocaml-modules/iri { };
|
||||
|
||||
jingoo = callPackage ../development/ocaml-modules/jingoo {
|
||||
pcre = ocaml_pcre;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue