about summary refs log tree commit diff
path: root/pkgs/shells/nushell/use-system-zstd-lib.diff
blob: 271ad6c692ed1fccc05a794b947216172edb854c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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]