Skip to content

Commit

Permalink
lib2geom: Add passthru.tests
Browse files Browse the repository at this point in the history
Inkscape is the primary consumer. Also make sure the cross compilation works.
  • Loading branch information
jtojnar committed Dec 21, 2024
1 parent bbbf7fb commit aeea7eb
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions pkgs/by-name/li/lib2geom/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
double-conversion,
gtest,
lib,
inkscape,
pkgsCross,
}:

stdenv.mkDerivation (finalAttrs: {
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit aeea7eb

Please sign in to comment.