From 4d356df875abb0be8cd7297773d48933bc26186d Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Wed, 22 Jan 2025 22:10:16 +0800 Subject: [PATCH] vigra: run upstream tests as tests.check --- pkgs/development/libraries/vigra/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/development/libraries/vigra/default.nix b/pkgs/development/libraries/vigra/default.nix index d500cc7579d7..b3b4ef750890 100644 --- a/pkgs/development/libraries/vigra/default.nix +++ b/pkgs/development/libraries/vigra/default.nix @@ -41,6 +41,11 @@ stdenv.mkDerivation (finalAttrs: { python ]; + postPatch = '' + chmod +x config/run_test.sh.in + patchShebangs --build config/run_test.sh.in + ''; + cmakeFlags = [ "-DWITH_OPENEXR=1" @@ -53,6 +58,14 @@ stdenv.mkDerivation (finalAttrs: { enableParallelBuilding = true; + passthru = { + tests = { + check = finalAttrs.finalPackage.overrideAttrs (previousAttrs: { + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; + }); + }; + }; + meta = with lib; { description = "Novel computer vision C++ library with customizable algorithms and data structures"; mainProgram = "vigra-config";