depot/third_party/nixpkgs/pkgs/by-name/gh/gh-eco/package.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

45 lines
1,013 B
Nix

{
lib,
fetchFromGitHub,
buildGoModule,
fetchpatch,
}:
let
version = "0.1.3";
in
buildGoModule {
pname = "gh-eco";
inherit version;
src = fetchFromGitHub {
owner = "jrnxf";
repo = "gh-eco";
rev = "refs/tags/v${version}";
hash = "sha256-TE1AymNlxjUtkBnBO/VBjYaqLuRyxL75s6sMidKUXTE=";
};
patches = [
# Fix package breaking on runtime by updating deps
(fetchpatch {
name = "update-deps.patch";
url = "https://github.com/jrnxf/gh-eco/commit/d45b1e7de8cbcb692def0e94111262cdeff2835d.patch";
hash = "sha256-vW5YX6C552dVYjBkYVoDbzT2PP8CaZzxh5g1TKHjrbU=";
})
];
vendorHash = "sha256-O3FQ+Z3KVYgTafwVXUhrGRuOAWlWlOhtVegKVoZBnDE=";
ldflags = [
"-s"
"-w"
"-X main.Version=${version}"
];
meta = {
homepage = "https://github.com/coloradocolby/gh-eco";
description = "gh extension to explore the ecosystem";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ helium ];
mainProgram = "gh-eco";
};
}