3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/aws-c-compression/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
773 B
Nix
Raw Normal View History

2021-09-25 19:32:31 +01:00
{ lib, stdenv
, fetchFromGitHub
, aws-c-common
, cmake
, nix
2021-09-25 19:32:31 +01:00
}:
stdenv.mkDerivation rec {
pname = "aws-c-compression";
2022-11-11 07:32:23 +00:00
version = "0.2.16";
2021-09-25 19:32:31 +01:00
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-c-compression";
rev = "v${version}";
2022-11-11 07:32:23 +00:00
sha256 = "sha256-aQ5UsMms8aJh5yrE9of1AQgIGTAk9vyBRaybwYqUY68=";
2021-09-25 19:32:31 +01:00
};
nativeBuildInputs = [
cmake
];
buildInputs = [
aws-c-common
];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
];
passthru.tests = {
inherit nix;
};
2021-09-25 19:32:31 +01: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 ];
};
}