diff --git a/pkgs/development/tools/impl/default.nix b/pkgs/development/tools/impl/default.nix index 825aa0c1fa6b..15c1361abd22 100644 --- a/pkgs/development/tools/impl/default.nix +++ b/pkgs/development/tools/impl/default.nix @@ -1,23 +1,20 @@ -{ buildGoPackage -, lib -, fetchFromGitHub -}: +{ buildGoModule, lib, fetchFromGitHub }: -buildGoPackage rec { - pname = "impl-unstable"; - version = "2019-11-19"; - rev = "6b9658ad00c7fbd61a7b50c195754413f6c4142c"; - - goPackagePath = "github.com/josharian/impl"; +buildGoModule rec { + pname = "impl"; + version = "1.0.0"; src = fetchFromGitHub { - inherit rev; owner = "josharian"; repo = "impl"; - sha256 = "1d4fvj7fgiykznx1z4fmcc06x5hsqp9wn62m5qm1ds8m0rjqaxwi"; + rev = "v${version}"; + sha256 = "0l21fkcgiaaf6ka91dmz8hx0l3nbp0kqi8p25kij1s5zb796z0dy"; }; - goDeps = ./deps.nix; + vendorSha256 = "0xkalwy02w62px01jdwwr3vwwsh50f22dsxf8lrrwmw6k0rq57zv"; + + # go: cannot find GOROOT directory: go + doCheck = false; meta = with lib; { description = "Generate method stubs for implementing an interface"; diff --git a/pkgs/development/tools/impl/deps.nix b/pkgs/development/tools/impl/deps.nix deleted file mode 100644 index f028df3be2d8..000000000000 --- a/pkgs/development/tools/impl/deps.nix +++ /dev/null @@ -1,30 +0,0 @@ -# This file was generated by https://github.com/kamilchm/go2nix v1.3.0 -[ - { - goPackagePath = "golang.org/x/mod"; - fetch = { - type = "git"; - url = "https://go.googlesource.com/mod"; - rev = "2addee1ccfb22349ab47953a3046338e461eb4d1"; - sha256 = "1r0drcji290nlq9czibcfynpwxyqx8a5p4b7lam6wblbh2lasfb6"; - }; - } - { - goPackagePath = "golang.org/x/tools"; - fetch = { - type = "git"; - url = "https://go.googlesource.com/tools"; - rev = "72e4a01eba4315301fd9ce00c8c2f492580ded8a"; - sha256 = "0a8c7j4w784w441j3j3bh640vy1g6g214641qv485wyi0xj49anf"; - }; - } - { - goPackagePath = "golang.org/x/xerrors"; - fetch = { - type = "git"; - url = "https://go.googlesource.com/xerrors"; - rev = "9bdfabe68543c54f90421aeb9a60ef8061b5b544"; - sha256 = "1yjfi1bk9xb81lqn85nnm13zz725wazvrx3b50hx19qmwg7a4b0c"; - }; - } -]