2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, cmake, fetchFromGitHub, fixDarwinDylibNames }:
|
2018-08-15 21:46:37 +01:00
|
|
|
|
2020-05-24 14:01:08 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "btor2tools";
|
2020-05-24 14:01:08 +01:00
|
|
|
version = "1.0.0-pre_${src.rev}";
|
2018-08-15 21:46:37 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "boolector";
|
|
|
|
repo = "btor2tools";
|
2020-05-24 14:01:08 +01:00
|
|
|
rev = "9831f9909fb283752a3d6d60d43613173bd8af42";
|
|
|
|
sha256 = "0mfqmkgvyw8fa2c09kww107dmk180ch1hp98r5kv41vnc04iqb0s";
|
2018-08-15 21:46:37 +01:00
|
|
|
};
|
|
|
|
|
2021-01-15 13:21:58 +00:00
|
|
|
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.isDarwin fixDarwinDylibNames;
|
2018-08-15 21:46:37 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out $dev/include/btor2parser/ $lib/lib
|
|
|
|
|
|
|
|
cp -vr bin $out
|
2020-05-24 14:01:08 +01:00
|
|
|
cp -v ../src/btor2parser/btor2parser.h $dev/include/btor2parser
|
|
|
|
cp -v lib/libbtor2parser.* $lib/lib
|
2018-08-15 21:46:37 +01:00
|
|
|
'';
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "lib" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with 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 21:46:37 +01:00
|
|
|
license = licenses.mit;
|
2020-10-16 18:38:48 +01:00
|
|
|
platforms = platforms.unix;
|
2018-08-15 21:46:37 +01:00
|
|
|
maintainers = with maintainers; [ thoughtpolice ];
|
|
|
|
};
|
|
|
|
}
|