From 731151b014df840b2d71b544a37f741848ec914f Mon Sep 17 00:00:00 2001 From: qbisi Date: Sat, 24 Jan 2026 06:29:49 +0800 Subject: [PATCH] python3Packages.adios2: link against installed libraries --- pkgs/by-name/ad/adios2/package.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/by-name/ad/adios2/package.nix b/pkgs/by-name/ad/adios2/package.nix index 82c460835b13..d3556d4cc9af 100644 --- a/pkgs/by-name/ad/adios2/package.nix +++ b/pkgs/by-name/ad/adios2/package.nix @@ -183,6 +183,11 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeFeature "CMAKE_INSTALL_PYTHONDIR" python3Packages.python.sitePackages) ]; + # python binding libraries should be linked against installed libraries + preInstall = lib.optionalString pythonSupport '' + export adios2_DIR=$out/lib/cmake/adios2 + ''; + # Tests are time-consuming and moved to passthru.tests.withCheck. doCheck = false; dontUseNinjaCheck = true;