stripe-cli: 1.23.3 -> 1.23.5 (#375724)
[NixPkgs.git] / pkgs / development / ocaml-modules / augeas / default.nix
blobb06471a495d1629ead89e7328c11ffa92c6bd208
2   stdenv,
3   fetchurl,
4   fetchDebianPatch,
5   autoreconfHook,
6   makeWrapper,
7   pkg-config,
8   ocaml,
9   findlib,
10   libxml2,
11   augeas,
12   lib,
15 stdenv.mkDerivation rec {
16   pname = "ocaml-augeas";
17   version = "0.6";
19   src = fetchurl {
20     url = "https://people.redhat.com/~rjones/augeas/files/ocaml-augeas-0.6.tar.gz";
21     sha256 = "04bn62hqdka0658fgz0p0fil2fyic61i78plxvmni1yhmkfrkfla";
22   };
24   patches = [
25     (fetchDebianPatch {
26       inherit pname version;
27       debianRevision = "1";
28       patch = "0001-Use-ocamlopt-g-option.patch";
29       hash = "sha256-EMd/EfWO2ni0AMonfS7G5FENpVVq0+q3gUPd4My+Upg=";
30     })
31     (fetchDebianPatch {
32       inherit pname version;
33       debianRevision = "1";
34       patch = "0002-caml_named_value-returns-const-value-pointer-in-OCam.patch";
35       hash = "sha256-Y53UHwrTVeV3hnsvABmWxlPi2Fanm0Iy1OR8Zql5Ub8=";
36     })
37   ];
39   nativeBuildInputs = [
40     autoreconfHook
41     makeWrapper
42     pkg-config
43   ];
45   buildInputs = [
46     ocaml
47     findlib
48     augeas
49     libxml2
50   ];
52   createFindlibDestdir = true;
54   meta = with lib; {
55     homepage = "https://people.redhat.com/~rjones/augeas/";
56     description = "OCaml bindings for Augeas";
57     license = with licenses; lgpl21Plus;
58     platforms = with platforms; linux;
59   };