Skip to content

Commit

Permalink
Merge pull request #179622 from SuperSandro2000/go-1-18
Browse files Browse the repository at this point in the history
go,goBuildModules: bump default go version to 1.18
  • Loading branch information
SuperSandro2000 authored Jul 15, 2022
2 parents b5680a8 + bd2d654 commit e32ba32
Show file tree
Hide file tree
Showing 22 changed files with 300 additions and 268 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildGoModule rec {

proxyVendor = true;

vendorSha256 = "sha256-1vlgnY4kZJfoAtbv+r8onxL03Ak32zKLJgtrBYZX09g=";
vendorSha256 = "sha256-n9XNqXIoqn+f0xKCenJWXUYXtQhtbNBar68onWH/WV4=";

meta = with lib; {
description = "RSS/Atom reader with the focus on speed, usability and a bit of unix philosophy";
Expand Down
2 changes: 1 addition & 1 deletion pkgs/development/libraries/protolock/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildGoModule rec {
sha256 = "sha256-vWwRZVArmlTIGwD4zV3dEHN2kkoeCZuNIvjCBVAviPo=";
};

vendorSha256 = "sha256-kgSJUSjY8kgrGCNDPgw1WA8KwAqI5koJQ0IcE+tC5nk=";
vendorSha256 = "sha256-pYtP+Tkh2TcGsbk7zQNaoYLEQrqGOL0gkMG5dUkfpt4=";

postInstall = ''
rm $out/bin/plugin*
Expand Down
9 changes: 3 additions & 6 deletions pkgs/development/tools/database/sqlc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,14 @@ buildGoModule {
};

proxyVendor = true;
vendorSha256 = "sha256-zZ0IrtfQvczoB7th9ZCUlYOtyZr3Y3yF0pKzRCqmCjo=";
vendorSha256 = "sha256-miyNIF6RNOuvNEA9Hf+hOyRJG+5IcXU4Vo4Fzn+nIb4=";

subPackages = [ "cmd/sqlc" ];

meta = let
inherit (lib) licenses platforms maintainers;
in {
description = " Generate type-safe code from SQL";
meta = with lib; {
description = "Generate type-safe code from SQL";
homepage = "https://sqlc.dev/";
license = licenses.mit;
platforms = platforms.all;
maintainers = [ maintainers.adisbladis ];
};
}
2 changes: 1 addition & 1 deletion pkgs/development/tools/pigeon/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildGoModule rec {
sha256 = "sha256-0Cp/OnFvVZj9UZgl3F5MCzemBaHI4smGWU46VQnhLOg=";
};

vendorSha256 = "sha256-07zoQL4mLPSERBkZ3sz35Av7zdZsjTyGR8zbA86EEjU=";
vendorSha256 = "sha256-JbBXRkxnB7LeeWdBLIQvyjvWo0zZ1EOuEUPXxHWiq+E=";

proxyVendor = true;

Expand Down
3 changes: 1 addition & 2 deletions pkgs/development/tools/proto-contrib/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildGoModule rec {
sha256 = "0ksxic7cypv9gg8q5lkl5bla1n9i65z7b03cx9lwq6252glmf2jk";
};

vendorSha256 = "093blawprs2yf478zp9p1zc7mmimgpiwrw6nh8nqml89y5b5zldc";
vendorSha256 = "sha256-XAFB+DDWN7CLfNxIBqYJy88gUNrUJYExzy2/BFnBe8c=";

doCheck = false;

Expand All @@ -20,6 +20,5 @@ buildGoModule rec {
homepage = "https://github.com/emicklei/proto-contrib";
license = licenses.mit;
maintainers = with maintainers; [ kalbasit ];
platforms = platforms.linux ++ platforms.darwin;
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ buildGoModule {
sha256 = "sha256-LfF/n96LwRX8aoPHzCRI/QbDmZR9yMhE5yGhFAqa8nA=";
};

vendorSha256 = "sha256-xZlP4rg1FMx6ddkKYlSdF6NrtY8xBZ3aEZSATgSf13M=";
vendorSha256 = "sha256-WISWuq1neVX4xQkoamc6FznZahOQHwgkYmERJF40OFQ=";

subPackages = [ "." ];

Expand Down
5 changes: 4 additions & 1 deletion pkgs/development/tools/vgo2nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ buildGoModule {
description = "Convert go.mod files to nixpkgs buildGoPackage compatible deps.nix files";
homepage = "https://github.com/nix-community/vgo2nix";
license = licenses.mit;
maintainers = with maintainers; [ adisbladis SuperSandro2000 ];
maintainers = with maintainers; [ adisbladis ];
mainProgram = "vgo2nix";
# vendoring fails with cryptic error:
# reading file:///nix/store/..../github.com/orivej/e/@v/v0.0.0-20180728214217-ac3492690fda.zip: no such file or directory
broken = true;
};
}
7 changes: 4 additions & 3 deletions pkgs/servers/dns/ncdns/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,14 @@ buildGoModule {
cp -r _tpl "$out/share/tpl"
'';

passthru.tests.ncdns = nixosTests.ncdns;

meta = with lib; {
description = "Namecoin to DNS bridge daemon";
homepage = "https://github.com/namecoin/ncdns";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ rnhmjoj ];
# module github.com/btcsuite/btcd@latest found (v0.23.1), but does not contain package github.com/btcsuite/btcd/btcec
broken = true;
};

passthru.tests.ncdns = nixosTests.ncdns;

}
2 changes: 1 addition & 1 deletion pkgs/servers/endlessh-go/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ buildGoModule rec {
hash = "sha256-U+h/WmTVwwUIBEOiNa/EKS6HvkeoGNmP3NpeP1fcqYw=";
};

vendorSha256 = "sha256-h/DpbXO+LUsB9NOAXUfNx3VOfEsiolfBEMBrAqVlU3A=";
vendorSha256 = "sha256-5a/V2OQGVRIJVl/YG+lvtbLeHCy/1eiZu69zKIFqRKM=";

proxyVendor = true;

Expand Down
4 changes: 2 additions & 2 deletions pkgs/servers/mattermost/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ lib
, buildGo118Module
, buildGoModule
, fetchFromGitHub
, fetchurl
, nixosTests
}:

