Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
cmake,
|
|
llvmPackages,
|
|
z3,
|
|
python3,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "simbaplusplus";
|
|
version = "0-unstable-2024-11-05";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgarba";
|
|
repo = "SiMBA-";
|
|
rev = "a030a187df0b650718b2aab18ccebc1f810e18b4";
|
|
hash = "sha256-h2in203bwfb7ArhoBN0PoWM6DZtxI4jSGQuSTTaBJ7A=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail ' ''${LLVM_TOOLS_BINARY_DIR}/llvm-config' " ${lib.getDev llvmPackages.libllvm}/bin/llvm-config" \
|
|
--replace-fail 'set(Z3_INCLUDE_DIRS “/usr/include”)' ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
llvmPackages.libllvm
|
|
z3
|
|
];
|
|
|
|
checkInputs = [
|
|
python3
|
|
];
|
|
|
|
doCheck = true;
|
|
|
|
meta = {
|
|
description = "SiMBA++ is a port of MBA Solver SiMBA to C/C++";
|
|
homepage = "https://github.com/pgarba/SiMBA-";
|
|
license = lib.licenses.gpl3Only;
|
|
mainProgram = "SiMBA++";
|
|
maintainers = with lib.maintainers; [ emilytrau ];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
})
|