2021-09-25 18:32:31 +00:00
|
|
|
{ lib, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, aws-c-common
|
|
|
|
, cmake
|
2022-11-11 00:08:55 +00:00
|
|
|
, nix
|
2021-09-25 18:32:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aws-c-compression";
|
2023-07-15 22:00:28 +00:00
|
|
|
version = "0.2.17";
|
2021-09-25 18:32:31 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "aws-c-compression";
|
|
|
|
rev = "v${version}";
|
2023-07-15 22:00:28 +00:00
|
|
|
sha256 = "sha256-XtmSThfz4Cu7CygYrLNQifDCQ6l/c/0OR0lX+OxCYJM=";
|
2021-09-25 18:32:31 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
cmake
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
aws-c-common
|
|
|
|
];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
|
|
];
|
|
|
|
|
2022-11-11 00:08:55 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit nix;
|
|
|
|
};
|
|
|
|
|
2021-09-25 18:32:31 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "C99 implementation of huffman encoding/decoding";
|
|
|
|
homepage = "https://github.com/awslabs/aws-c-compression";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ r-burns ];
|
|
|
|
};
|
|
|
|
}
|