spicetify-cli: rename bin
This commit is contained in:
parent
48705e5f4d
commit
35d05033a8
@ -1,4 +1,10 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, testers, spicetify-cli }:
|
{
|
||||||
|
lib,
|
||||||
|
buildGoModule,
|
||||||
|
fetchFromGitHub,
|
||||||
|
testers,
|
||||||
|
spicetify-cli,
|
||||||
|
}:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "spicetify-cli";
|
pname = "spicetify-cli";
|
||||||
@ -20,6 +26,8 @@ buildGoModule rec {
|
|||||||
|
|
||||||
# used at runtime, but not installed by default
|
# used at runtime, but not installed by default
|
||||||
postInstall = ''
|
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}/jsHelper $out/bin/jsHelper
|
||||||
cp -r ${src}/CustomApps $out/bin/CustomApps
|
cp -r ${src}/CustomApps $out/bin/CustomApps
|
||||||
cp -r ${src}/Extensions $out/bin/Extensions
|
cp -r ${src}/Extensions $out/bin/Extensions
|
||||||
@ -28,19 +36,19 @@ buildGoModule rec {
|
|||||||
|
|
||||||
doInstallCheck = true;
|
doInstallCheck = true;
|
||||||
installCheckPhase = ''
|
installCheckPhase = ''
|
||||||
$out/bin/spicetify-cli --help > /dev/null
|
$out/bin/spicetify --help > /dev/null
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru.tests.version = testers.testVersion {
|
passthru.tests.version = testers.testVersion { package = spicetify-cli; };
|
||||||
package = spicetify-cli;
|
|
||||||
command = "spicetify-cli -v";
|
|
||||||
};
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Command-line tool to customize Spotify client";
|
description = "Command-line tool to customize Spotify client";
|
||||||
homepage = "https://github.com/spicetify/spicetify-cli/";
|
homepage = "https://github.com/spicetify/spicetify-cli/";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ jonringer mdarocha ];
|
maintainers = with maintainers; [
|
||||||
mainProgram = "spicetify-cli";
|
jonringer
|
||||||
|
mdarocha
|
||||||
|
];
|
||||||
|
mainProgram = "spicetify";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user