zchaff: 2004.5.13 -> 2007.3.12

This commit is contained in:
Ben Siraphob 2022-06-03 10:50:47 -07:00
parent 30c3cc499d
commit d6f311f306
No known key found for this signature in database
GPG Key ID: 45F0E5D788143267

View File

@ -1,15 +1,19 @@
{ lib, clangStdenv, fetchurl }:
{ lib, clangStdenv, fetchzip }:
clangStdenv.mkDerivation rec {
pname = "zchaff";
version = "2004.5.13";
version = "2007.3.12";
src = fetchurl {
url = "https://www.princeton.edu/~chaff/zchaff/zchaff.${version}.tar.gz";
sha256 = "sha256-IgOdb2KsFbRV3gPvIPkHa71ixnYRxyx91vt7m0jzIAw=";
src = fetchzip {
url = "https://www.princeton.edu/~chaff/zchaff/zchaff.64bit.${version}.zip";
sha256 = "sha256-88fAtJb7o+Qv2GohTdmquxMEq4oCbiKbqLFmS7zs1Ak=";
};
patches = [ ./sat_solver.patch ];
postPatch = ''
substituteInPlace zchaff_solver.cpp --replace "// #define VERIFY_ON" "#define VERIFY_ON"
'';
makeFlags = [ "CC=${clangStdenv.cc.targetPrefix}c++" ];
installPhase= ''
runHook preInstall