summary refs log tree commit diff
path: root/pkgs/development/tools
diff options
context:
space:
mode:
authorWael M. Nasreddine <wael.nasreddine@gmail.com>2018-11-02 21:22:07 -0700
committerWael M. Nasreddine <wael.nasreddine@gmail.com>2018-11-02 22:04:43 -0700
commited31a46727b3fca8ed6a4ff5416fad9026cdc9b4 (patch)
tree1e02a5c8dbbded849b3cb978ae818e9501a0cd93 /pkgs/development/tools
parent1efe4d900593f0a34bbd2b32d34071d965fdfd06 (diff)
downloadnixlib-ed31a46727b3fca8ed6a4ff5416fad9026cdc9b4.tar
nixlib-ed31a46727b3fca8ed6a4ff5416fad9026cdc9b4.tar.gz
nixlib-ed31a46727b3fca8ed6a4ff5416fad9026cdc9b4.tar.bz2
nixlib-ed31a46727b3fca8ed6a4ff5416fad9026cdc9b4.tar.lz
nixlib-ed31a46727b3fca8ed6a4ff5416fad9026cdc9b4.tar.xz
nixlib-ed31a46727b3fca8ed6a4ff5416fad9026cdc9b4.tar.zst
nixlib-ed31a46727b3fca8ed6a4ff5416fad9026cdc9b4.zip
interfacer: init at unstable 2018-08-31
Diffstat (limited to 'pkgs/development/tools')
-rw-r--r--pkgs/development/tools/interfacer/default.nix31
-rw-r--r--pkgs/development/tools/interfacer/deps.nix29
2 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/development/tools/interfacer/default.nix b/pkgs/development/tools/interfacer/default.nix
new file mode 100644
index 000000000000..274ced0b37cd
--- /dev/null
+++ b/pkgs/development/tools/interfacer/default.nix
@@ -0,0 +1,31 @@
+{ buildGoPackage
+, lib
+, fetchFromGitHub
+}:
+
+buildGoPackage rec {
+  name = "interfacer-unstable-${version}";
+  version = "2018-08-31";
+  rev = "c20040233aedb03da82d460eca6130fcd91c629a";
+
+  goPackagePath = "mvdan.cc/interfacer";
+  excludedPackages = ''check/testdata'';
+
+  src = fetchFromGitHub {
+    inherit rev;
+
+    owner = "mvdan";
+    repo = "interfacer";
+    sha256 = "0cx4m74mvn200360pmsqxx4z0apk9fcknwwqh8r94zd3jfv4akq2";
+  };
+
+  goDeps = ./deps.nix;
+
+  meta = with lib; {
+    description = "A linter that suggests interface types.";
+    homepage = https://github.com/mvdan/interfacer;
+    license = licenses.bsd3;
+    maintainers = with maintainers; [ kalbasit ];
+    platforms = platforms.linux ++ platforms.darwin;
+  };
+}
diff --git a/pkgs/development/tools/interfacer/deps.nix b/pkgs/development/tools/interfacer/deps.nix
new file mode 100644
index 000000000000..6810950878be
--- /dev/null
+++ b/pkgs/development/tools/interfacer/deps.nix
@@ -0,0 +1,29 @@
+[
+  {
+    goPackagePath = "github.com/kisielk/gotool";
+    fetch = {
+      type = "git";
+      url = "https://github.com/kisielk/gotool";
+      rev = "80517062f582ea3340cd4baf70e86d539ae7d84d";
+      sha256 = "14af2pa0ssyp8bp2mvdw184s5wcysk6akil3wzxmr05wwy951iwn";
+    };
+  }
+  {
+    goPackagePath = "golang.org/x/tools";
+    fetch = {
+      type = "git";
+      url = "https://go.googlesource.com/tools";
+      rev = "96e9e165b75e735822645eff82850b08c377be36";
+      sha256 = "1zj9ck5sg9b0pphxybmvxf64hhcap7v7j37fx3v5aknf18crjjdg";
+    };
+  }
+  {
+    goPackagePath = "mvdan.cc/lint";
+    fetch = {
+      type = "git";
+      url = "https://github.com/mvdan/lint";
+      rev = "adc824a0674b99099789b6188a058d485eaf61c0";
+      sha256 = "17mi2rvkg9kzv1shxcyawzcj4jj3v738d1j82fp4yygx859yvr8r";
+    };
+  }
+]