🐛 discord-music-presence bug fixes
Signed-off-by: Xaiya Schumin <d.schumin@proton.me>
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
e2fsprogs,
|
||||
|
||||
libgpg-error,
|
||||
|
||||
makeWrapper,
|
||||
xkeyboard_config
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -28,38 +31,39 @@ stdenv.mkDerivation rec {
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
stdenv.cc.cc
|
||||
xkeyboard_config # ARGG
|
||||
|
||||
wayland
|
||||
libGL
|
||||
|
||||
zlib
|
||||
fontconfig
|
||||
freetype
|
||||
|
||||
e2fsprogs
|
||||
krb5
|
||||
|
||||
libgpg-error
|
||||
e2fsprogs
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin $out/share
|
||||
|
||||
cp -r usr/* $out
|
||||
|
||||
install -m 444 -D usr/share/applications/${pname}.desktop -t $out/share/applications
|
||||
|
||||
substituteInPlace $out/share/applications/${pname}.desktop \
|
||||
--replace-fail Exec=${pname} Exec=$out/bin/${pname}
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
wrapProgram $out/bin/${pname} \
|
||||
--set XKB_CONFIG_ROOT ${xkeyboard_config}/share/X11/xkb
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "The Discord music status that works with any media player";
|
||||
homepage = "https://github.com/ungive/discord-music-presence";
|
||||
|
||||
Reference in New Issue
Block a user