summary refs log tree commit diff
path: root/pkgs/development/tools/godep/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/tools/godep/default.nix')
-rw-r--r--pkgs/development/tools/godep/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/development/tools/godep/default.nix b/pkgs/development/tools/godep/default.nix
new file mode 100644
index 00000000000..2dd4ce35122
--- /dev/null
+++ b/pkgs/development/tools/godep/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, lib, go, fetchurl, fetchgit, fetchhg, fetchbzr, fetchFromGitHub }:
+
+stdenv.mkDerivation rec {
+  version = "ddd7fbf";
+  name = "godep-${version}";
+
+  src = import ./deps.nix {
+    inherit stdenv lib fetchgit fetchFromGitHub;
+  };
+
+  buildInputs = [ go ];
+
+  buildPhase = ''
+    export GOPATH=$src
+    go build -v -o godep github.com/tools/godep
+  '';
+
+  installPhase = ''
+    mkdir -p $out/bin
+    mv godep $out/bin
+  '';
+
+  meta = with stdenv.lib; {
+    description = "Ddependency tool for go";
+    homepage = https://github.com/tools/godep;
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ offline ];
+    platforms = platforms.unix;
+  };
+}