aboutsummaryrefslogtreecommitdiff
path: root/pkgs/development/tools/unconvert
diff options
context:
space:
mode:
authorWael M. Nasreddine <wael.nasreddine@gmail.com>2018-11-02 20:43:40 -0700
committerWael M. Nasreddine <wael.nasreddine@gmail.com>2018-11-02 22:04:42 -0700
commit63d9863394f7359595fc52fc962d8ad58638ee5b (patch)
tree585f5588e150eff0b21efbbe03d9477df670b0d8 /pkgs/development/tools/unconvert
parentdf46a94d8b786553fe0f75a69b5164fc597b3a9d (diff)
unconvert: init at unstable 2018-07-03
Diffstat (limited to 'pkgs/development/tools/unconvert')
-rw-r--r--pkgs/development/tools/unconvert/default.nix31
-rw-r--r--pkgs/development/tools/unconvert/deps.nix29
2 files changed, 60 insertions, 0 deletions
diff --git a/pkgs/development/tools/unconvert/default.nix b/pkgs/development/tools/unconvert/default.nix
new file mode 100644
index 00000000000..1e81c5b9f86
--- /dev/null
+++ b/pkgs/development/tools/unconvert/default.nix
@@ -0,0 +1,31 @@
+
+{ buildGoPackage
+, lib
+, fetchFromGitHub
+}:
+
+buildGoPackage rec {
+ name = "unconvert-unstable-${version}";
+ version = "2018-07-03";
+ rev = "1a9a0a0a3594e9363e49545fb6a4e24ac4c68b7b";
+
+ goPackagePath = "github.com/mdempsky/unconvert";
+
+ src = fetchFromGitHub {
+ inherit rev;
+
+ owner = "mdempsky";
+ repo = "unconvert";
+ sha256 = "1ww5qk1cmdis4ig5mb0b0w7nzrf3734s51plmgdxqsr35y88q4p9";
+ };
+
+ goDeps = ./deps.nix;
+
+ meta = with lib; {
+ description = "Remove unnecessary type conversions from Go source";
+ homepage = https://github.com/mdempsky/unconvert;
+ license = licenses.bsd3;
+ maintainers = with maintainers; [ kalbasit ];
+ platforms = platforms.linux ++ platforms.darwin;
+ };
+}
diff --git a/pkgs/development/tools/unconvert/deps.nix b/pkgs/development/tools/unconvert/deps.nix
new file mode 100644
index 00000000000..333ec7ca3b1
--- /dev/null
+++ b/pkgs/development/tools/unconvert/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/text";
+ fetch = {
+ type = "git";
+ url = "https://go.googlesource.com/text";
+ rev = "6f44c5a2ea40ee3593d98cdcc905cc1fdaa660e2";
+ sha256 = "00mwzxly5isgf0glz7k3k2dkyqkjfc4z55qxajx4lgcp3h8xn9xj";
+ };
+ }
+ {
+ goPackagePath = "golang.org/x/tools";
+ fetch = {
+ type = "git";
+ url = "https://go.googlesource.com/tools";
+ rev = "96e9e165b75e735822645eff82850b08c377be36";
+ sha256 = "1zj9ck5sg9b0pphxybmvxf64hhcap7v7j37fx3v5aknf18crjjdg";
+ };
+ }
+]