3
0
Fork 0
forked from mirrors/nixpkgs

cvc3: reimplement using mkDerivation

This commit is contained in:
Joachim Fasting 2015-07-07 20:03:30 +02:00
parent f4c9d2f64e
commit a228252b69
2 changed files with 21 additions and 40 deletions

View file

@ -1,48 +1,27 @@
x@{builderDefsPackage
, flex, bison, gmp, perl
, ...}:
builderDefsPackage
(a :
let
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
["gmp"];
{ stdenv, fetchurl, flex, bison, gmp, perl }:
buildInputs = (map (n: builtins.getAttr n x)
(builtins.attrNames (builtins.removeAttrs x helperArgNames)))
++ [(a.lib.overrideDerivation x.gmp (y: {dontDisableStatic=true;}))];
sourceInfo = rec {
baseName="cvc3";
version="2.4.1";
name="${baseName}-${version}";
url="http://www.cs.nyu.edu/acsys/cvc3/releases/${version}/${name}.tar.gz";
hash="1xxcwhz3y6djrycw8sm6xz83wb4hb12rd1n0skvc7fng0rh1snym";
};
in
rec {
src = a.fetchurl {
url = sourceInfo.url;
sha256 = sourceInfo.hash;
};
stdenv.mkDerivation rec {
name = "cvc3-${version}";
version = "2.4.1";
inherit (sourceInfo) name version;
inherit buildInputs;
src = fetchurl {
url = "http://www.cs.nyu.edu/acsys/cvc3/releases/${version}/${name}.tar.gz";
sha256 = "1xxcwhz3y6djrycw8sm6xz83wb4hb12rd1n0skvc7fng0rh1snym";
};
/* doConfigure should be removed if not needed */
phaseNames = ["fixPaths" "doConfigure" "doMakeInstall"];
fixPaths = a.fullDepEntry (''
buildInputs = [ gmp flex bison perl ];
preConfigure = ''
sed -e "s@ /bin/bash@bash@g" -i Makefile.std
find . -exec sed -e "s@/usr/bin/perl@${perl}/bin/perl@g" -i '{}' ';'
'') ["minInit" "doUnpack"];
'';
meta = {
meta = with stdenv.lib; {
description = "A prover for satisfiability modulo theory (SMT)";
maintainers = with a.lib.maintainers;
[
raskin
];
platforms = with a.lib.platforms;
linux;
license = a.lib.licenses.free;
maintainers = with maintainers;
[ raskin ];
platforms = platforms.linux;
license = licenses.free;
homepage = "http://www.cs.nyu.edu/acsys/cvc3/index.html";
};
passthru = {
@ -50,4 +29,4 @@ rec {
downloadPage = "http://www.cs.nyu.edu/acsys/cvc3/download.html";
};
};
}) x
}

View file

@ -14809,7 +14809,9 @@ let
coqPackages = recurseIntoAttrs (mkCoqPackages_8_4 coqPackages);
coqPackages_8_5 = recurseIntoAttrs (mkCoqPackages_8_5 coqPackages_8_5);
cvc3 = callPackage ../applications/science/logic/cvc3 {};
cvc3 = callPackage ../applications/science/logic/cvc3 {
gmp = lib.overrideDerivation gmp (a: { dontDisableStatic = true; });
};
cvc4 = callPackage ../applications/science/logic/cvc4 {};
ekrhyper = callPackage ../applications/science/logic/ekrhyper {};