buildGo118Module rec {
buildGoModule rec {
pname = "mattermost";
version = "7.1.0";

Expand Down
2 changes: 1 addition & 1 deletion pkgs/servers/monitoring/telegraf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildGoModule rec {
sha256 = "sha256-Cftxm+Lb3ekK8YZrklD/C+p0EpyEVU/xxVI5oiNgBxk=";
};

vendorSha256 = "sha256-E1p9hnxNFse7Zg8FGcZrbVqThrGTVSP04nH/ZP8WBlk=";
vendorSha256 = "sha256-VyNPIYRMAC51zp38BKoM5/bLbfwULtFEtRC3LQjVJK4=";
proxyVendor = true;

ldflags = [
Expand Down
13 changes: 6 additions & 7 deletions pkgs/shells/zsh/zsh-history/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ buildGoModule rec {
sha256 = "13n643ik1zjvpk8h9458yd9ffahhbdnigmbrbmpn7b7g23wqqsi3";
};

nativeBuildInputs = [ installShellFiles ];
vendorSha256 = "sha256-n5QFN1B2GjbzylFuW9Y4r0+ioIJlfKwcGK8X3ZwKLI8=";

vendorSha256 = "1863ad97y82fx0an1ysalkxnqjz3zfz228wag9a92wdssl1vwzws";
nativeBuildInputs = [ installShellFiles ];

doCheck = false;

Expand All @@ -23,16 +23,15 @@ buildGoModule rec {
installShellCompletion --zsh --name _history $out/share/zsh/completions/_history
'';

passthru.tests = {
zsh-history-shell-integration = nixosTests.zsh-history;
};

meta = with lib; {
description = "A CLI to provide enhanced history for your ZSH shell";
homepage = "https://github.com/b4b4r07/history";
license = licenses.mit;
maintainers = with maintainers; [ ];
mainProgram = "history";
platforms = platforms.unix;
};

passthru.tests = {
zsh-history-shell-integration = nixosTests.zsh-history;
};
}
4 changes: 2 additions & 2 deletions pkgs/tools/admin/lxd/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, hwdata, pkg-config, lxc, buildGo118Package, fetchurl
{ lib, hwdata, pkg-config, lxc, buildGoPackage, fetchurl
, makeWrapper, acl, rsync, gnutar, xz, btrfs-progs, gzip, dnsmasq, attr
, squashfsTools, iproute2, iptables, libcap
, dqlite, raft-canonical, sqlite-replication, udev
Expand All @@ -9,7 +9,7 @@
, nixosTests
}:

buildGo118Package rec {
buildGoPackage rec {
pname = "lxd";
version = "5.3";

Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/misc/cod/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ buildGoModule rec {
'';

meta = with lib; {
broken = stdenv.isDarwin;
description = "Tool for generating Bash/Fish/Zsh autocompletions based on `--help` output";
homepage = "https://github.com/dim-an/cod/";
license = licenses.asl20;
maintainers = with maintainers; [ SuperSandro2000 ];
broken = true;
};
}
4 changes: 2 additions & 2 deletions pkgs/tools/misc/mutagen-compose/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, lib, buildGo118Module, fetchFromGitHub, fetchzip }:
{ stdenv, lib, buildGoModule, fetchFromGitHub, fetchzip }:

buildGo118Module rec {
buildGoModule rec {
pname = "mutagen-compose";
version = "0.14.0";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/misc/mutagen/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, lib, buildGo118Module, fetchFromGitHub, fetchzip }:
{ stdenv, lib, buildGoModule, fetchFromGitHub, fetchzip }:

buildGo118Module rec {
buildGoModule rec {
pname = "mutagen";
version = "0.14.0";

Expand Down
2 changes: 1 addition & 1 deletion pkgs/tools/misc/opentelemetry-collector/contrib.nix
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ buildGoModule rec {
};
# proxy vendor to avoid hash missmatches between linux and macOS
proxyVendor = true;
vendorSha256 = "sha256-CzFcSvJCMfS83Semk92XUd9iSX6OjOrDzRUNNLVtpi4=";
vendorSha256 = "sha256-G3sIWkYKYnqDmmwspQNw+8yU/SWBBr8KX7Osae9mXe4=";

subPackages = [ "cmd/otelcontribcol" ];

Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/misc/steampipe/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ stdenv, lib, buildGo118Module, fetchFromGitHub, installShellFiles }:
{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles }:

buildGo118Module rec {
buildGoModule rec {
pname = "steampipe";
version = "0.15.0";

Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/misc/upterm/default.nix
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{ lib
, buildGo118Module
, buildGoModule
, fetchFromGitHub
, installShellFiles
, nixosTests
}:

buildGo118Module rec {
buildGoModule rec {
pname = "upterm";
version = "0.8.2";

Expand Down
9 changes: 4 additions & 5 deletions pkgs/tools/networking/shadowfox/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,18 @@ buildGoModule rec {
sha256 = "125mw70jidbp436arhv77201jdp6mpgqa2dzmrpmk55f9bf29sg6";
};

vendorSha256 = "17m0ssfw9n3g2lkv63qajz3adrk5yp0c9hx66x7dl79snwqd49yg";
vendorSha256 = "sha256-llseW3k8ygTXwkSpnRfQEnX3OVj2zdL8JDpIoRcC9kE=";

doCheck = false;

ldflags = [
"-s"
"-w"
"-X main.tag=v${version}"
];

meta = with lib; {
description = ''
This project aims at creating a universal dark theme for Firefox while
adhering to the modern design principles set by Mozilla.
'';
description = "Universal dark theme for Firefox while adhering to the modern design principles set by Mozilla";
homepage = "https://overdodactyl.github.io/ShadowFox/";
license = licenses.mit;
maintainers = with maintainers; [ infinisil ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/security/spire/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{ lib, buildGo118Module, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub }:

buildGo118Module rec {
buildGoModule rec {
pname = "spire";
version = "1.3.1";

Expand Down
Loading

0 comments on commit e32ba32

Please sign in to comment.