2022-11-21 17:40:18 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, aws-c-common, nix }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "aws-checksums";
|
2024-02-29 20:09:43 +00:00
|
|
|
version = "0.1.18";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-02-29 20:09:43 +00:00
|
|
|
sha256 = "sha256-EhIVa8/IK4evGt4vYECunLpxrCMSOsr1RZ/8hFbRi9M=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
buildInputs = [ aws-c-common ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-11-21 17:40:18 +00:00
|
|
|
passthru.tests = {
|
|
|
|
inherit nix;
|
|
|
|
};
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "HW accelerated CRC32c and CRC32";
|
|
|
|
homepage = "https://github.com/awslabs/aws-checksums";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.unix;
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with maintainers; [ orivej ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|