bettered up the pww package

This commit is contained in:
Rouven Seifert 2023-06-05 12:31:07 +02:00
parent 8196d6e741
commit cf7f8dcda7
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
6 changed files with 35 additions and 22 deletions

View file

@ -1,24 +1,26 @@
{ stdenv, lib, buildGoModule, path, pkgs, go, fetchFromGitHub, playerctl }:
{ lib, buildGoModule, makeWrapper, fetchFromGitHub, playerctl }:
buildGoModule rec {
pname = "pww";
version = "unstable-2023-04-06";
version = "0.0.6";
src = fetchFromGitHub {
owner = "abenz1267";
repo = "pww";
rev = "8c973e600052d1c94a0921ed10d0723c123187c6"; # unstable because 6.0.0 has some crashes
hash = "sha256-IqLo1MlPGaM0n0TEhptiM5FvqJ8bsEPn7N2EEL6iWK8=";
rev = "v${version}";
hash = "sha256-nqNSzipOa0gj9qF49f/1R5QZMSY9xmjBnAVkiXdrSa4=";
};
buildInputs = [ playerctl ];
outputs = [ "out" ];
nativeBuildInputs = [ makeWrapper ];
vendorSha256 = "sha256-3PnXB8AfZtgmYEPJuh0fwvG38dtngoS/lxyx3H+rvFs=";
postInstall = ''
wrapProgram $out/bin/${pname} \
--prefix PATH : "${lib.makeBinPath [ playerctl ]}"
'';
meta = with lib; {
description = "Utility wrapper around playerctl";
homepage = "https://github.com/Mic92/sops-nix";
homepage = "https://github.com/abenz1267/pww";
license = licenses.mit;
maintainers = with maintainers; [ therealr5 ];
platforms = platforms.all;