a71eb02b76
GitOrigin-RevId: a115bb9bd56831941be3776c8a94005867f316a7
32 lines
951 B
Nix
32 lines
951 B
Nix
{ lib, stdenv, fetchurl, zlib }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "glucose";
|
|
version = "4.1";
|
|
|
|
src = fetchurl {
|
|
url = "http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup-${version}.tgz";
|
|
sha256 = "0aahrkaq7n0z986fpqz66yz946nxardfi6dh8calzcfjpvqiraji";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace Main.cc \
|
|
--replace "defined(__linux__)" "defined(__linux__) && defined(__x86_64__)"
|
|
'';
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
sourceRoot = "glucose-syrup-${version}/simp";
|
|
makeFlags = [ "r" ];
|
|
installPhase = ''
|
|
install -Dm0755 glucose_release $out/bin/glucose
|
|
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 (sequential version)";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ gebner ];
|
|
};
|
|
}
|