about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/logic/glucose/syrup.nix
blob: 17342858fb8f334a11094b6c3fd9102e6ff1b52d (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
{ lib, stdenv, zlib, glucose }:
stdenv.mkDerivation rec {
  pname = "glucose-syrup";
  version = glucose.version;

  src = glucose.src;

  buildInputs = [ zlib ];

  sourceRoot = "glucose-syrup-${version}/parallel";
  makeFlags = [ "r" ];
  installPhase = ''
    install -Dm0755 glucose-syrup_release $out/bin/glucose-syrup
    mkdir -p "$out/share/doc/${pname}-${version}/"
    install -Dm0755 ../{LICEN?E,README*,Changelog*} "$out/share/doc/${pname}-${version}/"
  '';

  meta = with lib; {
    description = "Modern, parallel SAT solver (parallel version)";
    license = licenses.unfreeRedistributable;
    platforms = platforms.unix;
    maintainers = with maintainers; [ gebner ];
  };
}