2020-11-26 19:03:04 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, fetchpatch }:
|
2019-02-14 09:08:22 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aws-checksums";
|
2020-06-06 02:36:04 +01:00
|
|
|
version = "0.1.7";
|
2019-02-14 09:08:22 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-06-06 02:36:04 +01:00
|
|
|
sha256 = "0am1hfzqir44zcx6y6c7jw74qvbsav8ppr9dahpdh3ac95cjf38a";
|
2019-02-14 09:08:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2020-11-26 19:03:04 +00:00
|
|
|
# can be removed once https://github.com/awslabs/aws-checksums/pull/40 gets merged, and version bumped
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/awslabs/aws-checksums/pull/40/commits/fb5a57b3c072bd88e45de76fbb76bdc89c67b193.patch";
|
|
|
|
sha256 = "056f9kyg1c4lwjq8n0r28w1n3zbwrwpi1wbqabk99gaayg46x35a";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2020-02-09 09:20:00 +00:00
|
|
|
cmakeFlags = [ "-DBUILD_SHARED_LIBS:BOOL=ON" ];
|
|
|
|
|
2019-02-14 09:08:22 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "HW accelerated CRC32c and CRC32";
|
2020-04-01 02:11:51 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|