update too much
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
{
|
||||
lib,
|
||||
fetchurl,
|
||||
stdenv,
|
||||
|
||||
xkeyboard_config,
|
||||
|
||||
wayland,
|
||||
libGL,
|
||||
|
||||
openssl,
|
||||
cacert,
|
||||
|
||||
fontconfig,
|
||||
freetype,
|
||||
libgpg-error,
|
||||
e2fsprogs,
|
||||
|
||||
autoPatchelfHook,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "musicpresence";
|
||||
version = "2.3.5";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/ungive/discord-music-presence/releases/download/v${version}/${pname}-${version}-linux-x86_64.tar.gz";
|
||||
hash = "sha256-BDgM1SfyEXC0oW+J33mYKwqRrvZX3cy/X9k7Yuk4kS8=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
autoPatchelfHook
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
stdenv.cc.cc
|
||||
xkeyboard_config # ARGG
|
||||
|
||||
wayland
|
||||
libGL
|
||||
|
||||
openssl
|
||||
cacert
|
||||
|
||||
fontconfig
|
||||
freetype
|
||||
libgpg-error
|
||||
e2fsprogs
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/bin $out/share
|
||||
cp -r usr/* $out
|
||||
|
||||
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 \
|
||||
--set SSL_CERT_FILE ${cacert}/etc/ssl/certs/ca-bundle.crt \
|
||||
--set OPENSSL_CONF ${openssl.out}/etc/ssl/openssl.cnf \
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "The Discord music status that works with any media player";
|
||||
homepage = "https://github.com/ungive/discord-music-presence";
|
||||
license = lib.licenses.unfreeRedistributable;
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
mainProgram = "musicpresence";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user