summary refs log tree commit diff
path: root/pkgs/applications/version-management/git-and-tools/ghq
diff options
context:
space:
mode:
authorYann Hodique <hodiquey@vmware.com>2017-04-14 19:57:38 -0700
committerYann Hodique <hodiquey@vmware.com>2017-04-14 20:59:45 -0700
commit04b30942bf859d29fd3c73368970b51cf9e3bcd0 (patch)
tree596999f922739387c87ff5fff637dc6e017cfb46 /pkgs/applications/version-management/git-and-tools/ghq
parentcdbcaa56b6dd06d2d7f215ccbcab966a9a902773 (diff)
downloadnixpkgs-04b30942bf859d29fd3c73368970b51cf9e3bcd0.tar
nixpkgs-04b30942bf859d29fd3c73368970b51cf9e3bcd0.tar.gz
nixpkgs-04b30942bf859d29fd3c73368970b51cf9e3bcd0.tar.bz2
nixpkgs-04b30942bf859d29fd3c73368970b51cf9e3bcd0.tar.lz
nixpkgs-04b30942bf859d29fd3c73368970b51cf9e3bcd0.tar.xz
nixpkgs-04b30942bf859d29fd3c73368970b51cf9e3bcd0.tar.zst
nixpkgs-04b30942bf859d29fd3c73368970b51cf9e3bcd0.zip
ghq: init at 0.7.4
Diffstat (limited to 'pkgs/applications/version-management/git-and-tools/ghq')
-rw-r--r--pkgs/applications/version-management/git-and-tools/ghq/default.nix33
-rw-r--r--pkgs/applications/version-management/git-and-tools/ghq/deps.nix38
2 files changed, 71 insertions, 0 deletions
diff --git a/pkgs/applications/version-management/git-and-tools/ghq/default.nix b/pkgs/applications/version-management/git-and-tools/ghq/default.nix
new file mode 100644
index 00000000000..4ba86a2a086
--- /dev/null
+++ b/pkgs/applications/version-management/git-and-tools/ghq/default.nix
@@ -0,0 +1,33 @@
+{ stdenv, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  name = "ghq-${version}";
+  version = "0.7.4";
+
+  goPackagePath = "github.com/motemen/ghq";
+
+  src = fetchFromGitHub {
+    owner = "motemen";
+    repo = "ghq";
+    rev = "v${version}";
+    sha256 = "0x2agr7why8mcjhq2j8kh8d0gbwx2333zgf1ribc9fn14ryas1j2";
+  };
+
+  goDeps = ./deps.nix;
+
+  buildFlagsArray = ''
+    -ldflags=
+      -X=main.Version=${version}
+  '';
+
+  postInstall = ''
+    install -m 444 -D ${src}/zsh/_ghq $bin/share/zsh/site-functions/_ghq
+  '';
+
+  meta = {
+    description = "Remote repository management made easy";
+    homepage = https://github.com/motemen/ghq;
+    maintainers = with stdenv.lib.maintainers; [ sigma ];
+    license = stdenv.lib.licenses.mit;
+  };
+}
diff --git a/pkgs/applications/version-management/git-and-tools/ghq/deps.nix b/pkgs/applications/version-management/git-and-tools/ghq/deps.nix
new file mode 100644
index 00000000000..ec54803a6e7
--- /dev/null
+++ b/pkgs/applications/version-management/git-and-tools/ghq/deps.nix
@@ -0,0 +1,38 @@
+[
+  {
+    goPackagePath = "github.com/codegangsta/cli";
+    fetch = {
+      type = "git";
+      url = "https://github.com/codegangsta/cli";
+      rev = "0bdeddeeb0f650497d603c4ad7b20cfe685682f6";
+      sha256 = "1ny63c7bfwfrsp7vfkvb4i0xhq4v7yxqnwxa52y4xlfxs4r6v6fg";
+    };
+  }
+  {
+    goPackagePath = "github.com/mitchellh/go-homedir";
+    fetch = {
+      type = "git";
+      url = "https://github.com/mitchellh/go-homedir";
+      rev = "b8bc1bf767474819792c23f32d8286a45736f1c6";
+      sha256 = "13ry4lylalkh4g2vny9cxwvryslzyzwp9r92z0b10idhdq3wad1q";
+    };
+  }
+  {
+    goPackagePath = "github.com/motemen/go-colorine";
+    fetch = {
+      type = "git";
+      url = "https://github.com/motemen/go-colorine";
+      rev = "49ff36b8fa42db28092361cd20dcefd0b03b1472";
+      sha256 = "1rfi5gggf2sxb52whgxfl37p22r2xp27rndixbiicw6swllmml9l";
+    };
+  }
+  {
+    goPackagePath = "github.com/daviddengcn/go-colortext";
+    fetch = {
+      type = "git";
+      url = "https://github.com/daviddengcn/go-colortext";
+      rev = "805cee6e0d43c72ba1d4e3275965ff41e0da068a";
+      sha256 = "0z0ggqnprqchnd8zyrz99w53kr4sgv372lyx12z5nsh9q342pmyf";
+    };
+  }
+]