mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 17:03:01 +00:00
btrfs-assistant: fix runtime errors
This commit is contained in:
parent
31a6982b2b
commit
dc2ccabad2
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user