about summary refs log tree commit diff
diff options
context:
space:
mode:
authort4ccer <t4ccer@gmail.com>2023-12-28 01:26:21 -0700
committert4ccer <t4ccer@gmail.com>2024-01-17 17:23:30 -0700
commit708f1b7d3c3ef986c89e3238be6a00a7819d52f4 (patch)
tree636a4f58c64058f57be19785ac5383d132975232
parent02f58ae811c0d7b4d887034629d9567d386fad15 (diff)
downloadnixlib-708f1b7d3c3ef986c89e3238be6a00a7819d52f4.tar
nixlib-708f1b7d3c3ef986c89e3238be6a00a7819d52f4.tar.gz
nixlib-708f1b7d3c3ef986c89e3238be6a00a7819d52f4.tar.bz2
nixlib-708f1b7d3c3ef986c89e3238be6a00a7819d52f4.tar.lz
nixlib-708f1b7d3c3ef986c89e3238be6a00a7819d52f4.tar.xz
nixlib-708f1b7d3c3ef986c89e3238be6a00a7819d52f4.tar.zst
nixlib-708f1b7d3c3ef986c89e3238be6a00a7819d52f4.zip
approxmc: init at 4.1.23
-rw-r--r--pkgs/by-name/ap/approxmc/package.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/by-name/ap/approxmc/package.nix b/pkgs/by-name/ap/approxmc/package.nix
new file mode 100644
index 000000000000..f9222f66d500
--- /dev/null
+++ b/pkgs/by-name/ap/approxmc/package.nix
@@ -0,0 +1,43 @@
+{ stdenv
+, fetchFromGitHub
+, cmake
+, zlib
+, gmp
+, cryptominisat
+, boost
+, arjun-cnf
+, louvain-community
+, lib
+}:
+
+stdenv.mkDerivation (finalAttrs: {
+  pname = "approxmc";
+  version = "4.1.23";
+
+  src = fetchFromGitHub {
+    owner = "meelgroup";
+    repo = "approxmc";
+    rev = finalAttrs.version;
+    hash = "sha256-pE2m6Cc2u53H/5CM+2JuQxZOhjhHUZOi0kn23CJmALM=";
+  };
+
+  nativeBuildInputs = [ cmake ];
+
+  buildInputs = [
+    zlib
+    gmp
+    cryptominisat
+    boost
+    arjun-cnf
+    louvain-community
+  ];
+
+  meta = with lib; {
+    description = "Approximate Model Counter";
+    homepage = "https://github.com/meelgroup/approxmc";
+    license = licenses.mit;
+    maintainers = with maintainers; [ t4ccer ];
+    platforms = platforms.linux;
+    mainProgram = "approxmc";
+  };
+})