nixpkgs/pkgs/development/libraries/aws-checksums/default.nix

26 lines
625 B
Nix
Raw Normal View History

2019-02-14 10:08:22 +01:00
{ lib, stdenv, fetchFromGitHub, cmake }:
stdenv.mkDerivation rec {
pname = "aws-checksums";
2020-01-26 17:03:35 +01:00
version = "0.1.5";
2019-02-14 10:08:22 +01:00
src = fetchFromGitHub {
owner = "awslabs";
repo = pname;
rev = "v${version}";
2020-01-26 17:03:35 +01:00
sha256 = "018fnpn0jc686jxp5wf8qxmjphk3z43l8n1mgcgaa9zw94i24jgk";
2019-02-14 10:08:22 +01:00
};
nativeBuildInputs = [ cmake ];
2020-02-09 10:20:00 +01:00
cmakeFlags = [ "-DBUILD_SHARED_LIBS:BOOL=ON" ];
2019-02-14 10:08:22 +01:00
meta = with lib; {
description = "HW accelerated CRC32c and CRC32";
homepage = "https://github.com/awslabs/aws-checksums";
2019-02-14 10:08:22 +01:00
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ orivej eelco ];
};
}