mirror of
https://github.com/ryanccn/flake.git
synced 2025-12-06 08:10:43 +01:00
feat: add discord-applemusic-rich-presence
with overlay to use package from PR
This commit is contained in:
parent
ca991354a8
commit
4919ce7e91
4 changed files with 48 additions and 25 deletions
38
overlays/discord-applemusic-rich-presence.nix
Normal file
38
overlays/discord-applemusic-rich-presence.nix
Normal 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;
|
||||
};
|
||||
}) {};
|
||||
}
|
||||
)
|
||||
|
|
@ -1,24 +0,0 @@
|
|||
(_: prev: {
|
||||
gen-license = prev.rustPlatform.buildRustPackage rec {
|
||||
pname = "gen-license";
|
||||
version = "0.1.2";
|
||||
|
||||
src = prev.fetchCrate {
|
||||
inherit pname version;
|
||||
sha256 = "sha256-YZcycLQ436cjr2YTT7TEyMdeLTOl9oEfa5x3lgnnYyo=";
|
||||
};
|
||||
|
||||
cargoLock.lockFile = "${src}/Cargo.lock";
|
||||
|
||||
buildInputs =
|
||||
[]
|
||||
++ prev.lib.optionals prev.stdenv.isDarwin [
|
||||
prev.darwin.apple_sdk_11_0.frameworks.CoreFoundation
|
||||
prev.darwin.apple_sdk_11_0.frameworks.Security
|
||||
prev.darwin.IOKit
|
||||
prev.libiconv
|
||||
];
|
||||
|
||||
nativeBuildInputs = [prev.pkg-config];
|
||||
};
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue