nixpkgs/pkgs/development/libraries/aws-c-cal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
819 B
Nix
Raw Normal View History

2022-09-04 05:28:56 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, aws-c-common, nix, openssl, Security }:
2020-12-26 04:04:58 +00:00
stdenv.mkDerivation rec {
pname = "aws-c-cal";
2022-10-17 07:17:04 +00:00
version = "0.5.20";
2020-12-26 04:04:58 +00:00
src = fetchFromGitHub {
owner = "awslabs";
repo = pname;
rev = "v${version}";
2022-10-17 07:17:04 +00:00
sha256 = "sha256-YBZrOyianmD0E5WcklLkud1WGF/t08XIbfu5qbEo+g4=";
2020-12-26 04:04:58 +00:00
};
nativeBuildInputs = [ cmake ];
buildInputs = [ aws-c-common openssl ];
propagatedBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
2020-12-26 04:04:58 +00:00
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
];
2022-09-04 05:28:56 +00:00
passthru.tests = {
inherit nix;
};
2020-12-26 04:04:58 +00:00
meta = with lib; {
description = "AWS Crypto Abstraction Layer ";
homepage = "https://github.com/awslabs/aws-c-cal";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ orivej ];
};
}