From be212428d3813fbc7d95042fe6dd1610a45fa9d6 Mon Sep 17 00:00:00 2001 From: Sam Hofius Date: Sun, 31 Jan 2021 13:06:08 -0500 Subject: [PATCH] gomacro: init at 2.7 --- pkgs/development/tools/gomacro/default.nix | 24 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 26 insertions(+) create mode 100644 pkgs/development/tools/gomacro/default.nix diff --git a/pkgs/development/tools/gomacro/default.nix b/pkgs/development/tools/gomacro/default.nix new file mode 100644 index 000000000000..e96fccd0a3b5 --- /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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c9e45a90aea7..5c7ce9a7af5a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -19575,6 +19575,8 @@ in go-migrate = callPackage ../development/tools/go-migrate { }; + gomacro = callPackage ../development/tools/gomacro { }; + gomodifytags = callPackage ../development/tools/gomodifytags { }; go-langserver = callPackage ../development/tools/go-langserver { };