opensmt: 20101017 -> 2.0.1
This commit is contained in:
parent
9b78f36021
commit
9fd99b5a32
|
@ -1,25 +1,38 @@
|
||||||
{ stdenv, fetchurl, automake, libtool, autoconf, intltool, perl
|
{ stdenv, lib, fetchFromGitHub
|
||||||
, gmpxx, flex, bison
|
, cmake, libedit, gmpxx, bison, flex
|
||||||
|
, enableReadline ? false, readline
|
||||||
|
, gtest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "opensmt";
|
pname = "opensmt";
|
||||||
version = "20101017";
|
version = "2.0.1";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchFromGitHub {
|
||||||
url = "http://opensmt.googlecode.com/files/opensmt_src_${version}.tgz";
|
owner = "usi-verification-and-security";
|
||||||
sha256 = "0xrky7ixjaby5x026v7hn72xh7d401w9jhccxjn0khhn1x87p2w1";
|
repo = "opensmt";
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "uoIcXWsxxRsIuFsou3RcN9e48lc7cWMgRPVJLFVslDE=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ automake libtool autoconf intltool perl gmpxx flex bison ];
|
nativeBuildInputs = [ cmake bison flex ];
|
||||||
|
buildInputs = [ libedit gmpxx ]
|
||||||
|
++ lib.optional enableReadline readline;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
preConfigure = ''
|
||||||
|
substituteInPlace test/CMakeLists.txt \
|
||||||
|
--replace 'FetchContent_Populate' '#FetchContent_Populate'
|
||||||
|
'';
|
||||||
|
cmakeFlags = [
|
||||||
|
"-Dgoogletest_SOURCE_DIR=${gtest.src}"
|
||||||
|
"-Dgoogletest_BINARY_DIR=./gtest-build"
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "A satisfiability modulo theory (SMT) solver";
|
description = "A satisfiability modulo theory (SMT) solver";
|
||||||
maintainers = [ maintainers.raskin ];
|
maintainers = [ maintainers.raskin ];
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
license = licenses.gpl3;
|
license = if enableReadline then licenses.gpl2Plus else licenses.mit;
|
||||||
homepage = "http://code.google.com/p/opensmt/";
|
homepage = "https://github.com/usi-verification-and-security/opensmt";
|
||||||
broken = true;
|
|
||||||
downloadPage = "http://code.google.com/p/opensmt/downloads/list";
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue