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.

33 lines
817 B
Nix
Raw Normal View History

2020-08-30 19:40:52 +02:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "spicetify-cli";
2022-07-22 19:56:22 +02:00
version = "2.11.1";
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-07-22 19:56:22 +02:00
sha256 = "sha256-NX3qbnnbV2mLxBQCjfl7xNicyir6usi2uYGw6Yij/ho=";
2020-08-30 19:40:52 +02:00
};
2022-03-24 21:17:05 +01:00
vendorSha256 = "sha256-zYIbtcDM9iYSRHagvI9D284Y7w0ZxG4Ba1p4jqmQyng=";
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
'';
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 ];
};
}