about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/science/logic/abc/default.nix
blob: 6e7a3cfc88ac0d740cc86fa8b3e5ad2427def201 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{ fetchFromGitHub, stdenv, readline, cmake }:

stdenv.mkDerivation rec {
  name = "abc-verifier-${version}";
  version = "2018-07-08";

  src = fetchFromGitHub {
    owner = "berkeley-abc";
    repo = "abc";
    rev    = "24407e13db4b8ca16c3996049b2d33ec3722de39";
    sha256 = "1rckji7nk81n6v1yajz7daqwipxacv7zlafknvmbiwji30j47sq5";
  };

  nativeBuildInputs = [ cmake ];
  buildInputs = [ readline ];

  enableParallelBuilding = true;

  installPhase = ''
    mkdir -p $out/bin
    mv abc $out/bin
  '';

  meta = {
    description = "A tool for squential logic synthesis and formal verification";
    homepage    = https://people.eecs.berkeley.edu/~alanmi/abc;
    license     = stdenv.lib.licenses.mit;
    platforms   = stdenv.lib.platforms.unix;
    maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
  };
}