diff options
author | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-03-21 18:12:06 +0000 |
---|---|---|
committer | Vincent Laporte <Vincent.Laporte@gmail.com> | 2017-03-21 18:12:43 +0000 |
commit | f61ead6ee27c222f006e84ff7d0ad9cf6d07db54 (patch) | |
tree | c5ce641b66f4496de192518ba3beb434f32b2487 /pkgs/development/ocaml-modules/inifiles | |
parent | a7732d6f541d82cbfc8777dfe007efb62bf69656 (diff) | |
download | nixlib-f61ead6ee27c222f006e84ff7d0ad9cf6d07db54.tar nixlib-f61ead6ee27c222f006e84ff7d0ad9cf6d07db54.tar.gz nixlib-f61ead6ee27c222f006e84ff7d0ad9cf6d07db54.tar.bz2 nixlib-f61ead6ee27c222f006e84ff7d0ad9cf6d07db54.tar.lz nixlib-f61ead6ee27c222f006e84ff7d0ad9cf6d07db54.tar.xz nixlib-f61ead6ee27c222f006e84ff7d0ad9cf6d07db54.tar.zst nixlib-f61ead6ee27c222f006e84ff7d0ad9cf6d07db54.zip |
ocamlPackages.inifiles: init at 1.2
inifiles is a library to read and write .ini files
Diffstat (limited to 'pkgs/development/ocaml-modules/inifiles')
-rw-r--r-- | pkgs/development/ocaml-modules/inifiles/default.nix | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/development/ocaml-modules/inifiles/default.nix b/pkgs/development/ocaml-modules/inifiles/default.nix new file mode 100644 index 000000000000..1860e585b59f --- /dev/null +++ b/pkgs/development/ocaml-modules/inifiles/default.nix @@ -0,0 +1,28 @@ +{ stdenv, fetchurl, fetchpatch, ocaml, findlib, ocaml_pcre }: + +stdenv.mkDerivation { + name = "ocaml${ocaml.version}-inifiles-1.2"; + + src = fetchurl { + url = http://archive.ubuntu.com/ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_1.2.orig.tar.gz; + sha256 = "0jhzgiypmh6hwsv1zpiq77fi0cvcmwbiy5x0yg7mz6p3dh1dmkns"; + }; + + patches = [ (fetchpatch { + url = https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocaml-inifiles/ocaml-inifiles.1.2/files/ocaml-inifiles.diff; + sha256 = "037kk3172s187w8vwsykdxlpklxzc7m7np57sapk499d8adzdgwn"; + })]; + + buildInputs = [ ocaml findlib ]; + propagatedBuildInputs = [ ocaml_pcre ]; + + buildFlags = [ "all" "opt" ]; + + createFindlibDestdir = true; + + meta = { + description = "A small OCaml library to read and write .ini files"; + license = stdenv.lib.licenses.lgpl21Plus; + inherit (ocaml.meta) platforms; + }; +} |