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.

43 lines
1 KiB
Nix
Raw Normal View History

2022-09-04 01:09:27 +02:00
{ lib, buildGoModule, fetchFromGitHub, testers, spicetify-cli }:
2020-08-30 19:40:52 +02:00
buildGoModule rec {
pname = "spicetify-cli";
2022-11-27 06:38:51 +01:00
version = "2.14.3";
2020-08-30 19:40:52 +02:00
src = fetchFromGitHub {
2022-06-30 00:13:09 +02:00
owner = "spicetify";
2020-08-30 19:40:52 +02:00
repo = pname;
rev = "v${version}";
2022-11-27 06:38:51 +01:00
sha256 = "sha256-7bCl8VfkMhoTBnr+O+oBYQeSV2sRwlP/qUkNkYerZdU=";
2020-08-30 19:40:52 +02:00
};
2022-10-28 01:18:41 +02:00
vendorSha256 = "sha256-E2Q+mXojMb8E0zSnaCOl9xp5QLeYcuTXjhcp3Hc8gH4=";
2020-08-30 19:40:52 +02:00
2022-09-04 01:09:27 +02:00
ldflags = [
"-s -w"
"-X 'main.version=${version}'"
];
2020-08-30 19:40:52 +02: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-04 01:09:27 +02:00
passthru.tests.version = testers.testVersion {
package = spicetify-cli;
command = "spicetify-cli -v";
};
2020-08-30 19:40:52 +02:00
meta = with lib; {
description = "Command-line tool to customize Spotify client";
2022-06-30 00:13:09 +02:00
homepage = "https://github.com/spicetify/spicetify-cli/";
2020-08-30 19:40:52 +02:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jonringer ];
};
}