Skip to content

Commit

Permalink
chore(talosctl): update vendorHash
Browse files Browse the repository at this point in the history
  • Loading branch information
rodent1 committed Nov 14, 2024
1 parent 3ce9c6f commit 2f6459b
Showing 1 changed file with 31 additions and 30 deletions.
61 changes: 31 additions & 30 deletions pkgs/talosctl.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,43 @@
lib,
installShellFiles,
...
}: let
sourceData = pkgs.callPackage ./_sources/generated.nix {};
}:
let
sourceData = pkgs.callPackage ./_sources/generated.nix { };
packageData = sourceData.talosctl;
in
pkgs.unstable.buildGo123Module {
inherit (packageData) pname src;
version = lib.strings.removePrefix "v" packageData.version;
vendorHash = "sha256-pWG8DbZ9N57p2Q9w/IzETcvwaSfzaUvJgcz7Th/Oi9c=";
pkgs.unstable.buildGo123Module {
inherit (packageData) pname src;
version = lib.strings.removePrefix "v" packageData.version;
vendorHash = "sha256-/Xt/WZ+5ptxsiUkm6mplilB9gqv3mz+j7tyNikzJtkA=";

ldflags = [
"-s"
"-w"
];
ldflags = [
"-s"
"-w"
];

# This is needed to deal with workspace issues during the build
overrideModAttrs = _: {GOWORK = "off";};
GOWORK = "off";
# This is needed to deal with workspace issues during the build
overrideModAttrs = _: { GOWORK = "off"; };
GOWORK = "off";

subPackages = ["cmd/talosctl"];
subPackages = [ "cmd/talosctl" ];

nativeBuildInputs = [installShellFiles];
nativeBuildInputs = [ installShellFiles ];

postInstall = ''
installShellCompletion --cmd talosctl \
--bash <($out/bin/talosctl completion bash) \
--fish <($out/bin/talosctl completion fish) \
--zsh <($out/bin/talosctl completion zsh)
'';
postInstall = ''
installShellCompletion --cmd talosctl \
--bash <($out/bin/talosctl completion bash) \
--fish <($out/bin/talosctl completion fish) \
--zsh <($out/bin/talosctl completion zsh)
'';

doCheck = false; # no tests
doCheck = false; # no tests

meta = with lib; {
description = "A CLI for out-of-band management of Kubernetes nodes created by Talos";
homepage = "https://www.talos.dev/";
license = licenses.mpl20;
mainProgram = "talosctl";
maintainers = with maintainers; [flokli];
};
}
meta = with lib; {
description = "A CLI for out-of-band management of Kubernetes nodes created by Talos";
homepage = "https://www.talos.dev/";
license = licenses.mpl20;
mainProgram = "talosctl";
maintainers = with maintainers; [ flokli ];
};
}

0 comments on commit 2f6459b

Please sign in to comment.