talosctl: 0.14.1 -> 0.14.2

This commit is contained in:
zowoq 2022-02-13 06:51:34 +10:00
parent 559d566e87
commit 34d37c1204

View file

@ -1,19 +1,24 @@
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
let
# look for GO_LDFLAGS getting set in the Makefile
version = "0.14.2";
sha256 = "sha256-sQtry94T5cDO+836D/p/8ptQi3WYKDBLr1QZyEXdLQI=";
vendorSha256 = "sha256-cd2iNMxWmkSWqqkPLYocUG+fCUXoeUXEuGQxjUWQnXk=";
pkgsVersion = "0.9.0-4-gc875fbe";
extrasVersion = "0.7.0-2-gb4c9d21";
in
buildGoModule rec { buildGoModule rec {
pname = "talosctl"; pname = "talosctl";
version = "0.14.1"; inherit version vendorSha256;
# nixpkgs-update: no auto update
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "talos-systems"; owner = "talos-systems";
repo = "talos"; repo = "talos";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-JeZ+Q6LTDJtoxfu4mJNc3wv3Y6OPcIUvgnozj9mWwLw="; inherit sha256;
}; };
vendorSha256 = "sha256-ujbEWvcNJJOUegVgAGEPwYF02TiqD1lZELvqc/Gmb4A=";
# look for GO_LDFLAGS getting set in the Makefile
ldflags = ldflags =
let let
versionPkg = "github.com/talos-systems/talos/pkg/version"; # VERSION_PKG versionPkg = "github.com/talos-systems/talos/pkg/version"; # VERSION_PKG
@ -24,8 +29,8 @@ buildGoModule rec {
"-X ${versionPkg}.Name=Talos" "-X ${versionPkg}.Name=Talos"
"-X ${versionPkg}.SHA=${src.rev}" # should be the hash, but as we build from tags, this needs to do "-X ${versionPkg}.SHA=${src.rev}" # should be the hash, but as we build from tags, this needs to do
"-X ${versionPkg}.Tag=${src.rev}" "-X ${versionPkg}.Tag=${src.rev}"
"-X ${versionPkg}.PkgsVersion=v0.9.0-2-g447ce75" # PKGS "-X ${versionPkg}.PkgsVersion=v${pkgsVersion}" # PKGS
"-X ${versionPkg}.ExtrasVersion=v0.7.0-1-gd6b73a7" # EXTRAS "-X ${versionPkg}.ExtrasVersion=v${extrasVersion}" # EXTRAS
"-X ${imagesPkgs}.Username=talos-systems" # USERNAME "-X ${imagesPkgs}.Username=talos-systems" # USERNAME
"-X ${imagesPkgs}.Registry=ghcr.io" # REGISTRY "-X ${imagesPkgs}.Registry=ghcr.io" # REGISTRY
"-X ${mgmtHelpersPkg}.ArtifactsPath=_out" # ARTIFACTS "-X ${mgmtHelpersPkg}.ArtifactsPath=_out" # ARTIFACTS