Merge pull request #309570 from uncenter/refactor/spicetify-cli-rename

spicetify-cli: rename bin
This commit is contained in:
Aleksana 2024-05-25 13:19:06 +08:00 committed by GitHub
commit cf6daa4ff8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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";
};
}