about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/ap/approxmc/package.nix
blob: f9222f66d500ee72bc48f8183603d6fd81eae60f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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";
  };
})