depot/third_party/nixpkgs/pkgs/development/coq-modules/coquelicot/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

43 lines
1.2 KiB
Nix

{ stdenv, fetchurl, which, coq, ssreflect }:
let param =
if stdenv.lib.versionAtLeast coq.coq-version "8.8"
then {
version = "3.0.3";
uid = "38105";
sha256 = "0y52lqx1jphv6fwf0d702vzprxmfmxggnh1hy3fznxyl4isfpg4j";
} else {
version = "3.0.2";
uid = "37523";
sha256 = "1biia7nfqf7vaqq5gmykl4rwjyvrcwss6r2jdf0in5pvp2rnrj2w";
}
; in
stdenv.mkDerivation {
name = "coq${coq.coq-version}-coquelicot-${param.version}";
src = fetchurl {
url = "https://gforge.inria.fr/frs/download.php/file/${param.uid}/coquelicot-${param.version}.tar.gz";
inherit (param) sha256;
};
nativeBuildInputs = [ which ];
buildInputs = [ coq ];
propagatedBuildInputs = [ ssreflect ];
configureFlags = [ "--libdir=$out/lib/coq/${coq.coq-version}/user-contrib/Coquelicot" ];
buildPhase = "./remake";
installPhase = "./remake install";
meta = {
homepage = "http://coquelicot.saclay.inria.fr/";
description = "A Coq library for Reals";
license = stdenv.lib.licenses.lgpl3;
maintainers = [ stdenv.lib.maintainers.vbgl ];
inherit (coq.meta) platforms;
};
passthru = {
compatibleCoqVersions = v: builtins.elem v [ "8.5" "8.6" "8.7" "8.8" "8.9" "8.10" ];
};
}