9e2bf13d54
Signed-off-by: Xaiya Schumin <d.schumin@proton.me>
36 lines
1.1 KiB
Nix
36 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
appimageTools,
|
|
makeDesktopItem,
|
|
}:
|
|
appimageTools.wrapType2 rec {
|
|
pname = "discord-music-presence";
|
|
version = "2.3.5";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ungive/discord-music-presence/releases/download/v${version}/musicpresence-${version}-linux-x86_64.AppImage";
|
|
hash = "sha256-M7oDxVevspA3SGuHktS8ChQAYopgIqypiVlzyE4uyqI=";
|
|
};
|
|
|
|
extraInstallCommands =
|
|
let
|
|
contents = appimageTools.extract { inherit pname version src; };
|
|
in
|
|
''
|
|
install -m 444 -D ${contents}/musicpresence.desktop -t $out/share/applications
|
|
substituteInPlace $out/share/applications/musicpresence.desktop \
|
|
--replace-fail Exec=musicpresence Exec=$out/bin/${pname}
|
|
cp -r ${contents}/usr/share/icons $out/share
|
|
'';
|
|
|
|
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 = "discord-music-presence";
|
|
};
|
|
}
|