Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 fetchurl, 4 fetchpatch, 5 applyPatches, 6 buildDunePackage, 7 cppo, 8 gettext, 9 fileutils, 10 ounit2, 11}: 12 13buildDunePackage rec { 14 pname = "gettext"; 15 version = "0.5.0"; 16 17 src = applyPatches { 18 src = fetchurl { 19 url = "https://github.com/gildor478/ocaml-gettext/releases/download/v${version}/gettext-${version}.tbz"; 20 hash = "sha256-CN2d9Vsq8YOOIxK+S+lCtDddvBjCrtDKGSRIh1DjT10="; 21 }; 22 # Disable dune sites 23 # See https://github.com/gildor478/ocaml-gettext/pull/37 24 patches = fetchpatch { 25 url = "https://github.com/gildor478/ocaml-gettext/commit/5462396bee53cb13d8d6fde4c6d430412a17b64d.patch"; 26 hash = "sha256-tOR+xgZTadvNeQpZnFTJEvZglK8P+ySvYnE3c1VWvKQ="; 27 }; 28 }; 29 30 nativeBuildInputs = [ cppo ]; 31 32 propagatedBuildInputs = [ 33 gettext 34 fileutils 35 ]; 36 37 # Tests of version 0.5.0 fail 38 doCheck = false; 39 40 checkInputs = [ ounit2 ]; 41 42 meta = with lib; { 43 description = "OCaml Bindings to gettext"; 44 homepage = "https://github.com/gildor478/ocaml-gettext"; 45 license = licenses.lgpl21; 46 maintainers = [ ]; 47 mainProgram = "ocaml-gettext"; 48 }; 49}