Skip to content

Commit

Permalink
add gh-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
BrianHicks committed Feb 4, 2020
1 parent 43a0457 commit c4888a2
Show file tree
Hide file tree
Showing 4 changed files with 695 additions and 0 deletions.
12 changes: 12 additions & 0 deletions nix/sources.json
Expand Up @@ -76,6 +76,18 @@
"url": "https://github.com/BrianHicks/nur-packages/archive/ddbd889941fabda48f2379a0cba7244973acf78e.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"gh-cli": {
"branch": "master",
"description": "the GitHub CLI",
"homepage": "",
"owner": "cli",
"repo": "cli",
"rev": "ae3e03373dc673c48bf48cdd030ef2489479bb69",
"sha256": "033y9bwdaj8735nmj22k8lrgkgimji7hyly9i4jyp11iaa7cgd7a",
"type": "tarball",
"url": "https://github.com/cli/cli/archive/ae3e03373dc673c48bf48cdd030ef2489479bb69.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"coc.nvim": {
"branch": "release",
"description": "Intellisense engine for vim8 & neovim, full language server protocol support as VSCode ",
Expand Down
14 changes: 14 additions & 0 deletions pkgs/gh-cli/default.nix
@@ -0,0 +1,14 @@
{ ... }:
let
sources = import ../../nix/sources.nix;
nixpkgs = import sources.nixpkgs { };
in with nixpkgs;
buildGoPackage rec {
name = "gh-cli-${version}";
version = sources.gh-cli.rev;

goPackagePath = "github.com/${sources.gh-cli.owner}/${sources.gh-cli.repo}";

src = sources.gh-cli;
goDeps = ./deps.nix;
}

0 comments on commit c4888a2

Please sign in to comment.