2023-06-05 12:31:07 +02:00
|
|
|
{ lib, buildGoModule, makeWrapper, fetchFromGitHub, playerctl }:
|
2023-06-03 21:42:12 +02:00
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pww";
|
2023-06-05 12:31:07 +02:00
|
|
|
version = "0.0.6";
|
2023-06-03 21:42:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "abenz1267";
|
|
|
|
repo = "pww";
|
2023-06-05 12:31:07 +02:00
|
|
|
rev = "v${version}";
|
|
|
|
hash = "sha256-nqNSzipOa0gj9qF49f/1R5QZMSY9xmjBnAVkiXdrSa4=";
|
2023-06-03 21:42:12 +02:00
|
|
|
};
|
|
|
|
|
2023-06-05 12:31:07 +02:00
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
2023-06-03 21:42:12 +02:00
|
|
|
|
2023-11-18 00:11:37 +01:00
|
|
|
vendorHash = "sha256-3PnXB8AfZtgmYEPJuh0fwvG38dtngoS/lxyx3H+rvFs=";
|
2023-06-05 12:31:07 +02:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/${pname} \
|
|
|
|
--prefix PATH : "${lib.makeBinPath [ playerctl ]}"
|
|
|
|
'';
|
2023-06-03 21:42:12 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Utility wrapper around playerctl";
|
2023-06-05 12:31:07 +02:00
|
|
|
homepage = "https://github.com/abenz1267/pww";
|
2023-06-03 21:42:12 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ therealr5 ];
|
2023-08-03 13:30:40 +02:00
|
|
|
mainProgram = "pww";
|
2023-06-03 21:42:12 +02:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|