3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/shells/nushell/zstd-pkg-config.patch
Shane Sveller 0d117eb087
nushell: patch Cargo to use pkgconfig for zstd
Reverts the meaningful change in 5f3b928696e7c03f03d3cf2fe970e4bca47367ee.

https://github.com/NixOS/nixpkgs/pull/183712#discussion_r934027513

See also: cargo-about, cargo-deny

Co-authored-by: Florian Warzecha <liketechnik@disroot.org>
2022-09-05 09:59:57 -05:00

32 lines
892 B
Diff

diff --git a/Cargo.lock b/Cargo.lock
index d4c2ebe3a..bc78478c3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2641,6 +2641,7 @@ dependencies = [
"wax",
"which",
"windows",
+ "zstd",
]
[[package]]
@@ -5604,4 +5605,5 @@ checksum = "9fd07cbbc53846d9145dbffdf6dd09a7a0aa52be46741825f5c97bdd4f73f12b"
dependencies = [
"cc",
"libc",
+ "pkg-config",
]
diff --git a/crates/nu-command/Cargo.toml b/crates/nu-command/Cargo.toml
index 8a9d29562..374ffa153 100644
--- a/crates/nu-command/Cargo.toml
+++ b/crates/nu-command/Cargo.toml
@@ -89,6 +89,8 @@ wax = { version = "0.5.0", features = ["diagnostics"] }
rusqlite = { version = "0.28.0", features = ["bundled"], optional = true }
sqlparser = { version = "0.16.0", features = ["serde"], optional = true }
+zstd = { version = "*", features = [ "pkg-config" ] }
+
[target.'cfg(unix)'.dependencies]
umask = "2.0.0"
users = "0.11.0"