1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 16:10:45 +01:00

feat: add discord-applemusic-rich-presence

with overlay to use package from PR
This commit is contained in:
Ryan Cao 2023-07-27 14:19:23 +08:00
parent ca991354a8
commit 4919ce7e91
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
4 changed files with 48 additions and 25 deletions

View file

@ -0,0 +1,38 @@
(
_: prev: let
rev = "27ea39e67424003fcc79b9ae48c906d4b605b273";
hash = "sha256-6+SI8fj7GCykcA2D3wtE3GILfbtJc/pwcWQKkc+Nni8=";
vendorHash = "sha256-RFJTBfsfEyKn9OSvE2HLgjKiJC3Hs90+P9rm5GlIseo=";
in {
discord-applemusic-rich-presence = prev.callPackage ({
buildGoModule,
fetchFromGitHub,
lib,
stdenv,
...
}:
buildGoModule rec {
pname = "discord-applemusic-rich-presence";
version = "0.5.0-dev.${lib.substring 0 8 rev}";
src = fetchFromGitHub {
owner = "caarlos0";
repo = "discord-applemusic-rich-presence";
inherit rev;
inherit hash;
};
inherit vendorHash;
ldflags = ["-s" "-w" "-X=main.version=${version}" "-X=main.builtBy=nixpkgs"];
meta = with lib; {
description = "Discord's Rich Presence from Apple Music";
homepage = "https://github.com/caarlos0/discord-applemusic-rich-presence";
license = licenses.mit;
platforms = platforms.darwin;
broken = stdenv.isLinux;
};
}) {};
}
)