nixpkgs-suyu/pkgs/applications/science/logic/abc/default.nix

31 lines
827 B
Nix
Raw Normal View History

{ fetchhg, stdenv, readline }:
stdenv.mkDerivation rec {
name = "abc-verifier-${version}";
version = "140509"; # YYMMDD
src = fetchhg {
url = "https://bitbucket.org/alanmi/abc";
rev = "03e221443d71e49e56cbc37f1907ee3b0ff3e7c9";
sha256 = "0ahrqg718y7xpv939f6x8w1kqh7wsja4pw8hca7j67j0qjdgb4lm";
};
buildInputs = [ readline ];
2015-01-02 21:39:30 +01:00
preBuild = ''
export buildFlags="CC=$CC CXX=$CXX LD=$LD"
'';
enableParallelBuilding = true;
installPhase = ''
mkdir -p $out/bin
mv abc $out/bin
'';
meta = {
description = "Sequential Logic Synthesis and Formal Verification";
homepage = "www.eecs.berkeley.edu/~alanmi/abc/abc.htm";
license = stdenv.lib.licenses.mit;
platforms = stdenv.lib.platforms.unix;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}