mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-03 12:23:02 +00:00
vector: 0.38.0 → 0.39.0:
Drop patch, use variables instead.
This commit is contained in:
parent
77545ae726
commit
c1d8b65552
1418
pkgs/tools/misc/vector/Cargo.lock
generated
1418
pkgs/tools/misc/vector/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -36,7 +36,7 @@
|
||||
|
||||
let
|
||||
pname = "vector";
|
||||
version = "0.38.0";
|
||||
version = "0.39.0";
|
||||
in
|
||||
rustPlatform.buildRustPackage {
|
||||
inherit pname version;
|
||||
@ -45,15 +45,9 @@ rustPlatform.buildRustPackage {
|
||||
owner = "vectordotdev";
|
||||
repo = pname;
|
||||
rev = "v${version}";
|
||||
hash = "sha256-sJgryN6/XaM1qXxv76/5RGanUpBYxIsGYGToOCXDvwA=";
|
||||
hash = "sha256-S6yzh8ISIh6xzw5DwQaoZdpfmDHE9gfjlEtxIZerSak=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# Enable LTO to bring down binary size
|
||||
# Adapted from https://github.com/vectordotdev/vector/pull/20034
|
||||
./vector-lto.patch
|
||||
];
|
||||
|
||||
cargoLock = {
|
||||
lockFile = ./Cargo.lock;
|
||||
outputHashes = {
|
||||
@ -83,6 +77,9 @@ rustPlatform.buildRustPackage {
|
||||
# needed to dynamically link rdkafka
|
||||
CARGO_FEATURE_DYNAMIC_LINKING=1;
|
||||
|
||||
CARGO_PROFILE_RELEASE_LTO = "fat";
|
||||
CARGO_PROFILE_RELEASE_CODEGEN_UNITS = "1";
|
||||
|
||||
buildNoDefaultFeatures = true;
|
||||
buildFeatures = features;
|
||||
|
||||
|
@ -1,12 +0,0 @@
|
||||
--- ./Cargo.toml 2024-04-10 00:01:12.033806583 +0100
|
||||
+++ ./Cargo.toml 2024-04-10 00:01:48.324228125 +0100
|
||||
@@ -45,7 +45,8 @@ path = "tests/e2e/mod.rs"
|
||||
# This results in roughly a 5% reduction in performance when compiling locally vs when
|
||||
# compiled via the CI pipeline.
|
||||
[profile.release]
|
||||
-debug = false # Do not include debug symbols in the executable.
|
||||
+lto = true
|
||||
+codegen-units = 1
|
||||
|
||||
[profile.bench]
|
||||
debug = true
|
Loading…
Reference in New Issue
Block a user