2023-11-08 13:28:11 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
readline,
|
|
|
|
cmake,
|
2020-03-17 10:26:27 +00:00
|
|
|
}:
|
2014-05-10 02:37:41 +00:00
|
|
|
|
2023-11-08 13:28:11 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-03-17 10:26:27 +00:00
|
|
|
pname = "abc-verifier";
|
2023-11-08 13:39:58 +00:00
|
|
|
version = "unstable-2023-10-13";
|
2014-05-10 02:37:41 +00:00
|
|
|
|
2018-07-13 02:36:01 +00:00
|
|
|
src = fetchFromGitHub {
|
2021-12-02 20:04:44 +00:00
|
|
|
owner = "yosyshq";
|
|
|
|
repo = "abc";
|
2023-11-08 13:39:58 +00:00
|
|
|
rev = "896e5e7dedf9b9b1459fa019f1fa8aa8101fdf43";
|
|
|
|
hash = "sha256-ou+E2lvDEOxXRXNygE/TyVi7quqk+CJHRI+HDI0xljE=";
|
2014-05-10 02:37:41 +00:00
|
|
|
};
|
|
|
|
|
2018-07-13 02:36:01 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
2014-05-10 02:37:41 +00:00
|
|
|
buildInputs = [ readline ];
|
2018-07-13 02:36:01 +00:00
|
|
|
|
2023-11-08 13:28:11 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm755 'abc' "$out/bin/abc"
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2018-07-13 02:36:01 +00:00
|
|
|
|
2020-03-17 10:26:27 +00:00
|
|
|
# needed by yosys
|
2023-11-08 13:28:11 +00:00
|
|
|
passthru.rev = finalAttrs.src.rev;
|
2014-05-10 02:37:41 +00:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2017-07-15 07:26:38 +00:00
|
|
|
description = "Tool for squential logic synthesis and formal verification";
|
2020-03-17 10:26:27 +00:00
|
|
|
homepage = "https://people.eecs.berkeley.edu/~alanmi/abc";
|
|
|
|
license = licenses.mit;
|
2023-11-08 13:24:00 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
thoughtpolice
|
|
|
|
Luflosi
|
|
|
|
];
|
2022-05-05 00:46:39 +00:00
|
|
|
mainProgram = "abc";
|
|
|
|
platforms = platforms.unix;
|
2014-05-10 02:37:41 +00:00
|
|
|
};
|
2023-11-08 13:28:11 +00:00
|
|
|
})
|