6ef2f7e4bf
Signed-off-by: Xaiya Schumin <d.schumin@proton.me>
42 lines
1.0 KiB
Nix
42 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchurl,
|
|
appimageTools,
|
|
makeDesktopItem,
|
|
}:
|
|
let
|
|
version = "2.3.5";
|
|
pname = "discord-music-presence";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/ungive/discord-music-presence/releases/download/v${version}/musicpresence-${version}-linux-x86_64.AppImage";
|
|
hash = "sha256-M7oDxVevspA3SGuHktS8ChQAYopgIqypiVlzyE4uyqI=";
|
|
};
|
|
|
|
desktopItem = makeDesktopItem {
|
|
name = pname;
|
|
exec = pname;
|
|
# icon
|
|
desktopName = pname;
|
|
genericName = "Discord Music Presence";
|
|
categories = [ "Application" ];
|
|
};
|
|
in
|
|
appimageTools.wrapType2 rec {
|
|
inherit pname version src;
|
|
|
|
extraInstallCommands = ''
|
|
mkdir "$out/share";
|
|
ln -s "${desktopItem}/share/applications" "$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";
|
|
};
|
|
}
|