treewide: drop unnecessary go_1_17, buildGo117{Module,Package}

This commit is contained in:
zowoq 2022-02-04 22:16:47 +10:00
parent 2211a7cf74
commit ab07e12988
21 changed files with 179 additions and 454 deletions

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGo117Module rec {
buildGoModule rec {
pname = "cointop";
version = "1.6.10";

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGo117Module rec {
buildGoModule rec {
pname = "cloudflared";
version = "2022.1.2";

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub, installShellFiles }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGo117Module rec {
buildGoModule rec {
pname = "cmctl";
version = "1.7.1";

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub, installShellFiles }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGo117Module rec {
buildGoModule rec {
pname = "helm";
version = "3.8.0";
gitCommit = "d14138609b01886f544b2025f5000351c9eb092e";

View File

@ -1,13 +1,13 @@
{ lib
, buildGo117Module
, buildGoModule
, fetchFromGitHub
, makeWrapper
, git
, go_1_17
, go
, gnumake
}:
buildGo117Module rec {
buildGoModule rec {
pname = "kubebuilder";
version = "3.3.0";
@ -23,8 +23,8 @@ buildGo117Module rec {
ldflags = [
"-X main.kubeBuilderVersion=v${version}"
"-X main.goos=${go_1_17.GOOS}"
"-X main.goarch=${go_1_17.GOARCH}"
"-X main.goos=${go.GOOS}"
"-X main.goarch=${go.GOARCH}"
"-X main.gitCommit=v${version}"
"-X main.buildDate=v${version}"
];
@ -34,7 +34,7 @@ buildGo117Module rec {
postInstall = ''
mv $out/bin/cmd $out/bin/kubebuilder
wrapProgram $out/bin/kubebuilder \
--prefix PATH : ${lib.makeBinPath [ go_1_17 gnumake ]}
--prefix PATH : ${lib.makeBinPath [ go gnumake ]}
'';
allowGoReference = true;

View File

@ -1,6 +1,6 @@
{ lib
, fetchFromGitHub
, buildGo117Module
, buildGoModule
, coredns
, installShellFiles
, isFull ? false
@ -14,7 +14,7 @@
]
}:
buildGo117Module rec {
buildGoModule rec {
inherit pname ;
version = "1.4.0";
tags = lib.optionals enableGateway ["gateway"];

View File

@ -1,9 +1,8 @@
{ lib, fetchFromGitHub, buildGo117Module, installShellFiles }:
{ lib, fetchFromGitHub, buildGoModule, installShellFiles }:
{ channel, version, sha256, vendorSha256 }:
# Fix-Me: Unlock buildGoModule version when #154059 is merged.
buildGo117Module rec {
buildGoModule rec {
pname = "linkerd-${channel}";
inherit version vendorSha256;

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGo117Module rec {
buildGoModule rec {
pname = "talosctl";
version = "0.14.1";

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub, installShellFiles }:
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGo117Module rec {
buildGoModule rec {
pname = "vcluster";
version = "0.5.3";

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGo117Module rec {
buildGoModule rec {
pname = "dstp";
version = "0.4.0";

View File

@ -1,11 +1,11 @@
{ lib
, buildGo117Module
, buildGoModule
, fetchFromGitHub
, fq
, testVersion
}:
buildGo117Module rec {
buildGoModule rec {
pname = "fq";
version = "0.0.3";

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGo117Module rec {
buildGoModule rec {
pname = "kubepug";
version = "1.3.2";

View File

@ -1,6 +1,6 @@
{ buildGo117Module, fetchFromGitHub, lib, nixosTests }:
{ buildGoModule, fetchFromGitHub, lib, nixosTests }:
buildGo117Module rec {
buildGoModule rec {
pname = "ergo";
version = "2.9.1";

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchFromGitHub, buildGo117Package, buildEnv
{ lib, stdenv, fetchurl, fetchFromGitHub, buildGoPackage, buildEnv
# The suffix for the Mattermost version.
, versionSuffix ? "nixpkgs"
@ -14,7 +14,7 @@ let
goPackagePath = "github.com/mattermost/mattermost-server";
mattermost-server-build = buildGo117Package rec {
mattermost-server-build = buildGoPackage rec {
pname = "mattermost-server";
inherit version goPackagePath;

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub, olm }:
{ lib, buildGoModule, fetchFromGitHub, olm }:
buildGo117Module rec {
buildGoModule rec {
pname = "mautrix-whatsapp";
version = "0.2.3";

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchurl, fetchFromGitHub, nixosTests, tzdata, wire }:
{ lib, buildGoModule, fetchurl, fetchFromGitHub, nixosTests, tzdata, wire }:
buildGo117Module rec {
buildGoModule rec {
pname = "grafana";
version = "8.3.4";

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub, nixosTests }:
{ lib, buildGoModule, fetchFromGitHub, nixosTests }:
buildGo117Module rec {
buildGoModule rec {
pname = "telegraf";
version = "1.20.4";

View File

@ -1,5 +1,5 @@
{ lib
, buildGo117Module
, buildGoModule
, rustPlatform
, fetchFromGitHub
, makeWrapper
@ -43,7 +43,7 @@ let
sha256 = "sha256-oKvDXkxA73IJOi+ciBFVLkYcmeRUsTC+3rcYf64vDoY=";
};
in
buildGo117Module rec {
buildGoModule rec {
pname = "teleport";
inherit src version;

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGo117Module rec {
buildGoModule rec {
pname = "kopia";
version = "0.10.4";

View File

@ -1,6 +1,6 @@
{ lib, buildGo117Module, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:
buildGo117Module rec {
buildGoModule rec {
pname = "nebula";
version = "1.5.2";

File diff suppressed because it is too large Load Diff