nixpkgs/pkgs/development/coq-modules/dpdgraph/default.nix

57 lines
1.4 KiB
Nix
Raw Normal View History

2017-01-12 21:23:18 +00:00
{ stdenv, fetchFromGitHub, autoreconfHook, coq, ocamlPackages }:
2018-03-21 14:00:47 +00:00
let params = {
"8.7" = {
version = "0.6.2";
rev = "d76ddde37d918569945774733b7997e8b24daf51";
sha256 = "04lnf4b25yarysj848cfl8pd3i3pr3818acyp9hgwdgd1rqmhjwm";
};
2017-01-12 21:23:18 +00:00
"8.6" = {
version = "0.6.1";
rev = "c3b87af6bfa338e18b83f014ebd0e56e1f611663";
sha256 = "1jaafkwsb5450378nprjsds1illgdaq60gryi8kspw0i25ykz2c9";
};
"8.5" = {
version = "0.6";
rev = "v0.6";
sha256 = "0qvar8gfbrcs9fmvkph5asqz4l5fi63caykx3bsn8zf0xllkwv0n";
};
2018-03-21 14:00:47 +00:00
};
param = params."${coq.coq-version}";
in
2016-05-02 08:53:29 +01:00
stdenv.mkDerivation {
2017-01-12 21:23:18 +00:00
name = "coq${coq.coq-version}-dpdgraph-${param.version}";
2016-05-02 08:53:29 +01:00
src = fetchFromGitHub {
owner = "Karmaki";
repo = "coq-dpdgraph";
2017-01-12 21:23:18 +00:00
inherit (param) rev sha256;
2016-05-02 08:53:29 +01:00
};
nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ coq coq.camlp5 ]
2016-05-02 08:53:29 +01:00
++ (with ocamlPackages; [ ocaml findlib ocamlgraph ]);
preInstall = ''
mkdir -p $out/bin
'';
installFlags = ''
COQLIB=$(out)/lib/coq/${coq.coq-version}/
BINDIR=$(out)/bin
'';
meta = {
description = "Build dependency graphs between Coq objects";
license = stdenv.lib.licenses.lgpl21;
homepage = https://github.com/Karmaki/coq-dpdgraph/;
maintainers = with stdenv.lib.maintainers; [ vbgl ];
platforms = coq.meta.platforms;
};
2018-03-21 14:00:47 +00:00
passthru = {
compatibleCoqVersions = v: builtins.hasAttr v params;
};
2016-05-02 08:53:29 +01:00
}