coqPackages: refactor
This commit is contained in:
committed by
Vincent Laporte
parent
04065a7354
commit
9ffd16b385
@@ -1,31 +1,11 @@
|
||||
{ stdenv, fetchFromGitHub, coq }:
|
||||
|
||||
let param =
|
||||
{
|
||||
version = "20181102";
|
||||
rev = "82a85b7ec07e71fa6b30cfc05f6a7bfb09ef2510";
|
||||
sha256 = "08zry20flgj7qq37xk32kzmg4fg6d4wi9m7pf9aph8fd3j2a0b5v";
|
||||
};
|
||||
in
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "coq${coq.coq-version}-StructTact-${param.version}";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "uwplse";
|
||||
repo = "StructTact";
|
||||
inherit (param) rev sha256;
|
||||
};
|
||||
|
||||
buildInputs = [ coq ];
|
||||
|
||||
enableParallelBuilding = true;
|
||||
{ lib, mkCoqDerivation, coq, version ? null }:
|
||||
|
||||
with lib; mkCoqDerivation {
|
||||
pname = "StructTact";
|
||||
owner = "uwplse";
|
||||
inherit version;
|
||||
defaultVersion = if versions.isGe "8.5" coq.coq-version then "20181102" else null;
|
||||
release."20181102".rev = "82a85b7ec07e71fa6b30cfc05f6a7bfb09ef2510";
|
||||
release."20181102".sha256 = "08zry20flgj7qq37xk32kzmg4fg6d4wi9m7pf9aph8fd3j2a0b5v";
|
||||
preConfigure = "patchShebangs ./configure";
|
||||
|
||||
installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];
|
||||
|
||||
passthru = {
|
||||
compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.5";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user