config/packages/discord-music-presence/default.nix

48 lines
944 B
Nix
Raw Normal View History

2026-01-13 15:39:16 -05:00
{
fetchurl,
stdenv,
autoPatchelfHook,
xorg,
libGL,
libgcc,
systemdLibs,
libz,
glibc,
fontconfig,
e2fsprogs,
}:
stdenv.mkDerivation {
src = fetchurl {
url = "https://cdn.discordapp.com/attachments/1306271439493533776/1414196667304902707/music-presence-2.3.3-preview.6-linux-x86_64.tar.gz?ex=68beb0c7&is=68bd5f47&hm=09a61b4eeadb1f0b61ed70a6d1a14fe267f320027e0aae8dca1923d0813b063a&";
hash = "sha256-KqGnG4xdZcOQJQXrNU3leLXDNjNFAVjvuDUKAR38IBs=";
};
nativeBuildInputs = [autoPatchelfHook];
preBuild = ''
addAutoPatchelfSearchPath ./usr/plugins/
addAutoPatchelfSearchPath ./usr/bin/
addAutoPatchelfSearchPath ./usr/lib/
'';
buildInputs = [
xorg.libX11
xorg.libxcb
libGL
libgcc
systemdLibs
libz
glibc
fontconfig
e2fsprogs
];
installPhase = ''
runHook preInstall
cp -r . $out
runHook postInstall
'';
name = "discord-music-presence";
}