about summary refs log tree commit diff
path: root/pkgs/development/tools/gomacro
diff options
context:
space:
mode:
authorSam Hofius <sam@samhofi.us>2021-01-31 13:06:08 -0500
committerSam Hofius <sam@samhofi.us>2021-02-01 11:12:16 -0500
commitbe212428d3813fbc7d95042fe6dd1610a45fa9d6 (patch)
treee182e195b5b74356f42c6c544a48b5fcd58437bf /pkgs/development/tools/gomacro
parentb76d44b9612b0f2117cbce00a9e9508f068c752e (diff)
gomacro: init at 2.7
Diffstat (limited to 'pkgs/development/tools/gomacro')
-rw-r--r--pkgs/development/tools/gomacro/default.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/pkgs/development/tools/gomacro/default.nix b/pkgs/development/tools/gomacro/default.nix
new file mode 100644
index 0000000000000..e96fccd0a3b5b
--- /dev/null
+++ b/pkgs/development/tools/gomacro/default.nix
@@ -0,0 +1,24 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "gomacro";
+  rev = "b4c3ab9b218fd12f22759354f4f3e37635828d1f";
+  version = "20210131-${lib.strings.substring 0 7 rev}";
+
+  src = fetchFromGitHub {
+    owner = "cosmos72";
+    repo = "gomacro";
+    sha256 = "0ci486zqrhzvs3njn2ygaxsgjx3fn8bbj2q3sd80xvjiyjvq866g";
+    inherit rev;
+  };
+
+  vendorSha256 = "1ib4h57drikyy5aq4ms6vc1p29djlpjrh7xd3bgyykr9zmm2w1kx";
+  subPackages = [ "." ];
+
+  meta = with lib; {
+    description = "Interactive Go interpreter and debugger with generics and macros";
+    homepage = "https://github.com/cosmos72/gomacro";
+    license = licenses.mpl20;
+    maintainers = with maintainers; [ shofius ];
+  };
+}