From bcbb670c152ce4ed6404bf6d7e3fc1b1d4e91b99 Mon Sep 17 00:00:00 2001 From: Atemu Date: Sun, 28 May 2023 17:21:51 +0200 Subject: [PATCH] BeatSaberModManager: wrap with xdg-utils Using the OneClick functionality requires the app to have xdg-utils in its PATH. Fixes https://github.com/NixOS/nixpkgs/issues/234039 --- pkgs/games/BeatSaberModManager/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/games/BeatSaberModManager/default.nix b/pkgs/games/BeatSaberModManager/default.nix index 840cdb59ec9b..da277552b427 100644 --- a/pkgs/games/BeatSaberModManager/default.nix +++ b/pkgs/games/BeatSaberModManager/default.nix @@ -13,6 +13,8 @@ libICE, libSM, fontconfig, + + xdg-utils, }: buildDotnetModule rec { @@ -47,6 +49,11 @@ buildDotnetModule rec { fontconfig ]; + # Required for OneClick + makeWrapperArgs = [ + ''--prefix PATH : "${lib.makeBinPath [ xdg-utils ]}"'' + ]; + meta = with lib; { description = "Yet another mod installer for Beat Saber, heavily inspired by ModAssistant"; homepage = "https://github.com/affederaffe/BeatSaberModManager";