mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
45 lines
794 B
Nix
45 lines
794 B
Nix
{
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
zlib,
|
|
gmp,
|
|
cryptominisat,
|
|
boost,
|
|
arjun-cnf,
|
|
louvain-community,
|
|
lib,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "approxmc";
|
|
version = "4.1.24";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "meelgroup";
|
|
repo = "approxmc";
|
|
rev = finalAttrs.version;
|
|
hash = "sha256-rADPC7SVwzjUN5jb7Wt341oGfr6+LszIaBUe8QgmpRU=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [
|
|
zlib
|
|
gmp
|
|
cryptominisat
|
|
boost
|
|
arjun-cnf
|
|
louvain-community
|
|
];
|
|
|
|
meta = {
|
|
description = "Approximate Model Counter";
|
|
homepage = "https://github.com/meelgroup/approxmc";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ t4ccer ];
|
|
platforms = lib.platforms.linux;
|
|
mainProgram = "approxmc";
|
|
};
|
|
})
|