openjpeg: move jpylizer to nativeCheckInputs

This is useful when cross-compiling to platforms that we can't build
Python for (and also just more semantically correct).
This commit is contained in:
Alyssa Ross 2023-01-26 17:57:52 +00:00
parent d528d7c8d7
commit 3404d6b0f7
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -55,10 +55,10 @@ stdenv.mkDerivation rec {
++ lib.optional (jpipLibSupport) jdk;
doCheck = (!stdenv.isAarch64 && !stdenv.hostPlatform.isPower64); # tests fail on aarch64-linux and powerpc64
nativeCheckInputs = [ jpylyzer ];
checkPhase = ''
substituteInPlace ../tools/ctest_scripts/travis-ci.cmake \
--replace "JPYLYZER_EXECUTABLE=" "JPYLYZER_EXECUTABLE=\"${jpylyzer}/bin/jpylyzer\" # "
--replace "JPYLYZER_EXECUTABLE=" "JPYLYZER_EXECUTABLE=\"jpylyzer\" # "
OPJ_SOURCE_DIR=.. ctest -S ../tools/ctest_scripts/travis-ci.cmake
'';