nixpkgs/pkgs/by-name/sp/spicetify-cli/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.2 KiB
Nix
Raw Normal View History

2022-09-03 23:09:27 +00:00
{ lib, buildGoModule, fetchFromGitHub, testers, spicetify-cli }:
2020-08-30 17:40:52 +00:00
buildGoModule rec {
pname = "spicetify-cli";
2024-04-16 05:45:01 +00:00
version = "2.36.5";
2020-08-30 17:40:52 +00:00
src = fetchFromGitHub {
2022-06-29 22:13:09 +00:00
owner = "spicetify";
repo = "spicetify-cli";
2020-08-30 17:40:52 +00:00
rev = "v${version}";
2024-04-16 05:45:01 +00:00
hash = "sha256-amalb1NNoA9KqeQtMtJZamLFNL3Wc/21ZVkr/Evhmik=";
2020-08-30 17:40:52 +00:00
};
2024-04-09 19:49:12 +00:00
vendorHash = "sha256-UPrLXzAdvCOmLm1tekzKyulQ4+2BSyPUF1k66GwKS88=";
2020-08-30 17:40:52 +00:00
2022-09-03 23:09:27 +00:00
ldflags = [
"-s -w"
"-X 'main.version=${version}'"
];
2020-08-30 17:40:52 +00:00
# used at runtime, but not installed by default
postInstall = ''
cp -r ${src}/jsHelper $out/bin/jsHelper
cp -r ${src}/CustomApps $out/bin/CustomApps
cp -r ${src}/Extensions $out/bin/Extensions
cp -r ${src}/Themes $out/bin/Themes
2020-08-30 17:40:52 +00:00
'';
doInstallCheck = true;
installCheckPhase = ''
$out/bin/spicetify-cli --help > /dev/null
'';
2022-09-03 23:09:27 +00:00
passthru.tests.version = testers.testVersion {
package = spicetify-cli;
command = "spicetify-cli -v";
};
2020-08-30 17:40:52 +00:00
meta = with lib; {
description = "Command-line tool to customize Spotify client";
2022-06-29 22:13:09 +00:00
homepage = "https://github.com/spicetify/spicetify-cli/";
2020-08-30 17:40:52 +00:00
license = licenses.gpl3Plus;
2023-06-23 10:56:52 +00:00
maintainers = with maintainers; [ jonringer mdarocha ];
2023-08-04 19:10:05 +00:00
mainProgram = "spicetify-cli";
2020-08-30 17:40:52 +00:00
};
}