Merge pull request #189660 from superherointj/package-spicetify-cli-2.13.0

authored by Sandro and committed by GitHub 06e5bce8 4da99f73

+13 -3
+13 -3
pkgs/applications/misc/spicetify-cli/default.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub }: 2 3 buildGoModule rec { 4 pname = "spicetify-cli"; 5 - version = "2.11.1"; 6 7 src = fetchFromGitHub { 8 owner = "spicetify"; 9 repo = pname; 10 rev = "v${version}"; 11 - sha256 = "sha256-NX3qbnnbV2mLxBQCjfl7xNicyir6usi2uYGw6Yij/ho="; 12 }; 13 14 vendorSha256 = "sha256-zYIbtcDM9iYSRHagvI9D284Y7w0ZxG4Ba1p4jqmQyng="; 15 16 # used at runtime, but not installed by default 17 postInstall = '' 18 cp -r ${src}/jsHelper $out/bin/jsHelper ··· 22 installCheckPhase = '' 23 $out/bin/spicetify-cli --help > /dev/null 24 ''; 25 26 meta = with lib; { 27 description = "Command-line tool to customize Spotify client";
··· 1 + { lib, buildGoModule, fetchFromGitHub, testers, spicetify-cli }: 2 3 buildGoModule rec { 4 pname = "spicetify-cli"; 5 + version = "2.13.0"; 6 7 src = fetchFromGitHub { 8 owner = "spicetify"; 9 repo = pname; 10 rev = "v${version}"; 11 + sha256 = "sha256-XsYZoJDSaAp+oMTy5YWM9aM+TCNkqF5WXBhU/axcEVk="; 12 }; 13 14 vendorSha256 = "sha256-zYIbtcDM9iYSRHagvI9D284Y7w0ZxG4Ba1p4jqmQyng="; 15 16 + ldflags = [ 17 + "-s -w" 18 + "-X 'main.version=${version}'" 19 + ]; 20 + 21 # used at runtime, but not installed by default 22 postInstall = '' 23 cp -r ${src}/jsHelper $out/bin/jsHelper ··· 27 installCheckPhase = '' 28 $out/bin/spicetify-cli --help > /dev/null 29 ''; 30 + 31 + passthru.tests.version = testers.testVersion { 32 + package = spicetify-cli; 33 + command = "spicetify-cli -v"; 34 + }; 35 36 meta = with lib; { 37 description = "Command-line tool to customize Spotify client";