2021-08-27 15:00:36 -05:00
|
|
|
{ version, meta }:
|
|
|
|
|
|
|
|
{ lib, stdenv, cmake, ninja, python2, boost
|
|
|
|
, coriolis-bootstrap, coriolis-vlsisapd, coriolis-hurricane
|
|
|
|
, coriolis-crlcore, coriolis-lefdef, qt4 }:
|
|
|
|
|
|
|
|
let boostWithPython = boost.override { enablePython = true; python = python2; }; in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
pname = "coriolis-unittests";
|
|
|
|
|
|
|
|
src = ../unittests;
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
python2 boostWithPython coriolis-bootstrap qt4
|
|
|
|
coriolis-vlsisapd coriolis-hurricane coriolis-crlcore
|
|
|
|
coriolis-lefdef
|
|
|
|
];
|
|
|
|
nativeBuildInputs = [ cmake ninja ];
|
|
|
|
|
2021-09-01 13:46:28 -05:00
|
|
|
doInstallCheck = true;
|
|
|
|
|
|
|
|
installCheckPhase = ''
|
|
|
|
runHook preInstallCheck
|
|
|
|
$out/bin/unittests
|
|
|
|
$out/bin/unittests --rb-tree
|
|
|
|
$out/bin/unittests --intv-tree
|
|
|
|
runHook postInstallCheck
|
|
|
|
'';
|
|
|
|
|
2021-09-05 09:03:28 -05:00
|
|
|
inherit version;
|
|
|
|
|
|
|
|
meta = meta // { license = lib.licenses.gpl2Plus; };
|
2021-08-27 15:00:36 -05:00
|
|
|
}
|