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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "unstable-2023-10-13";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
owner = "yosyshq";
|
|
|
|
repo = "abc";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "896e5e7dedf9b9b1459fa019f1fa8aa8101fdf43";
|
|
|
|
hash = "sha256-ou+E2lvDEOxXRXNygE/TyVi7quqk+CJHRI+HDI0xljE=";
|
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; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "A tool for squential logic synthesis and formal verification";
|
|
|
|
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
|
|
|
})
|