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.

36 lines
1.0 KiB
Nix
Raw Normal View History

2024-06-13 20:48:08 +00:00
{ lib
, stdenv
, fetchFromGitHub
, kdePackages
, nix-update-script
2024-06-13 20:48:08 +00:00
}:
stdenv.mkDerivation (finalAttrs: {
pname = "plasmusic-toolbar";
2024-09-05 07:54:33 +00:00
version = "1.6.0";
2024-06-13 20:48:08 +00:00
src = fetchFromGitHub {
owner = "ccatterina";
repo = "plasmusic-toolbar";
rev = "v${finalAttrs.version}";
2024-09-05 07:54:33 +00:00
hash = "sha256-tZ2xcoGZp2GWoKd4XjO2K4he3tKBHgxi0PdqY+5ULn0=";
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-07-13 12:49:09 +00:00
changelog = "https://github.com/ccatterina/plasmusic-toolbar/releases/tag/${finalAttrs.src.rev}";
2024-06-13 20:48:08 +00:00
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
inherit (kdePackages.kwindowsystem.meta) platforms;
};
})