{ lib , stdenv , fetchFromGitHub , readline , cmake }: stdenv.mkDerivation (finalAttrs: { pname = "abc-verifier"; version = "unstable-2024-05-08"; src = fetchFromGitHub { owner = "yosyshq"; repo = "abc"; rev = "237d81397fcc85dd3894bf1a449d2955cd3df02d"; hash = "sha256-t3wdt/jGyF3Ysd0rzDYvPzECgOAL87/IJlHh3FGaF1k="; }; nativeBuildInputs = [ cmake ]; buildInputs = [ readline ]; installPhase = '' runHook preInstall install -Dm755 'abc' "$out/bin/abc" runHook postInstall ''; # needed by yosys passthru.rev = finalAttrs.src.rev; meta = with lib; { description = "Tool for squential logic synthesis and formal verification"; homepage = "https://people.eecs.berkeley.edu/~alanmi/abc"; license = licenses.mit; maintainers = with maintainers; [ thoughtpolice Luflosi ]; mainProgram = "abc"; platforms = platforms.unix; }; })