Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / aws-c-compression / default.nix
blobcc486bc3e6d78b15e21d382d9ee2347f8be476c9
1 { lib, stdenv
2 , fetchFromGitHub
3 , aws-c-common
4 , cmake
5 , nix
6 }:
8 stdenv.mkDerivation rec {
9   pname = "aws-c-compression";
10   version = "0.2.17";
12   src = fetchFromGitHub {
13     owner = "awslabs";
14     repo = "aws-c-compression";
15     rev = "v${version}";
16     sha256 = "sha256-XtmSThfz4Cu7CygYrLNQifDCQ6l/c/0OR0lX+OxCYJM=";
17   };
19   nativeBuildInputs = [
20     cmake
21   ];
23   buildInputs = [
24     aws-c-common
25   ];
27   cmakeFlags = [
28     "-DBUILD_SHARED_LIBS=ON"
29   ];
31   passthru.tests = {
32     inherit nix;
33   };
35   meta = with lib; {
36     description = "C99 implementation of huffman encoding/decoding";
37     homepage = "https://github.com/awslabs/aws-c-compression";
38     license = licenses.asl20;
39     platforms = platforms.unix;
40     maintainers = with maintainers; [ r-burns ];
41   };