zstd: enable strictDeps, enable structuredAttrs, modernize (#551969)

This commit is contained in:
Robert Hensing
2026-08-14 11:21:05 +00:00
committed by GitHub

View File

@@ -38,13 +38,15 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "facebook";
repo = "zstd";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-tNFWIT9ydfozB8dWcmTMuZLCQmQudTFJIkSr0aG7S44=";
};
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
buildInputs = lib.optional stdenv.hostPlatform.isUnix bashNonInteractive;
strictDeps = true;
patches = [
# This patches makes sure we do not attempt to use the MD5 implementation
# of the host platform when running the tests
@@ -144,6 +146,8 @@ stdenv.mkDerivation (finalAttrs: {
};
};
__structuredAttrs = true;
meta = {
description = "Zstandard real-time compression algorithm";
longDescription = ''