linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / libraries / aws-checksums / default.nix
blob75b26695e2f2c2bed584a8eeda872d677caa1ff9
1 { lib, stdenv, fetchFromGitHub, cmake, aws-c-common }:
3 stdenv.mkDerivation rec {
4   pname = "aws-checksums";
5   version = "0.1.11";
7   src = fetchFromGitHub {
8     owner = "awslabs";
9     repo = pname;
10     rev = "v${version}";
11     sha256 = "sha256-fXu7GI2UR9QiBGP2n2pEFRjz9ZwA+BAK9zxhNnoYWt4=";
12   };
14   nativeBuildInputs = [ cmake ];
16   buildInputs = [ aws-c-common ];
18   cmakeFlags = [
19     "-DBUILD_SHARED_LIBS=ON"
20     "-DCMAKE_MODULE_PATH=${aws-c-common}/lib/cmake"
21   ];
23   meta = with lib; {
24     description = "HW accelerated CRC32c and CRC32";
25     homepage = "https://github.com/awslabs/aws-checksums";
26     license = licenses.asl20;
27     platforms = platforms.unix;
28     maintainers = with maintainers; [ orivej eelco ];
29   };