lib2geom: Add passthru.tests
Inkscape is the primary consumer. Also make sure the cross compilation works.
This commit is contained in:
@@ -11,6 +11,8 @@
|
||||
double-conversion,
|
||||
gtest,
|
||||
lib,
|
||||
inkscape,
|
||||
pkgsCross,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
@@ -87,6 +89,17 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
runHook postCheck
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
tests =
|
||||
{
|
||||
inherit inkscape;
|
||||
}
|
||||
# Make sure x86_64-linux -> aarch64-linux cross compilation works
|
||||
// lib.optionalAttrs (stdenv.buildPlatform.system == "x86_64-linux") {
|
||||
aarch64-cross = pkgsCross.aarch64-multiplatform.lib2geom;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "Easy to use 2D geometry library in C++";
|
||||
homepage = "https://gitlab.com/inkscape/lib2geom";
|
||||
|
||||
Reference in New Issue
Block a user