Merge pull request #179893 from zendo/radioboat
radioboat: init at 0.2.1
This commit is contained in:
commit
3a7dedf779
2 changed files with 62 additions and 0 deletions
60
pkgs/applications/audio/radioboat/default.nix
Normal file
60
pkgs/applications/audio/radioboat/default.nix
Normal file
|
@ -0,0 +1,60 @@
|
|||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
, mpv
|
||||
, makeWrapper
|
||||
, installShellFiles
|
||||
, nix-update-script
|
||||
, testers
|
||||
, radioboat
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "radioboat";
|
||||
version = "0.2.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "slashformotion";
|
||||
repo = "radioboat";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-ZAKTWmK3hCJxm/578cjtdgMA2ZRhCFtzfGdta0gmuFY=";
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-X3KiqaiOQYQBfVckh50C+4oxIVN6gXyNuQtBwGvjdFQ=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
"-w"
|
||||
"-X github.com/slashformotion/radioboat/internal/buildinfo.Version=${version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ makeWrapper installShellFiles ];
|
||||
|
||||
preFixup = ''
|
||||
wrapProgram $out/bin/radioboat --prefix PATH ":" "${lib.makeBinPath [ mpv ]}";
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion --cmd radioboat \
|
||||
--bash <($out/bin/radioboat completion bash) \
|
||||
--fish <($out/bin/radioboat completion fish) \
|
||||
--zsh <($out/bin/radioboat completion zsh)
|
||||
'';
|
||||
|
||||
passthru = {
|
||||
updateScript = nix-update-script { attrPath = pname; };
|
||||
tests.version = testers.testVersion {
|
||||
package = radioboat;
|
||||
command = "radioboat version";
|
||||
version = version;
|
||||
};
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
description = "A terminal web radio client";
|
||||
homepage = "https://github.com/slashformotion/radioboat";
|
||||
license = licenses.asl20;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ zendo ];
|
||||
};
|
||||
}
|
|
@ -29782,6 +29782,8 @@ with pkgs;
|
|||
|
||||
roomeqwizard = callPackage ../applications/audio/roomeqwizard { };
|
||||
|
||||
radioboat = callPackage ../applications/audio/radioboat { };
|
||||
|
||||
radiotray-ng = callPackage ../applications/audio/radiotray-ng {
|
||||
wxGTK = wxGTK30;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue