mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-10 22:30:59 +00:00
waybar-lyric: 0.16.0 -> 0.17.0
This commit is contained in:
@@ -1,24 +1,27 @@
|
||||
{
|
||||
stdenv,
|
||||
lib,
|
||||
ffmpeg,
|
||||
makeWrapper,
|
||||
buildGoModule,
|
||||
fetchFromGitHub,
|
||||
versionCheckHook,
|
||||
nix-update-script,
|
||||
installShellFiles,
|
||||
withEmbeddedLyric ? false,
|
||||
}:
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "waybar-lyric";
|
||||
version = "0.16.0";
|
||||
version = "0.17.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "Nadim147c";
|
||||
repo = "waybar-lyric";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-1kUAOR7p27pLMH7zlbj+tTlIh0f8JQuWhzQVWvOyKoo=";
|
||||
hash = "sha256-5tMRAq37CZQYemXfJwmj9cj1gR5i9Zii9fqTPDCw45A=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-pzHNa/55n84VSFaWmgOtwWmmDLoNE6o8mgpFCz7r8FQ=";
|
||||
vendorHash = "sha256-zVyUxpAqsWY3/dXlBhPX/o41UP5Afn38JauQsWUqLMk=";
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
@@ -26,13 +29,24 @@ buildGoModule (finalAttrs: {
|
||||
"-X main.Version=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd waybar-lyric \
|
||||
--bash <($out/bin/waybar-lyric _carapace bash) \
|
||||
--fish <($out/bin/waybar-lyric _carapace fish) \
|
||||
--zsh <($out/bin/waybar-lyric _carapace zsh)
|
||||
'';
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
propagatedBuildInputs = lib.optional withEmbeddedLyric ffmpeg;
|
||||
|
||||
postInstall =
|
||||
lib.optionalString withEmbeddedLyric ''
|
||||
wrapProgram $out/bin/waybar-lyric \
|
||||
--prefix PATH : ${lib.makeBinPath finalAttrs.propagatedBuildInputs}
|
||||
''
|
||||
+ lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
||||
installShellCompletion --cmd waybar-lyric \
|
||||
--bash <($out/bin/waybar-lyric _carapace bash) \
|
||||
--fish <($out/bin/waybar-lyric _carapace fish) \
|
||||
--zsh <($out/bin/waybar-lyric _carapace zsh)
|
||||
'';
|
||||
|
||||
doInstallCheck = true;
|
||||
nativeInstallCheckInputs = [ versionCheckHook ];
|
||||
|
||||
Reference in New Issue
Block a user