mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 21:35:37 +00:00
add gh-collaborators extension
This commit is contained in:
parent
9d2a423011
commit
3042a0ac19
@ -233,6 +233,7 @@
|
|||||||
(import ./overlays/betterlockscreen.nix)
|
(import ./overlays/betterlockscreen.nix)
|
||||||
(import ./overlays/age.nix inputs)
|
(import ./overlays/age.nix inputs)
|
||||||
(import ./overlays/proton-ge.nix inputs)
|
(import ./overlays/proton-ge.nix inputs)
|
||||||
|
(import ./overlays/gh-collaborators.nix)
|
||||||
];
|
];
|
||||||
|
|
||||||
# System types to support.
|
# System types to support.
|
||||||
|
@ -7,6 +7,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
gitCredentialHelper.enable = true;
|
gitCredentialHelper.enable = true;
|
||||||
settings.git_protocol = "https";
|
settings.git_protocol = "https";
|
||||||
|
extensions = [ pkgs.gh-collaborators ];
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.fish =
|
programs.fish =
|
||||||
@ -14,7 +15,7 @@
|
|||||||
shellAbbrs = {
|
shellAbbrs = {
|
||||||
ghr = "gh repo view -w";
|
ghr = "gh repo view -w";
|
||||||
gha =
|
gha =
|
||||||
"gh run list | head -1 | awk '{ print $(NF-2) }' | xargs gh run view";
|
"gh run list | head -1 | awk '{ print \\$\\(NF-2\\) }' | xargs gh run view";
|
||||||
grw = "gh run watch";
|
grw = "gh run watch";
|
||||||
grf = "gh run view --log-failed";
|
grf = "gh run view --log-failed";
|
||||||
grl = "gh run view --log";
|
grl = "gh run view --log";
|
||||||
|
25
overlays/gh-collaborators.nix
Normal file
25
overlays/gh-collaborators.nix
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
_final: prev: {
|
||||||
|
|
||||||
|
gh-collaborators = prev.buildGo120Module rec {
|
||||||
|
pname = "gh-collaborators";
|
||||||
|
version = "2.0.2";
|
||||||
|
|
||||||
|
src = prev.fetchFromGitHub {
|
||||||
|
owner = "katiem0";
|
||||||
|
repo = "gh-collaborators";
|
||||||
|
rev = version;
|
||||||
|
sha256 = "sha256-sz5LHkwZ28aA2vbMnFMzAlyGiJBDZm7jwDQYxgKBPLU=";
|
||||||
|
};
|
||||||
|
|
||||||
|
vendorHash = "sha256-rsRDOgJBa8T6+bC/APcmuRmg6ykbIp9pwRnJ9rrfHEs=";
|
||||||
|
|
||||||
|
ldflags = [
|
||||||
|
"-s"
|
||||||
|
"-w"
|
||||||
|
"-X github.com/katiem0/gh-collaborators/cmd.Version=${version}"
|
||||||
|
# "-X main.Version=${version}"
|
||||||
|
];
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user