1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "spicetify-cli";
5 version = "2.7.1";
6
7 src = fetchFromGitHub {
8 owner = "khanhas";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-fWh345J2fD9uoGrDiVZyEBiOlMy8giEGKHGMujT0mjo=";
12 };
13
14 vendorSha256 = "sha256-g0RYIVIq4oMXdRZDBDnVYg7ombN5WEo/6O9hChQvOYs=";
15
16 # used at runtime, but not installed by default
17 postInstall = ''
18 cp -r ${src}/jsHelper $out/bin/jsHelper
19 '';
20
21 doInstallCheck = true;
22 installCheckPhase = ''
23 $out/bin/spicetify-cli --help > /dev/null
24 '';
25
26 meta = with lib; {
27 description = "Command-line tool to customize Spotify client";
28 homepage = "https://github.com/khanhas/spicetify-cli/";
29 license = licenses.gpl3Plus;
30 maintainers = with maintainers; [ jonringer ];
31 };
32}