coriolis/nix/unittests.nix

35 lines
770 B
Nix
Raw Normal View History

2021-08-27 15:00:36 -05:00
{ version, meta }:
2021-10-26 16:10:09 -05:00
{ lib, stdenv, cmake, ninja, python3, boost
2021-10-26 16:35:18 -05:00
, coriolis-bootstrap, coriolis-hurricane
2021-08-27 15:00:36 -05:00
, coriolis-crlcore, coriolis-lefdef, qt4 }:
2021-10-26 16:10:09 -05:00
let boostWithPython = boost.override { enablePython = true; python = python3; }; in
2021-08-27 15:00:36 -05:00
stdenv.mkDerivation {
pname = "coriolis-unittests";
src = ../unittests;
buildInputs = [
2021-10-26 16:10:09 -05:00
python3 boostWithPython coriolis-bootstrap qt4
2021-10-26 16:35:18 -05:00
coriolis-hurricane coriolis-crlcore
2021-08-27 15:00:36 -05:00
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
}