diff options
author | isabel <isabel@isabelroses.com> | 2024-05-25 09:18:45 +0100 |
---|---|---|
committer | isabel <isabel@isabelroses.com> | 2024-05-27 10:44:04 +0100 |
commit | 072363fc3e404a3760f8a7e925b063a58f349046 (patch) | |
tree | f68889afa43180b6555970656d8956d07c8a4d3b /pkgs/by-name/gh | |
parent | 40dcdd6fefbe602a93d7b587e142ef11c1f65dbc (diff) |
gh-eco: added fetchpatch; modernize
Diffstat (limited to 'pkgs/by-name/gh')
-rw-r--r-- | pkgs/by-name/gh/gh-eco/package.nix | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/by-name/gh/gh-eco/package.nix b/pkgs/by-name/gh/gh-eco/package.nix new file mode 100644 index 0000000000000..002362001848a --- /dev/null +++ b/pkgs/by-name/gh/gh-eco/package.nix @@ -0,0 +1,45 @@ +{ + 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"; + }; +} |