2020-12-26 01:59:53 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, aws-c-common }:
|
2019-02-14 09:08:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aws-checksums";
|
2022-08-28 06:01:46 +00:00
|
|
|
version = "0.1.13";
|
2019-02-14 09:08:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-08-28 06:01:46 +00:00
|
|
|
sha256 = "sha256-pSUSJTbwKYF2GsJG8DhLxxsv1ssp+/1c2gMY4dXbdFQ=";
|
2019-02-14 09:08:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-12-26 01:59:53 +00:00
|
|
|
buildInputs = [ aws-c-common ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
|
|
];
|
2020-02-09 09:20:00 +00:00
|
|
|
|
2019-02-14 09:08:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "HW accelerated CRC32c and CRC32";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/awslabs/aws-checksums";
|
2019-02-14 09:08:22 +00:00
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ orivej eelco ];
|
|
|
|
};
|
|
|
|
}
|