forked from mirrors/nixpkgs
28 lines
803 B
Nix
28 lines
803 B
Nix
{ stdenv, fetchurl }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "boolector-${version}";
|
|
version = "2.4.1";
|
|
src = fetchurl {
|
|
url = "http://fmv.jku.at/boolector/boolector-${version}-with-lingeling-bbc.tar.bz2";
|
|
sha256 = "0mdf7hwix237pvknvrpazcx6s3ininj5k7vhysqjqgxa7lxgq045";
|
|
};
|
|
|
|
prePatch = ''
|
|
sed -i -e 's@mv lingeling\* lingeling@\0 \&\& sed -i -e "1i#include <stdint.h>" lingeling/lglib.h@' makefile
|
|
'';
|
|
|
|
installPhase = ''
|
|
mkdir $out
|
|
mv boolector/bin $out
|
|
'';
|
|
|
|
meta = {
|
|
license = stdenv.lib.licenses.unfreeRedistributable;
|
|
description = "An extremely fast SMT solver for bit-vectors and arrays";
|
|
homepage = "http://fmv.jku.at/boolector";
|
|
platforms = stdenv.lib.platforms.linux;
|
|
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
|
|
};
|
|
}
|