about summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorVincent Demeester <vincent@sbr.pm>2018-01-04 19:41:43 +0100
committerVincent Demeester <vincent@sbr.pm>2018-02-14 07:46:32 +0100
commit502e32cfeb730279bad8c8e77e98bdf28db329f4 (patch)
tree69634dae1cdf8ba513f17fea70194fb1d97d0b7a /pkgs/development/tools
parent6d442efe9966661c60f22a43397e7b66f1acde84 (diff)
downloadnixlib-502e32cfeb730279bad8c8e77e98bdf28db329f4.tar
nixlib-502e32cfeb730279bad8c8e77e98bdf28db329f4.tar.gz
nixlib-502e32cfeb730279bad8c8e77e98bdf28db329f4.tar.bz2
nixlib-502e32cfeb730279bad8c8e77e98bdf28db329f4.tar.lz
nixlib-502e32cfeb730279bad8c8e77e98bdf28db329f4.tar.xz
nixlib-502e32cfeb730279bad8c8e77e98bdf28db329f4.tar.zst
nixlib-502e32cfeb730279bad8c8e77e98bdf28db329f4.zip
gotests: init at 1.5.2
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/gotests/default.nix25
-rw-r--r--pkgs/development/tools/gotests/deps.nix11
2 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/tools/gotests/default.nix b/pkgs/development/tools/gotests/default.nix
new file mode 100644
index 000000000000..ccdab780e6cf
--- /dev/null
+++ b/pkgs/development/tools/gotests/default.nix
@@ -0,0 +1,25 @@
+{ stdenv, lib, buildGoPackage, fetchFromGitHub }:
+
+buildGoPackage rec {
+  name = "gotests-${version}";
+  version = "1.5.2";
+  rev = "v${version}";
+
+  goPackagePath = "github.com/cweill/gotests";
+  excludedPackages = "testdata";
+  goDeps = ./deps.nix;
+
+  src = fetchFromGitHub {
+    inherit rev;
+    owner = "cweill";
+    repo = "gotests";
+    sha256 = "0ff2jvpc1xb5jr6dv9izlpfavxaivzirqmdmicpznrqjz0d56pri";
+  };
+
+  meta = {
+    description = "Generate Go tests from your source code.";
+    homepage = https://github.com/cweill/gotests;
+    maintainers = with stdenv.lib.maintainers; [ vdemeester ];
+    license = stdenv.lib.licenses.asl20;
+  };
+}
diff --git a/pkgs/development/tools/gotests/deps.nix b/pkgs/development/tools/gotests/deps.nix
new file mode 100644
index 000000000000..6a333b58bec6
--- /dev/null
+++ b/pkgs/development/tools/gotests/deps.nix
@@ -0,0 +1,11 @@
+[
+  {
+    goPackagePath = "golang.org/x/tools";
+    fetch = {
+      type = "git";
+      url = "https://github.com/golang/tools";
+      rev = "96b5a5404f303f074e6117d832a9873c439508f0";
+      sha256 = "1h6r9xyp1v3w2x8d108vzghn65l6ia2h895irypmrwymfcp30y42";
+    };
+  }
+]