diff options
author | Jonathan Ringer <jonringer117@gmail.com> | 2020-08-30 10:40:52 -0700 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2020-11-10 14:48:34 -0800 |
commit | b2e857a5fe704a41664660cd9992bbd5e8fb182c (patch) | |
tree | 8a41f4a87f26facf385ba5a18460bb25ba84c9a8 /pkgs/applications/misc/spicetify-cli | |
parent | d2000fb76131ed21d02194d3cc8b8d62197dff92 (diff) |
spicetify-cli: init at 1.1.0
Diffstat (limited to 'pkgs/applications/misc/spicetify-cli')
-rw-r--r-- | pkgs/applications/misc/spicetify-cli/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/applications/misc/spicetify-cli/default.nix b/pkgs/applications/misc/spicetify-cli/default.nix new file mode 100644 index 0000000000000..a042cc53c0553 --- /dev/null +++ b/pkgs/applications/misc/spicetify-cli/default.nix @@ -0,0 +1,32 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "spicetify-cli"; + version = "1.1.0"; + + src = fetchFromGitHub { + owner = "khanhas"; + repo = pname; + rev = "v${version}"; + sha256 = "08rnwj7ggh114n3mhhm8hb8fm1njgb4j6vba3hynp8x1c2ngidff"; + }; + + vendorSha256 = "0k06c3jw5z8rw8nk4qf794kyfipylmz6x6l126a2snvwi0lmc601"; + + # 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 ]; + }; +} |