nixpkgs/pkgs/applications/misc/spicetify-cli/default.nix

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

44 lines
1.1 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";
2023-08-09 22:11:35 +00:00
version = "2.22.2";
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}";
2023-08-09 22:11:35 +00:00
hash = "sha256-86ktRfBY7q83KGrc/JF1gIcIJxuScqIr27QPcl1U8vc=";
2020-08-30 17:40:52 +00:00
};
2023-08-09 22:11:35 +00:00
vendorHash = "sha256-+3PeugLSpybbjNSyFMWBGBX6QDaM41eH0ifPO39YfA0=";
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
'';
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
};
}