labctl: unpin Go version

Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
Paul Meyer 2024-03-10 23:33:54 +01:00
parent cd5e8685d8
commit 8a1475afca
2 changed files with 12 additions and 4 deletions

View file

@ -1,6 +1,7 @@
{ lib
, buildGoModule
, fetchFromGitHub
, fetchpatch
, installShellFiles
}:
@ -15,9 +16,18 @@ buildGoModule rec {
hash = "sha256-84t7qhLafNyPLgHmFQUsizEn6Us44dDTercGEm9lup4=";
};
patches = [
# Fix build failure with Go 1.21 by updating go4.org/unsafe/assume-no-moving-gc
# See https://github.com/labctl/labctl/pull/4
(fetchpatch {
url = "https://github.com/labctl/labctl/commit/615d05e94b991362beddce71c7ee34eae7fc93ff.patch";
hash = "sha256-4JrXSsg8rfuH6i8XyLd/qO6AibkRMDBIpfT8r1yS75c=";
})
];
nativeBuildInputs = [ installShellFiles ];
vendorHash = "sha256-vJ9aTMVwKrqjckdfCMvheTSG+gEtMLLQuBCz8Wc5blE=";
vendorHash = "sha256-Ycr/IZckIFysS9Goes58hhgh96UMRHjYWfWlQU23mXk=";
ldflags = [
"-X=github.com/labctl/labctl/app.version=${version}"

View file

@ -2556,9 +2556,7 @@ with pkgs;
lab = callPackage ../applications/version-management/lab { };
labctl = callPackage ../tools/networking/labctl {
buildGoModule = buildGo120Module;
};
labctl = callPackage ../tools/networking/labctl { };
legit = callPackage ../applications/version-management/legit { };