2020-11-29 21:31:31 +00:00
|
|
|
{ stdenv, cmake, fetchFromGitHub, fixDarwinDylibNames }:
|
2018-08-15 20:46:37 +00:00
|
|
|
|
2020-05-24 13:01:08 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "btor2tools";
|
2020-05-24 13:01:08 +00:00
|
|
|
version = "1.0.0-pre_${src.rev}";
|
2018-08-15 20:46:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boolector";
|
|
|
|
repo = "btor2tools";
|
2020-05-24 13:01:08 +00:00
|
|
|
rev = "9831f9909fb283752a3d6d60d43613173bd8af42";
|
|
|
|
sha256 = "0mfqmkgvyw8fa2c09kww107dmk180ch1hp98r5kv41vnc04iqb0s";
|
2018-08-15 20:46:37 +00:00
|
|
|
};
|
|
|
|
|
2020-11-29 21:31:31 +00:00
|
|
|
nativeBuildInputs = [ cmake ] ++ stdenv.lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
2018-08-15 20:46:37 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out $dev/include/btor2parser/ $lib/lib
|
|
|
|
|
|
|
|
cp -vr bin $out
|
2020-05-24 13:01:08 +00:00
|
|
|
cp -v ../src/btor2parser/btor2parser.h $dev/include/btor2parser
|
|
|
|
cp -v lib/libbtor2parser.* $lib/lib
|
2018-08-15 20:46:37 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "lib" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2019-12-08 16:46:29 +00:00
|
|
|
description = "A generic parser and tool package for the BTOR2 format";
|
|
|
|
homepage = "https://github.com/Boolector/btor2tools";
|
2018-08-15 20:46:37 +00:00
|
|
|
license = licenses.mit;
|
2020-10-16 17:38:48 +00:00
|
|
|
platforms = platforms.unix;
|
2018-08-15 20:46:37 +00:00
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|