2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchurl, zlib }:
|
2016-06-21 12:26:51 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "glucose";
|
2017-11-08 08:55:15 +00:00
|
|
|
version = "4.1";
|
2016-06-21 12:26:51 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2017-11-08 08:55:15 +00:00
|
|
|
url = "http://www.labri.fr/perso/lsimon/downloads/softwares/glucose-syrup-${version}.tgz";
|
|
|
|
sha256 = "0aahrkaq7n0z986fpqz66yz946nxardfi6dh8calzcfjpvqiraji";
|
2016-06-21 12:26:51 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ zlib ];
|
|
|
|
|
2017-11-08 08:55:15 +00:00
|
|
|
sourceRoot = "glucose-syrup-${version}/simp";
|
2016-06-21 12:26:51 +01:00
|
|
|
makeFlags = [ "r" ];
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm0755 glucose_release $out/bin/glucose
|
2019-08-15 13:41:18 +01:00
|
|
|
mkdir -p "$out/share/doc/${pname}-${version}/"
|
|
|
|
install -Dm0755 ../{LICEN?E,README*,Changelog*} "$out/share/doc/${pname}-${version}/"
|
2016-06-21 12:26:51 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-06-21 12:26:51 +01:00
|
|
|
description = "Modern, parallel SAT solver (sequential version)";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
2018-12-09 22:32:05 +00:00
|
|
|
# Build uses _FPU_EXTENDED macro
|
|
|
|
badPlatforms = [ "aarch64-linux" ];
|
2016-06-21 12:26:51 +01:00
|
|
|
};
|
|
|
|
}
|