Merge pull request #314534 from isabelroses/fix/gh-eco
gh-eco: added fetchpatch; modernize
This commit is contained in:
commit
1febaefa05
45
pkgs/by-name/gh/gh-eco/package.nix
Normal file
45
pkgs/by-name/gh/gh-eco/package.nix
Normal file
@ -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";
|
||||
};
|
||||
}
|
@ -1,33 +0,0 @@
|
||||
{ lib
|
||||
, fetchFromGitHub
|
||||
, buildGoModule
|
||||
}:
|
||||
|
||||
buildGoModule rec {
|
||||
pname = "gh-eco";
|
||||
version = "0.1.3";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "coloradocolby";
|
||||
repo = "gh-eco";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-TE1AymNlxjUtkBnBO/VBjYaqLuRyxL75s6sMidKUXTE=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-K85fYV1uP/qSw8GPoG1u6UQo94vQOUo4cd9Ro+UApQ0=";
|
||||
|
||||
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 ];
|
||||
mainProgram = "gh-eco";
|
||||
};
|
||||
}
|
||||
|
@ -1821,8 +1821,6 @@ with pkgs;
|
||||
|
||||
gh-dash = callPackage ../tools/misc/gh-dash { };
|
||||
|
||||
gh-eco = callPackage ../tools/misc/gh-eco { };
|
||||
|
||||
gh-markdown-preview = callPackage ../tools/misc/gh-markdown-preview { };
|
||||
|
||||
ghostie = callPackage ../tools/misc/ghostie { };
|
||||
|
Loading…
Reference in New Issue
Block a user