biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / applications / science / logic / abc / default.nix
bloba71122c5465c5352861a25eb0118fc7c943a1349
1 { lib
2 , stdenv
3 , fetchFromGitHub
4 , readline
5 , cmake
6 }:
8 stdenv.mkDerivation (finalAttrs: {
9   pname   = "abc-verifier";
10   version = "unstable-2023-10-13";
12   src = fetchFromGitHub {
13     owner = "yosyshq";
14     repo  = "abc";
15     rev   = "896e5e7dedf9b9b1459fa019f1fa8aa8101fdf43";
16     hash  = "sha256-ou+E2lvDEOxXRXNygE/TyVi7quqk+CJHRI+HDI0xljE=";
17   };
19   nativeBuildInputs = [ cmake ];
20   buildInputs = [ readline ];
22   installPhase = ''
23     runHook preInstall
24     install -Dm755 'abc' "$out/bin/abc"
25     runHook postInstall
26   '';
28   # needed by yosys
29   passthru.rev = finalAttrs.src.rev;
31   meta = with lib; {
32     description = "Tool for squential logic synthesis and formal verification";
33     homepage    = "https://people.eecs.berkeley.edu/~alanmi/abc";
34     license     = licenses.mit;
35     maintainers = with maintainers; [ thoughtpolice Luflosi ];
36     mainProgram = "abc";
37     platforms   = platforms.unix;
38   };