2023-12-28 09:26:21 +01:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, zlib
|
|
|
|
, gmp
|
|
|
|
, cryptominisat
|
|
|
|
, boost
|
|
|
|
, arjun-cnf
|
|
|
|
, louvain-community
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
|
|
pname = "approxmc";
|
2024-02-09 06:47:11 +01:00
|
|
|
version = "4.1.24";
|
2023-12-28 09:26:21 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meelgroup";
|
|
|
|
repo = "approxmc";
|
|
|
|
rev = finalAttrs.version;
|
2024-02-09 06:47:11 +01:00
|
|
|
hash = "sha256-rADPC7SVwzjUN5jb7Wt341oGfr6+LszIaBUe8QgmpRU=";
|
2023-12-28 09:26:21 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
})
|