From dc2ccabad299702aac8c9b53798669f5651f60f6 Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Thu, 13 Jun 2024 19:05:28 -0500 Subject: [PATCH] btrfs-assistant: fix runtime errors --- pkgs/by-name/bt/btrfs-assistant/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/bt/btrfs-assistant/package.nix b/pkgs/by-name/bt/btrfs-assistant/package.nix index aa94ec1592f9..3be7b54d5e8c 100644 --- a/pkgs/by-name/bt/btrfs-assistant/package.nix +++ b/pkgs/by-name/bt/btrfs-assistant/package.nix @@ -34,16 +34,21 @@ stdenv.mkDerivation (finalAttrs: { buildInputs = [ btrfs-progs + coreutils qt6.qtbase qt6.qtsvg qt6.qttools qt6.qtwayland - ]; + util-linux + ] ++ lib.optionals enableSnapper [ snapper ]; prePatch = '' substituteInPlace src/util/System.cpp \ --replace '/bin/bash' "${lib.getExe bash}" + + substituteInPlace src/main.cpp \ + --replace-fail 'if (!qEnvironmentVariableIsEmpty("DISPLAY"))' ' if(!qEnvironmentVariableIsEmpty("DISPLAY") || !qEnvironmentVariableIsEmpty("WAYLAND_DISPLAY"))' '' + lib.optionalString enableSnapper '' substituteInPlace src/main.cpp \