2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, readline
|
|
|
|
, cmake
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "abc-verifier";
|
2024-07-03 19:18:45 +00:00
|
|
|
version = "unstable-2024-05-08";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
owner = "yosyshq";
|
|
|
|
repo = "abc";
|
2024-07-03 19:18:45 +00:00
|
|
|
rev = "237d81397fcc85dd3894bf1a449d2955cd3df02d";
|
|
|
|
hash = "sha256-t3wdt/jGyF3Ysd0rzDYvPzECgOAL87/IJlHh3FGaF1k=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
install -Dm755 'abc' "$out/bin/abc"
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# needed by yosys
|
2023-11-16 04:20:00 +00:00
|
|
|
passthru.rev = finalAttrs.src.rev;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool for squential logic synthesis and formal verification";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://people.eecs.berkeley.edu/~alanmi/abc";
|
|
|
|
license = licenses.mit;
|
2023-11-16 04:20:00 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice Luflosi ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "abc";
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2023-11-16 04:20:00 +00:00
|
|
|
})
|