1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-30 01:20:40 +00:00
nixpkgs/pkgs/development/ocaml-modules/mlgmp/default.nix
2016-10-05 09:32:30 +02:00

37 lines
870 B
Nix

{stdenv, fetchurl, ocaml, findlib, gmp, mpfr, ncurses }:
let
pname = "mlgmp";
in
stdenv.mkDerivation rec {
name = "${pname}-${version}";
version = "20120224";
src = fetchurl {
url = "http://www-verimag.imag.fr/~monniaux/download/${pname}_${version}.tar.gz";
sha256 = "3ce1a53fa452ff5a9ba618864d3bc46ef32190b57202d1e996ca7df837ad4f24";
};
makeFlags = [
"DESTDIR=$(out)/lib/ocaml/${ocaml.version}/site-lib/gmp"
];
preConfigure = "make clean";
buildInputs = [ocaml findlib gmp mpfr ncurses];
createFindlibDestdir = true;
propagatedbuildInputs = [gmp mpfr ncurses];
postInstall = ''
cp ${./META} $out/lib/ocaml/${ocaml.version}/site-lib/gmp/META
'';
meta = {
homepage = http://opam.ocamlpro.com/pkg/mlgmp.20120224.html;
description = "OCaml bindings to GNU MP library";
license = "Free software ?";
};
}