depot/third_party/nixpkgs/pkgs/applications/science/logic/abc/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

32 lines
831 B
Nix

{ lib, stdenv, fetchFromGitHub
, readline, cmake
}:
stdenv.mkDerivation rec {
pname = "abc-verifier";
version = "unstable-2023-09-13";
src = fetchFromGitHub {
owner = "yosyshq";
repo = "abc";
rev = "daad9ede0137dc58487a0abc126253e671a85b14";
hash = "sha256-5XeFYvdqT08xduFUDC5yK1jEOV1fYzyQD7N9ZmG3mpQ=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ readline ];
installPhase = "mkdir -p $out/bin && mv abc $out/bin";
# needed by yosys
passthru.rev = src.rev;
meta = with lib; {
description = "A tool for squential logic synthesis and formal verification";
homepage = "https://people.eecs.berkeley.edu/~alanmi/abc";
license = licenses.mit;
maintainers = with maintainers; [ thoughtpolice ];
mainProgram = "abc";
platforms = platforms.unix;
};
}