Loading pkgs/applications/networking/cluster/k3s/builder.nix +3 −5 Original line number Diff line number Diff line Loading @@ -346,15 +346,13 @@ buildGoModule (finalAttrs: { # Nix prefers dynamically linked binaries over static binary. substituteInPlace scripts/package-cli \ --replace '"$LDFLAGS $STATIC" -o' \ '"$LDFLAGS" -o' \ --replace "STATIC=\"-extldflags \'-static\'\"" \ "" --replace-fail '"$LDFLAGS $STATIC" -o' \ '"$LDFLAGS" -o' # Upstream codegen fails with trimpath set. Removes "trimpath" for 'go generate': substituteInPlace scripts/package-cli \ --replace '"''${GO}" generate' \ --replace-fail '"''${GO}" generate' \ 'GOFLAGS="" \ GOOS="${pkgsBuildBuild.go.GOOS}" \ GOARCH="${pkgsBuildBuild.go.GOARCH}" \ Loading Loading
pkgs/applications/networking/cluster/k3s/builder.nix +3 −5 Original line number Diff line number Diff line Loading @@ -346,15 +346,13 @@ buildGoModule (finalAttrs: { # Nix prefers dynamically linked binaries over static binary. substituteInPlace scripts/package-cli \ --replace '"$LDFLAGS $STATIC" -o' \ '"$LDFLAGS" -o' \ --replace "STATIC=\"-extldflags \'-static\'\"" \ "" --replace-fail '"$LDFLAGS $STATIC" -o' \ '"$LDFLAGS" -o' # Upstream codegen fails with trimpath set. Removes "trimpath" for 'go generate': substituteInPlace scripts/package-cli \ --replace '"''${GO}" generate' \ --replace-fail '"''${GO}" generate' \ 'GOFLAGS="" \ GOOS="${pkgsBuildBuild.go.GOOS}" \ GOARCH="${pkgsBuildBuild.go.GOARCH}" \ Loading