depot/third_party/nixpkgs/pkgs/applications/audio/sptlrx/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

33 lines
940 B
Nix

{ lib, buildGoModule, fetchFromGitHub, nix-update-script, testers, sptlrx }:
buildGoModule rec {
pname = "sptlrx";
version = "1.0.0";
src = fetchFromGitHub {
owner = "raitonoberu";
repo = pname;
rev = "v${version}";
sha256 = "sha256-UDxmUc902A6+DC254wyvjSzNs95K7QIuDW+24o8VCCc=";
};
vendorSha256 = "sha256-t9Mkszzuw7YtBnADsZDjwN2AA6MuQH4+zzDiHe302A4=";
ldflags = [ "-s" "-w" ];
passthru = {
updateScript = nix-update-script { attrPath = pname; };
tests.version = testers.testVersion {
package = sptlrx;
version = "v${version}"; # needed because testVersion uses grep -Fw
};
};
meta = with lib; {
description = "Spotify lyrics in your terminal";
homepage = "https://github.com/raitonoberu/sptlrx";
changelog = "https://github.com/raitonoberu/sptlrx/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ MoritzBoehme ];
};
}