From fd7b832320d5daa6d0d6c6b3329ecb32a6223303 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 9 May 2023 12:54:48 -0400 Subject: [PATCH] cargo-dist: 0.0.6 -> 0.0.7 Diff: https://github.com/axodotdev/cargo-dist/compare/v0.0.6...v0.0.7 Changelog: https://github.com/axodotdev/cargo-dist/blob/v0.0.7/CHANGELOG.md --- pkgs/development/tools/rust/cargo-dist/default.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-dist/default.nix b/pkgs/development/tools/rust/cargo-dist/default.nix index 362907a4941c..50e9f240ba1d 100644 --- a/pkgs/development/tools/rust/cargo-dist/default.nix +++ b/pkgs/development/tools/rust/cargo-dist/default.nix @@ -3,22 +3,24 @@ , fetchFromGitHub , pkg-config , bzip2 +, xz +, zstd , stdenv , rustup }: rustPlatform.buildRustPackage rec { pname = "cargo-dist"; - version = "0.0.6"; + version = "0.0.7"; src = fetchFromGitHub { owner = "axodotdev"; repo = "cargo-dist"; rev = "v${version}"; - hash = "sha256-fpOBSMVBkuFJcog5g5qFO/0GI78GkkwWQC7zocrVJ2w="; + hash = "sha256-uXC+iaOcEIyGMVNtAduhT68GuE29aL/3S6uEMllAWNA="; }; - cargoHash = "sha256-BqbF21OotztNZsol6wlTDzfz0ViybPF5KK/v+F9N5Us="; + cargoHash = "sha256-/TLi+ESOZhJ4Xg3hdUEWhM0K4asI9+L1M1+hWuDOj9Q="; nativeBuildInputs = [ pkg-config @@ -26,8 +28,14 @@ rustPlatform.buildRustPackage rec { buildInputs = [ bzip2 + xz + zstd ]; + env = { + ZSTD_SYS_USE_PKG_CONFIG = true; + }; + nativeCheckInputs = lib.optionals stdenv.isDarwin [ rustup ];