Skip to content

Instantly share code, notes, and snippets.

@bryanasdev000
Created June 11, 2021 04:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save bryanasdev000/a64a25db8a62bb11dcf9cb651e8caa94 to your computer and use it in GitHub Desktop.
Save bryanasdev000/a64a25db8a62bb11dcf9cb651e8caa94 to your computer and use it in GitHub Desktop.
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