libdeflate: enable strictDeps, enable structuredAttrs, modernize (#558322)

This commit is contained in:
Stefan Frijters
2026-08-31 11:13:22 +00:00
committed by GitHub

View File

@@ -16,7 +16,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "ebiggers";
repo = "libdeflate";
rev = "v${finalAttrs.version}";
tag = "v${finalAttrs.version}";
hash = "sha256-2TiV3kmFs9j4aYetoYeWg3+MoZ542/0zaD0hwn9b8ZA=";
};
@@ -28,6 +28,8 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [ cmake ] ++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
buildInputs = [ zlib ];
strictDeps = true;
passthru.tests = {
static = pkgsStatic.libdeflate;
pkg-config = testers.hasPkgConfigModules {
@@ -37,6 +39,8 @@ stdenv.mkDerivation (finalAttrs: {
doCheck = true;
__structuredAttrs = true;
meta = {
description = "Fast DEFLATE/zlib/gzip compressor and decompressor";
license = lib.licenses.mit;