portfolio: 0.71.2 -> 0.72.2 (#360387)
[NixPkgs.git] / pkgs / by-name / pl / plasmusic-toolbar / package.nix
blob151527ff3c2e490afe1df44e09f05a72faed2b3d
2   lib,
3   stdenvNoCC,
4   fetchFromGitHub,
5   kdePackages,
6   nix-update-script,
7 }:
8 stdenvNoCC.mkDerivation (finalAttrs: {
9   pname = "plasmusic-toolbar";
10   version = "2.0.0";
12   src = fetchFromGitHub {
13     owner = "ccatterina";
14     repo = "plasmusic-toolbar";
15     rev = "refs/tags/v${finalAttrs.version}";
16     hash = "sha256-geT3QfZi0jNHxRcsGavcj5fnlPms1QgMgM4nAf/d2UI=";
17   };
19   installPhase = ''
20     runHook preInstall
21     mkdir -p $out/share/plasma/plasmoids/plasmusic-toolbar
22     cp -r src/* $out/share/plasma/plasmoids/plasmusic-toolbar
23     runHook postInstall
24   '';
26   passthru.updateScript = nix-update-script { };
28   meta = {
29     description = "KDE Plasma widget that shows currently playing song information and provide playback controls.";
30     homepage = "https://github.com/ccatterina/plasmusic-toolbar";
31     changelog = "https://github.com/ccatterina/plasmusic-toolbar/releases/tag/v${finalAttrs.version}";
32     license = lib.licenses.gpl3Only;
33     maintainers = with lib.maintainers; [ HeitorAugustoLN ];
34     inherit (kdePackages.kwindowsystem.meta) platforms;
35   };