mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
a1102f6800
Co-authored-by: Bobby Rong <rjl931189261@126.com>
33 lines
647 B
Nix
33 lines
647 B
Nix
{ lib
|
|
, fetchFromGitHub
|
|
, buildGoModule
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "gh-eco";
|
|
version = "0.1.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "coloradocolby";
|
|
repo = "gh-eco";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-rJG1k8lOyXQSP3FgyyHZvVrQkn2yEtAcgg9CpbPvCwY=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-Qx/QGIurjKGFcIdCot1MFPatbGHfum48JOoHlvqA64c=";
|
|
|
|
ldflags = [
|
|
"-s"
|
|
"-w"
|
|
"-X main.Version=${version}"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/coloradocolby/gh-eco";
|
|
description = "gh extension to explore the ecosystem";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ helium ];
|
|
};
|
|
}
|
|
|