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
812 B
Nix
Raw Normal View History

2020-08-30 17:40:52 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "spicetify-cli";
2022-03-24 20:17:05 +00:00
version = "2.9.4";
2020-08-30 17:40:52 +00:00
src = fetchFromGitHub {
owner = "khanhas";
repo = pname;
rev = "v${version}";
2022-03-24 20:17:05 +00:00
sha256 = "sha256-dHkbjmb9qlMO+pYUmdnoztkrMqPW6GfceAUxgnRmlDA=";
2020-08-30 17:40:52 +00:00
};
2022-03-24 20:17:05 +00:00
vendorSha256 = "sha256-zYIbtcDM9iYSRHagvI9D284Y7w0ZxG4Ba1p4jqmQyng=";
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
'';
meta = with lib; {
description = "Command-line tool to customize Spotify client";
homepage = "https://github.com/khanhas/spicetify-cli/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ jonringer ];
};
}