diff --git a/nix/overlay.nix b/nix/overlay.nix index a11fe1d6e..238f4d528 100644 --- a/nix/overlay.nix +++ b/nix/overlay.nix @@ -56,6 +56,7 @@ in rec { go-modvendor = callPackage ./pkgs/go-modvendor { }; cc-test-reporter = callPackage ./pkgs/cc-test-reporter { }; codecov-cli = callPackage ./pkgs/codecov-cli { }; + go-generate-fast = callPackage ./pkgs/go-generate-fast { }; gomobile = (prev.gomobile.overrideAttrs (old: { patches = [ diff --git a/nix/pkgs/go-generate-fast/default.nix b/nix/pkgs/go-generate-fast/default.nix new file mode 100644 index 000000000..0898194ec --- /dev/null +++ b/nix/pkgs/go-generate-fast/default.nix @@ -0,0 +1,16 @@ +{ buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "go-generate-fast"; + version = "0.3.0"; + + subPackages = [ "." ]; + + src = fetchFromGitHub rec { + owner = "oNaiPs"; + repo = "go-generate-fast"; + rev = "v${version}"; + hash = "sha256-NMGXOI3y3PGt+hrHhOsugACL8c5LIzpwwdt+Ne0MkY8="; + }; + vendorHash = "sha256-8nmnTuDZvnFEPQAxOv19gUgHy6FpI3HLRtqLLob+zrE="; +} \ No newline at end of file diff --git a/nix/shell.nix b/nix/shell.nix index 9a793ae62..10f2647c7 100644 --- a/nix/shell.nix +++ b/nix/shell.nix @@ -21,7 +21,7 @@ in pkgs.mkShell { buildInputs = with pkgs; [ git jq which - go golangci-lint go-junit-report gopls go-bindata gomobileMod codecov-cli + go golangci-lint go-junit-report gopls go-bindata gomobileMod codecov-cli go-generate-fast mockgen protobuf3_20 protoc-gen-go gotestsum go-modvendor openjdk cc-test-reporter ] ++ lib.optionals (stdenv.isDarwin) [ xcodeWrapper ];