git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #24916 from sigma/pr/ghq

ghq: init at 0.7.4

commit78e1843730658b14d8b58a7c8b9c723dfb345972 authorJörg Thalheim <Mic92@users.noreply.github.com> dateSat 15 Apr 2017, 09:45 (10 years ago) parent4a0be7804b3094
4 files changed+75
pkgs/applications/version-management/git-and-tools/default.nix+2 pkgs/applications/version-management/git-and-tools/ghq/default.nix+33 pkgs/applications/version-management/git-and-tools/ghq/deps.nix+38 pkgs/top-level/all-packages.nix+2
pkgs/applications/version-management/git-and-tools/default.nix+2
@@ -30,6 +30,8 @@ rec {
3030
3131 diff-so-fancy = callPackage ./diff-so-fancy { };
3232
33+ ghq = callPackage ./ghq { };
34+
3335 git = appendToName "minimal" gitBase;
3436
3537 # The full-featured Git.
pkgs/applications/version-management/git-and-tools/ghq/default.nixnew file+33
@@ -0,0 +1,33 @@
1+{ stdenv, buildGoPackage, fetchFromGitHub }:
2+
3+buildGoPackage rec {
4+ name = "ghq-${version}";
5+ version = "0.7.4";
6+
7+ goPackagePath = "github.com/motemen/ghq";
8+
9+ src = fetchFromGitHub {
10+ owner = "motemen";
11+ repo = "ghq";
12+ rev = "v${version}";
13+ sha256 = "0x2agr7why8mcjhq2j8kh8d0gbwx2333zgf1ribc9fn14ryas1j2";
14+ };
15+
16+ goDeps = ./deps.nix;
17+
18+ buildFlagsArray = ''
19+ -ldflags=
20+ -X=main.Version=${version}
21+ '';
22+
23+ postInstall = ''
24+ install -m 444 -D ${src}/zsh/_ghq $bin/share/zsh/site-functions/_ghq
25+ '';
26+
27+ meta = {
28+ description = "Remote repository management made easy";
29+ homepage = https://github.com/motemen/ghq;
30+ maintainers = with stdenv.lib.maintainers; [ sigma ];
31+ license = stdenv.lib.licenses.mit;
32+ };
33+}
pkgs/applications/version-management/git-and-tools/ghq/deps.nixnew file+38
@@ -0,0 +1,38 @@
1+[
2+ {
3+ goPackagePath = "github.com/codegangsta/cli";
4+ fetch = {
5+ type = "git";
6+ url = "https://github.com/codegangsta/cli";
7+ rev = "0bdeddeeb0f650497d603c4ad7b20cfe685682f6";
8+ sha256 = "1ny63c7bfwfrsp7vfkvb4i0xhq4v7yxqnwxa52y4xlfxs4r6v6fg";
9+ };
10+ }
11+ {
12+ goPackagePath = "github.com/mitchellh/go-homedir";
13+ fetch = {
14+ type = "git";
15+ url = "https://github.com/mitchellh/go-homedir";
16+ rev = "b8bc1bf767474819792c23f32d8286a45736f1c6";
17+ sha256 = "13ry4lylalkh4g2vny9cxwvryslzyzwp9r92z0b10idhdq3wad1q";
18+ };
19+ }
20+ {
21+ goPackagePath = "github.com/motemen/go-colorine";
22+ fetch = {
23+ type = "git";
24+ url = "https://github.com/motemen/go-colorine";
25+ rev = "49ff36b8fa42db28092361cd20dcefd0b03b1472";
26+ sha256 = "1rfi5gggf2sxb52whgxfl37p22r2xp27rndixbiicw6swllmml9l";
27+ };
28+ }
29+ {
30+ goPackagePath = "github.com/daviddengcn/go-colortext";
31+ fetch = {
32+ type = "git";
33+ url = "https://github.com/daviddengcn/go-colortext";
34+ rev = "805cee6e0d43c72ba1d4e3275965ff41e0da068a";
35+ sha256 = "0z0ggqnprqchnd8zyrz99w53kr4sgv372lyx12z5nsh9q342pmyf";
36+ };
37+ }
38+]
pkgs/top-level/all-packages.nix+2
@@ -13836,6 +13836,8 @@ with pkgs;
1383613836
1383713837 getxbook = callPackage ../applications/misc/getxbook {};
1383813838
13839+ ghq = gitAndTools.ghq;
13840+
1383913841 gimp_2_8 = callPackage ../applications/graphics/gimp/2.8.nix {
1384013842 inherit (gnome2) libart_lgpl;
1384113843 webkit = null;