lib2geom: Add passthru.tests

Inkscape is the primary consumer. Also make sure the cross compilation works.
This commit is contained in:
Jan Tojnar
2024-12-21 18:45:44 +01:00
parent bbbf7fb942
commit aeea7ebc57
+13
View File
@@ -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";