Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 42 lines 773 B view raw
1{ lib, stdenv 2, fetchFromGitHub 3, aws-c-common 4, cmake 5, nix 6}: 7 8stdenv.mkDerivation rec { 9 pname = "aws-c-compression"; 10 version = "0.2.16"; 11 12 src = fetchFromGitHub { 13 owner = "awslabs"; 14 repo = "aws-c-compression"; 15 rev = "v${version}"; 16 sha256 = "sha256-aQ5UsMms8aJh5yrE9of1AQgIGTAk9vyBRaybwYqUY68="; 17 }; 18 19 nativeBuildInputs = [ 20 cmake 21 ]; 22 23 buildInputs = [ 24 aws-c-common 25 ]; 26 27 cmakeFlags = [ 28 "-DBUILD_SHARED_LIBS=ON" 29 ]; 30 31 passthru.tests = { 32 inherit nix; 33 }; 34 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 }; 42}