nixpkgs/pkgs/shells/nushell/use-system-zstd-lib.diff
2021-08-07 13:52:17 +01:00

33 lines
748 B
Diff

diff --git a/Cargo.lock b/Cargo.lock
index 8833c3e5..0c90d2fe 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3188,6 +3188,7 @@ dependencies = [
"nu_plugin_xpath",
"rstest",
"serial_test",
+ "zstd-sys",
]
[[package]]
@@ -6954,4 +6955,5 @@ checksum = "615120c7a2431d16cf1cf979e7fc31ba7a5b5e5707b29c8a99e5dbf8a8392a33"
dependencies = [
"cc",
"libc",
+ "pkg-config",
]
diff --git a/Cargo.toml b/Cargo.toml
index 89e8a311..4cc2331a 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -63,6 +63,9 @@ serial_test = "0.5.1"
hamcrest2 = "0.3.0"
rstest = "0.10.0"
+# Specify that the indirect dependency ztsd-sys should pick up the system zstd C library
+zstd-sys = { version = "1", features = [ "pkg-config" ] }
+
[build-dependencies]
[features]