mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 18:33:00 +00:00
37 lines
1.1 KiB
Nix
37 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
stdenvNoCC,
|
|
fetchFromGitHub,
|
|
kdePackages,
|
|
nix-update-script,
|
|
}:
|
|
stdenvNoCC.mkDerivation (finalAttrs: {
|
|
pname = "plasmusic-toolbar";
|
|
version = "2.0.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ccatterina";
|
|
repo = "plasmusic-toolbar";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-geT3QfZi0jNHxRcsGavcj5fnlPms1QgMgM4nAf/d2UI=";
|
|
};
|
|
|
|
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 { };
|
|
|
|
meta = {
|
|
description = "KDE Plasma widget that shows currently playing song information and provide playback controls.";
|
|
homepage = "https://github.com/ccatterina/plasmusic-toolbar";
|
|
changelog = "https://github.com/ccatterina/plasmusic-toolbar/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
|
|
inherit (kdePackages.kwindowsystem.meta) platforms;
|
|
};
|
|
})
|