victorialogs: 1.24.0 -> 1.25.0
also migrate to new repository
This commit is contained in:
parent
b146e009e2
commit
b46c0f29b4
@ -8,13 +8,13 @@
|
|||||||
|
|
||||||
buildGoModule (finalAttrs: {
|
buildGoModule (finalAttrs: {
|
||||||
pname = "VictoriaLogs";
|
pname = "VictoriaLogs";
|
||||||
version = "1.24.0";
|
version = "1.25.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "VictoriaMetrics";
|
owner = "VictoriaMetrics";
|
||||||
repo = "VictoriaMetrics";
|
repo = "VictoriaLogs";
|
||||||
tag = "v${finalAttrs.version}-victorialogs";
|
tag = "v${finalAttrs.version}";
|
||||||
hash = "sha256-E52hvxazzbz9FcPFZFcRHs2vVg6fJJQ8HsieQovQSi4=";
|
hash = "sha256-KhXB+37uK08dDYXtnaPDS7gP/gBGZ0gqyR0u572QOx8=";
|
||||||
};
|
};
|
||||||
|
|
||||||
vendorHash = null;
|
vendorHash = null;
|
||||||
@ -28,31 +28,12 @@ buildGoModule (finalAttrs: {
|
|||||||
"app/vlogscli"
|
"app/vlogscli"
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
# main module (github.com/VictoriaMetrics/VictoriaMetrics) does not contain package
|
|
||||||
# github.com/VictoriaMetrics/VictoriaMetrics/app/vmui/packages/vmui/web
|
|
||||||
#
|
|
||||||
# This appears to be some kind of test server for development purposes only.
|
|
||||||
# rm -f app/vmui/packages/vmui/web/{go.mod,main.go}
|
|
||||||
|
|
||||||
# Increase timeouts in tests to prevent failure on heavily loaded builders
|
|
||||||
substituteInPlace lib/storage/storage_test.go \
|
|
||||||
--replace-fail "time.After(10 " "time.After(120 " \
|
|
||||||
--replace-fail "time.NewTimer(30 " "time.NewTimer(120 " \
|
|
||||||
--replace-fail "time.NewTimer(time.Second * 10)" "time.NewTimer(time.Second * 120)" \
|
|
||||||
'';
|
|
||||||
|
|
||||||
ldflags = [
|
ldflags = [
|
||||||
"-s"
|
"-s"
|
||||||
"-w"
|
"-w"
|
||||||
"-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${finalAttrs.version}"
|
"-X github.com/VictoriaMetrics/VictoriaMetrics/lib/buildinfo.Version=${finalAttrs.version}"
|
||||||
];
|
];
|
||||||
|
|
||||||
preCheck = ''
|
|
||||||
# `lib/querytracer/tracer_test.go` expects `buildinfo.Version` to be unset
|
|
||||||
export ldflags=''${ldflags//=${finalAttrs.version}/=}
|
|
||||||
'';
|
|
||||||
|
|
||||||
__darwinAllowLocalNetworking = true;
|
__darwinAllowLocalNetworking = true;
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
@ -61,9 +42,7 @@ buildGoModule (finalAttrs: {
|
|||||||
victorialogs
|
victorialogs
|
||||||
;
|
;
|
||||||
};
|
};
|
||||||
updateScript = nix-update-script {
|
updateScript = nix-update-script { };
|
||||||
extraArgs = [ "--version-regex=(.*)-victorialogs" ];
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
@ -71,7 +50,7 @@ buildGoModule (finalAttrs: {
|
|||||||
description = "User friendly log database from VictoriaMetrics";
|
description = "User friendly log database from VictoriaMetrics";
|
||||||
license = lib.licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = with lib.maintainers; [ marie ];
|
maintainers = with lib.maintainers; [ marie ];
|
||||||
changelog = "https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/${finalAttrs.src.tag}";
|
changelog = "https://github.com/VictoriaMetrics/VictoriaLogs/releases/tag/${finalAttrs.src.tag}";
|
||||||
mainProgram = "victoria-logs";
|
mainProgram = "victoria-logs";
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user