d5f4a57cbf
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
42 lines
773 B
Nix
42 lines
773 B
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, aws-c-common
|
|
, cmake
|
|
, nix
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "aws-c-compression";
|
|
version = "0.2.17";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "awslabs";
|
|
repo = "aws-c-compression";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-XtmSThfz4Cu7CygYrLNQifDCQ6l/c/0OR0lX+OxCYJM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [
|
|
aws-c-common
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
];
|
|
|
|
passthru.tests = {
|
|
inherit nix;
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|