From 35d05033a839943cf22de44b341278bbde4de2e7 Mon Sep 17 00:00:00 2001 From: uncenter <47499684+uncenter@users.noreply.github.com> Date: Sun, 12 May 2024 13:04:04 -0400 Subject: spicetify-cli: rename bin --- pkgs/by-name/sp/spicetify-cli/package.nix | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/pkgs/by-name/sp/spicetify-cli/package.nix b/pkgs/by-name/sp/spicetify-cli/package.nix index 13d1b8aceedbc..cd53385ca60ad 100644 --- a/pkgs/by-name/sp/spicetify-cli/package.nix +++ b/pkgs/by-name/sp/spicetify-cli/package.nix @@ -1,4 +1,10 @@ -{ lib, buildGoModule, fetchFromGitHub, testers, spicetify-cli }: +{ + lib, + buildGoModule, + fetchFromGitHub, + testers, + spicetify-cli, +}: buildGoModule rec { pname = "spicetify-cli"; @@ -20,6 +26,8 @@ buildGoModule rec { # used at runtime, but not installed by default postInstall = '' + mv $out/bin/spicetify-cli $out/bin/spicetify + ln -s $out/bin/spicetify $out/bin/spicetify-cli cp -r ${src}/jsHelper $out/bin/jsHelper cp -r ${src}/CustomApps $out/bin/CustomApps cp -r ${src}/Extensions $out/bin/Extensions @@ -28,19 +36,19 @@ buildGoModule rec { doInstallCheck = true; installCheckPhase = '' - $out/bin/spicetify-cli --help > /dev/null + $out/bin/spicetify --help > /dev/null ''; - passthru.tests.version = testers.testVersion { - package = spicetify-cli; - command = "spicetify-cli -v"; - }; + passthru.tests.version = testers.testVersion { package = spicetify-cli; }; meta = with lib; { description = "Command-line tool to customize Spotify client"; homepage = "https://github.com/spicetify/spicetify-cli/"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ jonringer mdarocha ]; - mainProgram = "spicetify-cli"; + maintainers = with maintainers; [ + jonringer + mdarocha + ]; + mainProgram = "spicetify"; }; } -- cgit 1.4.1