Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ stdenv, lib, fetchurl, fetchpatch, ocaml, findlib, ocaml_pcre }:
2
3stdenv.mkDerivation rec {
4 pname = "ocaml${ocaml.version}-inifiles";
5 version = "1.2";
6
7 src = fetchurl {
8 url = "mirror://ubuntu/pool/universe/o/ocaml-inifiles/ocaml-inifiles_${version}.orig.tar.gz";
9 sha256 = "0jhzgiypmh6hwsv1zpiq77fi0cvcmwbiy5x0yg7mz6p3dh1dmkns";
10 };
11
12 patches = [
13 (fetchpatch {
14 url = "https://raw.githubusercontent.com/ocaml/opam-repository/master/packages/ocaml-inifiles/ocaml-inifiles.1.2/files/ocaml-inifiles.diff";
15 sha256 = "037kk3172s187w8vwsykdxlpklxzc7m7np57sapk499d8adzdgwn";
16 })
17 ];
18
19 nativeBuildInputs = [ ocaml findlib ];
20 propagatedBuildInputs = [ ocaml_pcre ];
21
22 strictDeps = true;
23
24 buildFlags = [ "all" "opt" ];
25
26 createFindlibDestdir = true;
27
28 meta = {
29 description = "A small OCaml library to read and write .ini files";
30 license = lib.licenses.lgpl21Plus;
31 inherit (ocaml.meta) platforms;
32 };
33}