From 248fceed0e3430fb4a02a56dfba2413559f6e89f Mon Sep 17 00:00:00 2001 From: linsui Date: Mon, 20 Nov 2023 22:51:11 +0800 Subject: [PATCH] mission-center: fix libGL.so not found --- pkgs/applications/misc/mission-center/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/applications/misc/mission-center/default.nix b/pkgs/applications/misc/mission-center/default.nix index 8384fc1ce456..acbf4c053c4a 100644 --- a/pkgs/applications/misc/mission-center/default.nix +++ b/pkgs/applications/misc/mission-center/default.nix @@ -104,6 +104,9 @@ stdenv.mkDerivation rec { ]; postPatch = '' + substituteInPlace src/main.rs \ + --replace "libGL.so.1" "${libGL}/lib/libGL.so.1" + SRC_GATHERER=$NIX_BUILD_TOP/source/src/sys_info_v2/gatherer SRC_GATHERER_NVTOP=$SRC_GATHERER/3rdparty/nvtop