@@ -0,0 +1,24 @@
1+{ lib, buildGoModule, fetchFromGitHub }:
2+
3+buildGoModule rec {
4+ pname = "go-chromecast";
5+ version = "0.2.5";
6+
7+ src = fetchFromGitHub {
8+ owner = "vishen";
9+ repo = pname;
10+ rev = "v${version}";
11+ sha256 = "0y1zwy1bxnjz409vdhqwykvfjhrsyy4j503v3rjrrhkcca6vfbyg";
12+ };
13+
14+ vendorSha256 = "04mgm3afgczq0an6ys8bilxv1hgzfwvgjx21fyl82yxd573rsf5r";
15+
16+ buildFlagsArray = [ "-ldflags=-s -w -X main.version=${version} -X main.commit=${src.rev} -X main.date=unknown" ];
17+
18+ meta = with lib; {
19+ homepage = "https://github.com/vishen/go-chromecast";
20+ description = "CLI for Google Chromecast, Home devices and Cast Groups";
21+ license = licenses.asl20;
22+ maintainers = with maintainers; [ marsam ];
23+ };
24+}