at master 56 lines 1.3 kB view raw
1{ 2 stdenv, 3 fetchurl, 4 fetchpatch, 5 autoreconfHook, 6 makeWrapper, 7 pkg-config, 8 ocaml, 9 findlib, 10 libxml2, 11 augeas, 12 lib, 13}: 14 15stdenv.mkDerivation rec { 16 pname = "ocaml-augeas"; 17 version = "0.6"; 18 19 src = fetchurl { 20 url = "https://people.redhat.com/~rjones/augeas/files/ocaml-augeas-0.6.tar.gz"; 21 sha256 = "04bn62hqdka0658fgz0p0fil2fyic61i78plxvmni1yhmkfrkfla"; 22 }; 23 24 patches = [ 25 (fetchpatch { 26 url = "https://salsa.debian.org/debian/ocaml-augeas/-/raw/07c2408a7e5a06cefe5d53a89fecaa8556a39b06/debian/patches/0001-Use-ocamlopt-g-option.patch"; 27 hash = "sha256-EMd/EfWO2ni0AMonfS7G5FENpVVq0+q3gUPd4My+Upg="; 28 }) 29 (fetchpatch { 30 url = "https://salsa.debian.org/debian/ocaml-augeas/-/raw/07c2408a7e5a06cefe5d53a89fecaa8556a39b06/debian/patches/0002-caml_named_value-returns-const-value-pointer-in-OCam.patch"; 31 hash = "sha256-Y53UHwrTVeV3hnsvABmWxlPi2Fanm0Iy1OR8Zql5Ub8="; 32 }) 33 ]; 34 35 nativeBuildInputs = [ 36 autoreconfHook 37 makeWrapper 38 pkg-config 39 ]; 40 41 buildInputs = [ 42 ocaml 43 findlib 44 augeas 45 libxml2 46 ]; 47 48 createFindlibDestdir = true; 49 50 meta = with lib; { 51 homepage = "https://people.redhat.com/~rjones/augeas/"; 52 description = "OCaml bindings for Augeas"; 53 license = with licenses; lgpl21Plus; 54 platforms = with platforms; linux; 55 }; 56}