aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/interpreters/acl2/libipasirglucose4/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/interpreters/acl2/libipasirglucose4/default.nix')
-rw-r--r--nixpkgs/pkgs/development/interpreters/acl2/libipasirglucose4/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/interpreters/acl2/libipasirglucose4/default.nix b/nixpkgs/pkgs/development/interpreters/acl2/libipasirglucose4/default.nix
new file mode 100644
index 00000000000..5186cd69584
--- /dev/null
+++ b/nixpkgs/pkgs/development/interpreters/acl2/libipasirglucose4/default.nix
@@ -0,0 +1,36 @@
+{ stdenv, fetchurl, zlib, unzip }:
+
+stdenv.mkDerivation rec {
+ pname = "libipasirglucose4";
+ # This library has no version number AFAICT (beyond generally being based on
+ # Glucose 4.x), but it was submitted to the 2017 SAT competition so let's use
+ # that as the version number, I guess.
+ version = "2017";
+
+ src = fetchurl {
+ url = "https://baldur.iti.kit.edu/sat-competition-2017/solvers/incremental/glucose-ipasir.zip";
+ sha256 = "0xchgady9vwdh8frmc8swz6va53igp2wj1y9sshd0g7549n87wdj";
+ };
+ nativeBuildInputs = [ unzip ];
+
+ buildInputs = [ zlib ];
+
+ sourceRoot = "sat/glucose4";
+ patches = [ ./0001-Support-shared-library-build.patch ];
+
+ postBuild = ''
+ g++ -shared -Wl,-soname,libipasirglucose4.so -o libipasirglucose4.so \
+ ipasirglucoseglue.o libipasirglucose4.a
+ '';
+
+ installPhase = ''
+ install -D libipasirglucose4.so $out/lib/libipasirglucose4.so
+ '';
+
+ meta = with stdenv.lib; {
+ description = "Shared library providing IPASIR interface to the Glucose SAT solver";
+ license = licenses.mit;
+ platforms = platforms.unix;
+ maintainers = with maintainers; [ kini ];
+ };
+}