mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 09:53:10 +00:00
2b49d460ba
Diff: https://github.com/ebiggers/libdeflate/compare/v1.18...1.19 Changelog: https://github.com/ebiggers/libdeflate/blob/v1.19/NEWS.md
35 lines
933 B
Nix
35 lines
933 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, fixDarwinDylibNames
|
|
, pkgsStatic
|
|
, cmake
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
pname = "libdeflate";
|
|
version = "1.19";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ebiggers";
|
|
repo = "libdeflate";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-HgZ2an1PCPhiLsd3ZA7tgZ1wVTOdHzDr8FHrqJhEbQw=";
|
|
};
|
|
|
|
cmakeFlags = lib.optionals stdenv.hostPlatform.isStatic [ "-DLIBDEFLATE_BUILD_SHARED_LIB=OFF" ];
|
|
|
|
nativeBuildInputs = [ cmake ]
|
|
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
|
|
|
passthru.tests.static = pkgsStatic.libdeflate;
|
|
|
|
meta = with lib; {
|
|
description = "Fast DEFLATE/zlib/gzip compressor and decompressor";
|
|
license = licenses.mit;
|
|
homepage = "https://github.com/ebiggers/libdeflate";
|
|
changelog = "https://github.com/ebiggers/libdeflate/blob/v${version}/NEWS.md";
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ orivej kaction ];
|
|
};
|
|
}
|