-
-
Notifications
You must be signed in to change notification settings - Fork 14.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
29 changed files
with
1,168 additions
and
1,084 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
WGET_ARGS=( https://download.kde.org/stable/release-service/22.04.2/src -A '*.tar.xz' ) | ||
WGET_ARGS=( https://download.kde.org/stable/release-service/22.04.3/src -A '*.tar.xz' ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.