2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub
|
2020-04-24 23:36:52 +00:00
|
|
|
, readline, cmake
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "abc-verifier";
|
2023-03-04 12:14:45 +00:00
|
|
|
version = "unstable-2023-02-04";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2021-12-06 16:07:01 +00:00
|
|
|
owner = "yosyshq";
|
|
|
|
repo = "abc";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "a8f0ef2368aa56b3ad20a52298a02e63b2a93e2d";
|
|
|
|
hash = "sha256-48i6AKQhMG5hcnkS0vejOy1PqFbeb6FpU7Yx0rEvHDI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ readline ];
|
|
|
|
|
|
|
|
installPhase = "mkdir -p $out/bin && mv abc $out/bin";
|
|
|
|
|
|
|
|
# needed by yosys
|
|
|
|
passthru.rev = src.rev;
|
|
|
|
|
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;
|
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
2022-05-18 14:49:53 +00:00
|
|
|
mainProgram = "abc";
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|