
This reverts commit 65a333600d5c88a98d674f637d092807cfc12253. This wasn't tested for correctness with something like fodwatch [0], and should not have been (self-)merged so quickly, especially without further review. It also resulted in the breakage of at least one package [1] (and that's the one we know of and was caught). A few packages that were updated in between this commit and this revert were not reverted back to using `rev`, but other than that, this is a 1:1 revert. [0]: https://codeberg.org/raphaelr/fodwatch [1]: https://github.com/NixOS/nixpkgs/pull/396904 / 758551e4587d75882aebc21a04bee960418f8ce9
52 lines
949 B
Nix
52 lines
949 B
Nix
{
|
|
stdenv,
|
|
lib,
|
|
fetchFromGitHub,
|
|
perl,
|
|
ocaml,
|
|
findlib,
|
|
camlidl,
|
|
gmp,
|
|
mpfr,
|
|
bigarray-compat,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ocaml${ocaml.version}-mlgmpidl";
|
|
version = "1.3.0";
|
|
src = fetchFromGitHub {
|
|
owner = "nberth";
|
|
repo = "mlgmpidl";
|
|
rev = version;
|
|
hash = "sha256-ZmSDKZiHko8MCeIuZL53HjupfwO6PAm8QOCc9O3xJOk=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
perl
|
|
ocaml
|
|
findlib
|
|
camlidl
|
|
];
|
|
buildInputs = [
|
|
gmp
|
|
mpfr
|
|
];
|
|
propagatedBuildInputs = [ bigarray-compat ];
|
|
|
|
strictDeps = true;
|
|
|
|
prefixKey = "-prefix ";
|
|
|
|
postConfigure = ''
|
|
mkdir -p $out/lib/ocaml/${ocaml.version}/site-lib/stublibs
|
|
'';
|
|
|
|
meta = {
|
|
description = "OCaml interface to the GMP library";
|
|
homepage = "https://www.inrialpes.fr/pop-art/people/bjeannet/mlxxxidl-forge/mlgmpidl/";
|
|
license = lib.licenses.lgpl21;
|
|
inherit (ocaml.meta) platforms;
|
|
maintainers = [ lib.maintainers.vbgl ];
|
|
};
|
|
}
|