mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 09:53:17 +00:00
4e42cac49d
This change was produced by searching for remaining occurrences of stdenv.lib and replacing them manually. Reference #108938.
36 lines
942 B
Nix
36 lines
942 B
Nix
{ stdenv, lib, fetchFromGitHub, perl, ocaml, findlib, camlidl, gmp, mpfr }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "ocaml${ocaml.version}-mlgmpidl-${version}";
|
|
version = "1.2.12";
|
|
src = fetchFromGitHub {
|
|
owner = "nberth";
|
|
repo = "mlgmpidl";
|
|
rev = version;
|
|
sha256 = "17xqiclaqs4hmnb92p9z6z9a1xfr31vcn8nlnj8ykk57by31vfza";
|
|
};
|
|
|
|
buildInputs = [ perl gmp mpfr ocaml findlib camlidl ];
|
|
|
|
prefixKey = "-prefix ";
|
|
configureFlags = [
|
|
"--gmp-prefix ${gmp.dev}"
|
|
"--mpfr-prefix ${mpfr.dev}"
|
|
];
|
|
|
|
postConfigure = ''
|
|
sed -i Makefile \
|
|
-e 's|^ /bin/rm | rm |'
|
|
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 ];
|
|
};
|
|
}
|