tdl: 0.19.0 -> 0.20.2 (#515331)
This commit is contained in:
@@ -5,16 +5,22 @@
|
||||
}:
|
||||
buildGoModule (finalAttrs: {
|
||||
pname = "tdl";
|
||||
version = "0.19.0";
|
||||
version = "0.20.2";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "iyear";
|
||||
repo = "tdl";
|
||||
rev = "v${finalAttrs.version}";
|
||||
hash = "sha256-EYS4EK0NmNHnvjMkf5AHrYpZeGw+n2ovFDLanbqpF4Y=";
|
||||
hash = "sha256-xDCvZ6a7xW5kJ+3nsCQGASypzrosjihI0hlSobBWwj0=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-GpqgH23eK0h2BYxjN5TNUWEOT72smYdUoD1Iy6L2jL4=";
|
||||
vendorHash = "sha256-dMuDmW3WtXU1Awuw7KKSCk1o/GKpBfsrqfvb3wVNGWw=";
|
||||
|
||||
postPatch = ''
|
||||
rm go.work go.work.sum
|
||||
go mod edit -replace github.com/iyear/tdl/core=./core
|
||||
go mod edit -replace github.com/iyear/tdl/extension=./extension
|
||||
'';
|
||||
|
||||
ldflags = [
|
||||
"-s"
|
||||
@@ -22,6 +28,10 @@ buildGoModule (finalAttrs: {
|
||||
"-X=github.com/iyear/tdl/pkg/consts.Version=${finalAttrs.version}"
|
||||
];
|
||||
|
||||
env.GOGC = "50";
|
||||
|
||||
buildFlags = [ "-p=1" ];
|
||||
|
||||
# Filter out the main executable
|
||||
subPackages = [ "." ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user