From b3cd2a1df25a1ffdcde6fe4c143e9a2ac0d7e95e Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 12 Jul 2024 17:56:02 -0400 Subject: [PATCH] spotifyd: modernize Adds updateScript to help in maintenance https://github.com/NixOS/nixpkgs/issues/208242 --- pkgs/by-name/sp/spotifyd/package.nix | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/sp/spotifyd/package.nix b/pkgs/by-name/sp/spotifyd/package.nix index 37e1bfb339fb..29a739f177cb 100644 --- a/pkgs/by-name/sp/spotifyd/package.nix +++ b/pkgs/by-name/sp/spotifyd/package.nix @@ -15,6 +15,7 @@ withMpris ? stdenv.isLinux, withKeyring ? false, dbus, + nix-update-script, }: rustPackages.rustPlatform.buildRustPackage rec { @@ -49,16 +50,20 @@ rustPackages.rustPlatform.buildRustPackage rec { doCheck = false; - meta = with lib; { + passthru = { + updateScript = nix-update-script { extraArgs = [ "--version=branch" ]; }; + }; + + meta = { description = "Open source Spotify client running as a UNIX daemon"; homepage = "https://spotifyd.rs/"; changelog = "https://github.com/Spotifyd/spotifyd/blob/${src.rev}/CHANGELOG.md"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ + license = lib.licenses.gpl3Plus; + maintainers = with lib.maintainers; [ anderslundstedt Br1ght0ne ]; - platforms = platforms.unix; + platforms = lib.platforms.unix; mainProgram = "spotifyd"; }; }