summary refs log tree commit diff
path: root/pkgs/applications/science/logic/zchaff/default.nix
blob: 5fd73a8def8daff8670e9ddedfa81b08a95500de (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ 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;
  };
}