From 4ade2ae9e949b184ba2d47495ec348f385ab0300 Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Fri, 24 Jun 2022 21:55:08 -0400 Subject: [PATCH] fix: Move util-linux to wrapProgram --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 8fa0641..c274f5a 100644 --- a/flake.nix +++ b/flake.nix @@ -39,7 +39,6 @@ xorg.libXrender xorg.libXtst zlib - util-linux ]; nativeBuildInputs = with pkgs; [ autoPatchelfHook @@ -72,7 +71,8 @@ # breaks building OpenJDK (#114495). for bin in $( find "$out" -executable -type f -not -name jspawnhelper ); do if patchelf --print-interpreter "$bin" &> /dev/null; then - wrapProgram "$bin" --prefix LD_LIBRARY_PATH : "${runtimeLibraryPath}" + wrapProgram "$bin" --prefix LD_LIBRARY_PATH : "${runtimeLibraryPath}" \ + --prefix PATH : ${lib.makeBinPath [ pkgs.util-linux ]} fi done '';