mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 03:03:37 +00:00
36 lines
1.0 KiB
Nix
36 lines
1.0 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, kdePackages
|
|
, nix-update-script
|
|
}:
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "plasmusic-toolbar";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ccatterina";
|
|
repo = "plasmusic-toolbar";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-Em/5HXKVXAwsWYoJp+50Y+5Oe+JfJ4pYQd0+D7PoyGg=";
|
|
};
|
|
|
|
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/${finalAttrs.src.rev}";
|
|
license = lib.licenses.gpl3Only;
|
|
maintainers = with lib.maintainers; [ HeitorAugustoLN ];
|
|
inherit (kdePackages.kwindowsystem.meta) platforms;
|
|
};
|
|
})
|