diff --git a/pkgs/development/tools/gotests/default.nix b/pkgs/development/tools/gotests/default.nix index faa2e60aca4..d0d5025b31a 100644 --- a/pkgs/development/tools/gotests/default.nix +++ b/pkgs/development/tools/gotests/default.nix @@ -1,25 +1,25 @@ -{ lib, buildGoPackage, fetchFromGitHub }: +{ lib, buildGoModule, fetchFromGitHub }: -buildGoPackage rec { +buildGoModule rec { pname = "gotests"; - version = "1.5.3"; - rev = "v${version}"; - - goPackagePath = "github.com/cweill/gotests"; - excludedPackages = "testdata"; - goDeps = ./deps.nix; + version = "1.6.0"; src = fetchFromGitHub { - inherit rev; owner = "cweill"; repo = "gotests"; - sha256 = "1c0hly31ax0wk01zdx0l0yl40xybaizjfb3gjxia2z0mgx330dq9"; + rev = "v${version}"; + sha256 = "sha256-6IzUpAsFUgF2FwiC17OfDn1M+8WYFQPpRyXbkpHIztw="; }; - meta = { + vendorSha256 = "sha256-WMeHZN3s+8pIYEVaSLjI3Bz+rPTWHr1AkZ8lydjBwCw="; + + # tests are broken in nix environment + doCheck = false; + + meta = with lib; { description = "Generate Go tests from your source code"; homepage = "https://github.com/cweill/gotests"; - maintainers = with lib.maintainers; [ vdemeester ]; - license = lib.licenses.asl20; + maintainers = with maintainers; [ vdemeester ]; + license = licenses.asl20; }; } diff --git a/pkgs/development/tools/gotests/deps.nix b/pkgs/development/tools/gotests/deps.nix deleted file mode 100644 index df411303d94..00000000000 --- a/pkgs/development/tools/gotests/deps.nix +++ /dev/null @@ -1,12 +0,0 @@ -# This file was generated by https://github.com/kamilchm/go2nix v1.3.0 -[ - { - goPackagePath = "golang.org/x/tools"; - fetch = { - type = "git"; - url = "https://go.googlesource.com/tools"; - rev = "23463209683dad3f2b9cc7f7c2663e1847c59017"; - sha256 = "1shzfl4zixhj78v4f6y04bcmfl705yr5q8hp72ndbbma0mh09g8f"; - }; - } -]