From 4eac13a88cadc64d65c90a34bb699a31f239aa3b Mon Sep 17 00:00:00 2001 From: David Warde-Farley Date: Fri, 29 Mar 2024 20:17:25 +0000 Subject: [PATCH] rocmPackages_6.miopen: correctly link gtest --- pkgs/development/rocm-modules/6/miopen/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/rocm-modules/6/miopen/default.nix b/pkgs/development/rocm-modules/6/miopen/default.nix index f78bcb602e698..09bcf10429530 100644 --- a/pkgs/development/rocm-modules/6/miopen/default.nix +++ b/pkgs/development/rocm-modules/6/miopen/default.nix @@ -155,6 +155,7 @@ in stdenv.mkDerivation (finalAttrs: { python3Packages.breathe python3Packages.myst-parser ] ++ lib.optionals buildTests [ + gtest zlib ]; @@ -185,6 +186,9 @@ in stdenv.mkDerivation (finalAttrs: { substituteInPlace test/gtest/CMakeLists.txt \ --replace "include(googletest)" "" + substituteInPlace test/gtest/CMakeLists.txt \ + --replace-fail " gtest_main " " ${gtest}/lib/libgtest.so ${gtest}/lib/libgtest_main.so " + ln -sf ${gfx900} src/kernels/gfx900.kdb ln -sf ${gfx906} src/kernels/gfx906.kdb ln -sf ${gfx908} src/kernels/gfx908.kdb