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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
747 B
Nix
Raw Normal View History

2020-11-08 04:20:00 +00:00
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "go-chromecast";
2022-03-12 09:29:19 +00:00
version = "0.2.12";
2020-11-08 04:20:00 +00:00
src = fetchFromGitHub {
owner = "vishen";
repo = pname;
rev = "v${version}";
2022-03-12 09:29:19 +00:00
sha256 = "sha256-h8qWwMaEhXnj6ZSrKAXBVbrMR0je41EoOtFeN9XlCuk=";
2020-11-08 04:20:00 +00:00
};
2022-03-12 09:29:19 +00:00
vendorSha256 = "sha256-PpMLHuJR6irp+QHhzguwGtBy30HM7DR0tNGiwB07M5E=";
2020-11-08 04:20:00 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X main.version=${version}" "-X main.commit=${src.rev}" "-X main.date=unknown" ];
2020-11-08 04:20:00 +00:00
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 ];
2022-10-24 23:25:33 +00:00
broken = true; # build fails with go > 1.17
2020-11-08 04:20:00 +00:00
};
}