nixpkgs/pkgs/applications/science/logic/zchaff/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
739 B
Nix
Raw Normal View History

{ lib, clangStdenv, fetchurl }:
2022-05-21 22:12:08 +00:00
clangStdenv.mkDerivation rec {
2022-05-21 22:12:08 +00:00
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++" ];
2022-05-21 22:12:08 +00:00
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;
};
}