depot/third_party/nixpkgs/pkgs/applications/science/logic/zchaff/default.nix
Default email 3a4df29a92 Project import generated by Copybara.
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
2022-06-16 19:23:12 +02:00

27 lines
739 B
Nix

{ lib, clangStdenv, fetchurl }:
clangStdenv.mkDerivation rec {
pname = "zchaff";
version = "2004.5.13";
src = fetchurl {
url = "https://www.princeton.edu/~chaff/zchaff/zchaff.${version}.tar.gz";
sha256 = "sha256-IgOdb2KsFbRV3gPvIPkHa71ixnYRxyx91vt7m0jzIAw=";
};
patches = [ ./sat_solver.patch ];
makeFlags = [ "CC=${clangStdenv.cc.targetPrefix}c++" ];
installPhase= ''
runHook preInstall
install -Dm755 -t $out/bin zchaff
runHook postInstall
'';
meta = with lib; {
homepage = "https://www.princeton.edu/~chaff/zchaf";
description = "Accelerated SAT Solver from Princeton";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
platforms = platforms.unix;
};
}