diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-07-09 17:15:42 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2018-07-09 17:15:43 +0000 |
commit | de1a8ddb3c58ef477940054224646c7ed550a7cd (patch) | |
tree | 51ea2f1cbc553cf2f7170e86bf74410cec1ff797 /pkgs/development/ocaml-modules | |
parent | 131e9f59e825aa3f1100619191a64d1e147ec263 (diff) | |
download | nixlib-de1a8ddb3c58ef477940054224646c7ed550a7cd.tar nixlib-de1a8ddb3c58ef477940054224646c7ed550a7cd.tar.gz nixlib-de1a8ddb3c58ef477940054224646c7ed550a7cd.tar.bz2 nixlib-de1a8ddb3c58ef477940054224646c7ed550a7cd.tar.lz nixlib-de1a8ddb3c58ef477940054224646c7ed550a7cd.tar.xz nixlib-de1a8ddb3c58ef477940054224646c7ed550a7cd.tar.zst nixlib-de1a8ddb3c58ef477940054224646c7ed550a7cd.zip |
ocamlPackages.iri: init at 0.4.0
iri is an OCaml implementation of Internationalized Resource Identifiers (IRIs). Homepage: https://framagit.org/zoggy/ocaml-iri
Diffstat (limited to 'pkgs/development/ocaml-modules')
-rw-r--r-- | pkgs/development/ocaml-modules/iri/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/iri/default.nix b/pkgs/development/ocaml-modules/iri/default.nix new file mode 100644 index 000000000000..15f3a5613b55 --- /dev/null +++ b/pkgs/development/ocaml-modules/iri/default.nix @@ -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; + }; +} |