nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix

Merge pull request #84457 from vbgl/ocaml-gettext-0.4.1

ocamlPackages.ocaml_gettext: 0.3.8 → 0.4.1

authored by

Timo Kaufmann and committed by
GitHub
5d3f4e9c 32e7c0f1

+32 -26
+1 -1
pkgs/applications/virtualization/virt-top/default.nix
··· 11 11 }; 12 12 13 13 nativeBuildInputs = [ autoreconfHook ]; 14 - buildInputs = with ocamlPackages; [ ocaml findlib ocaml_extlib ocaml_libvirt ocaml_gettext curses csv xml-light ]; 14 + buildInputs = with ocamlPackages; [ ocaml findlib ocaml_extlib ocaml_libvirt gettext-stub curses csv xml-light ]; 15 15 16 16 buildPhase = "make opt"; 17 17
+1 -1
pkgs/development/libraries/libguestfs/default.nix
··· 25 25 systemd fuse yajl libvirt gmp readline file hivex 26 26 numactl xen libapparmor getopt perlPackages.ModuleBuild 27 27 ] ++ (with perlPackages; [ perl libintl_perl GetoptLong SysVirt ]) 28 - ++ (with ocamlPackages; [ ocaml findlib ocamlbuild ocaml_libvirt ocaml_gettext ounit ]) 28 + ++ (with ocamlPackages; [ ocaml findlib ocamlbuild ocaml_libvirt gettext-stub ounit ]) 29 29 ++ stdenv.lib.optional javaSupport jdk; 30 30 31 31 prePatch = ''
+14 -24
pkgs/development/ocaml-modules/ocaml-gettext/default.nix
··· 1 - { stdenv, fetchurl, ocaml, findlib, camlp4, ounit, gettext, fileutils, camomile }: 1 + { lib, fetchurl, buildDunePackage, gettext, fileutils, ounit }: 2 2 3 - stdenv.mkDerivation rec { 4 - name = "ocaml${ocaml.version}-gettext-${version}"; 5 - version = "0.3.8"; 3 + buildDunePackage rec { 4 + pname = "gettext"; 5 + version = "0.4.1"; 6 + 7 + minimumOCamlVersion = "4.03"; 6 8 7 9 src = fetchurl { 8 - url = "https://forge.ocamlcore.org/frs/download.php/1731/ocaml-gettext-${version}.tar.gz"; 9 - sha256 = "05wnpxwzzpn2qinah2wb5wzfh5iz8gyf8jyihdbjxc8mk4hf70qv"; 10 + url = "https://github.com/gildor478/ocaml-gettext/releases/download/v${version}/gettext-v${version}.tbz"; 11 + sha256 = "0pwy6ym5fd77mdbgyas8x86vbrri9cgk79g8wxdjplhyi7zhh158"; 10 12 }; 11 13 12 - propagatedBuildInputs = [ gettext fileutils camomile ]; 14 + propagatedBuildInputs = [ gettext fileutils ]; 13 15 14 - buildInputs = [ ocaml findlib camlp4 ounit ]; 16 + doCheck = true; 15 17 16 - postPatch = stdenv.lib.optionalString (camlp4 != null) '' 17 - substituteInPlace test/test.ml --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4" 18 - substituteInPlace ocaml-gettext/OCamlGettext.ml --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4" 19 - substituteInPlace ocaml-gettext/Makefile --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4" 20 - substituteInPlace ocaml-gettext/Makefile --replace "unix.cma" "" 21 - substituteInPlace libgettext-ocaml/Makefile --replace "+camlp4" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib/camlp4" 22 - substituteInPlace libgettext-ocaml/Makefile --replace "\$(shell ocamlc -where)" "${camlp4}/lib/ocaml/${ocaml.version}/site-lib" 23 - ''; 24 - 25 - configureFlags = [ "--disable-doc" ]; 26 - 27 - createFindlibDestdir = true; 18 + checkInputs = lib.optional doCheck ounit; 28 19 29 20 dontStrip = true; 30 21 31 - meta = with stdenv.lib; { 22 + meta = with lib; { 32 23 description = "OCaml Bindings to gettext"; 33 - homepage = https://forge.ocamlcore.org/projects/ocaml-gettext; 34 - license = licenses.gpl2; 24 + homepage = "https://github.com/gildor478/ocaml-gettext"; 25 + license = licenses.lgpl21; 35 26 maintainers = [ maintainers.volth ]; 36 - platforms = ocaml.meta.platforms or []; 37 27 }; 38 28 }
+14
pkgs/development/ocaml-modules/ocaml-gettext/stub.nix
··· 1 + { lib, buildDunePackage, ocaml_gettext, ounit }: 2 + 3 + buildDunePackage rec { 4 + 5 + pname = "gettext-stub"; 6 + 7 + inherit (ocaml_gettext) src version meta; 8 + 9 + propagatedBuildInputs = [ ocaml_gettext ]; 10 + 11 + doCheck = true; 12 + 13 + checkInputs = lib.optional doCheck ounit; 14 + }
+2
pkgs/top-level/ocaml-packages.nix
··· 587 587 588 588 ocaml_gettext = callPackage ../development/ocaml-modules/ocaml-gettext { }; 589 589 590 + gettext-stub = callPackage ../development/ocaml-modules/ocaml-gettext/stub.nix { }; 591 + 590 592 ocamlgraph = callPackage ../development/ocaml-modules/ocamlgraph { }; 591 593 592 594 ocaml_http = callPackage ../development/ocaml-modules/http { };