nixpkgs/pkgs/applications/video/go-chromecast/default.nix

25 lines
707 B
Nix
Raw Normal View History

2020-11-07 20:20:00 -08:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-chromecast";
2021-01-18 14:27:20 -08:00
version = "0.2.7";
2020-11-07 20:20:00 -08:00
src = fetchFromGitHub {
owner = "vishen";
repo = pname;
rev = "v${version}";
2021-01-18 14:27:20 -08:00
sha256 = "sha256-OCykgy49RZL2aAE0OeHxj8zkFnr32sIYjtoFMwESqLg=";
2020-11-07 20:20:00 -08:00
};
2021-01-18 14:27:20 -08:00
vendorSha256 = "sha256-idxElk4Sy7SE9G1OMRw8YH4o8orBa80qhBXPA+ar620=";
2020-11-07 20:20:00 -08:00
buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.commit=${src.rev} -X main.date=unknown" ];
meta = with lib; {
homepage = "https://github.com/vishen/go-chromecast";
description = "CLI for Google Chromecast, Home devices and Cast Groups";
license = licenses.asl20;
maintainers = with maintainers; [ marsam ];
};
}