nixpkgs/pkgs/by-name/pl/plasmusic-toolbar/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
1.1 KiB
Nix
Raw Normal View History

2024-10-17 22:42:46 +00:00
{
lib,
2024-10-17 22:52:44 +00:00
stdenvNoCC,
2024-10-17 22:42:46 +00:00
fetchFromGitHub,
kdePackages,
nix-update-script,
2024-06-13 20:48:08 +00:00
}:
2024-10-17 22:52:44 +00:00
stdenvNoCC.mkDerivation (finalAttrs: {
2024-06-13 20:48:08 +00:00
pname = "plasmusic-toolbar";
2024-10-18 09:11:16 +00:00
version = "2.0.0";
2024-06-13 20:48:08 +00:00
src = fetchFromGitHub {
owner = "ccatterina";
repo = "plasmusic-toolbar";
2024-10-17 22:52:44 +00:00
rev = "refs/tags/v${finalAttrs.version}";
2024-10-18 09:11:16 +00:00
hash = "sha256-geT3QfZi0jNHxRcsGavcj5fnlPms1QgMgM4nAf/d2UI=";
2024-06-13 20:48:08 +00:00
};
installPhase = ''
runHook preInstall
mkdir -p $out/share/plasma/plasmoids/plasmusic-toolbar
cp -r src/* $out/share/plasma/plasmoids/plasmusic-toolbar
runHook postInstall
'';
passthru.updateScript = nix-update-script { };
2024-06-13 20:48:08 +00:00
meta = {
description = "KDE Plasma widget that shows currently playing song information and provide playback controls.";
homepage = "https://github.com/ccatterina/plasmusic-toolbar";
2024-10-17 22:52:44 +00:00
changelog = "https://github.com/ccatterina/plasmusic-toolbar/releases/tag/v${finalAttrs.version}";
2024-06-13 20:48:08 +00:00
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
inherit (kdePackages.kwindowsystem.meta) platforms;
};
})