Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Trying to build Linkerd...
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "linkerd";
version = "2.10.2";
src = fetchFromGitHub {
owner = "linkerd";
repo = "linkerd2";
rev = "stable-${version}";
sha256 = "sha256-dOD0S4FJ2lXE+1VZooi8tKvC8ndGEHAxmAvSqoWI/m0=";
};
preBuild = ''
cd $src
go generate ./pkg/charts/static
go generate ./jaeger/static
go generate ./multicluster/static
go generate ./viz/static
'';
buildFlagsArray = ''
-tags=prod
-ldflags=
-s -w
-X github.com/linkerd/linkerd2/pkg/version.Version=2.9.5
'';
vendorSha256 = "sha256-4B61qaLi6Z0jwFiFsIz2bBBuHxTnoVoxDmHcbkHwdfU=";
doCheck = true;
deleteVendor = true;
runVend = true;
subPackages = [ "cli" ];
meta = with lib; {
description = "A service mesh for Kubernetes and beyond";
homepage = "https://linkerd.io/";
license = licenses.asl20;
maintainers = with maintainers; [ Gonzih bryanasdev000 ];
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment