1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "gomacro";
5 rev = "b4c3ab9b218fd12f22759354f4f3e37635828d1f";
6 version = "20210131-${lib.strings.substring 0 7 rev}";
7
8 src = fetchFromGitHub {
9 owner = "cosmos72";
10 repo = "gomacro";
11 sha256 = "0ci486zqrhzvs3njn2ygaxsgjx3fn8bbj2q3sd80xvjiyjvq866g";
12 inherit rev;
13 };
14
15 vendorSha256 = "1ib4h57drikyy5aq4ms6vc1p29djlpjrh7xd3bgyykr9zmm2w1kx";
16 subPackages = [ "." ];
17
18 meta = with lib; {
19 description = "Interactive Go interpreter and debugger with generics and macros";
20 homepage = "https://github.com/cosmos72/gomacro";
21 license = licenses.mpl20;
22 maintainers = with maintainers; [ shofius ];
23 };
24}