Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
83 lines
1.4 KiB
Nix
83 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
aws-c-auth,
|
|
aws-c-cal,
|
|
aws-c-common,
|
|
aws-c-compression,
|
|
aws-c-event-stream,
|
|
aws-c-http,
|
|
aws-c-io,
|
|
aws-c-mqtt,
|
|
aws-c-s3,
|
|
aws-checksums,
|
|
cmake,
|
|
s2n-tls,
|
|
nix,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "aws-crt-cpp";
|
|
# nixpkgs-update: no auto update
|
|
version = "0.34.3";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "awslabs";
|
|
repo = "aws-crt-cpp";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-jKmIsWAzxnfsNgHavR6crhIQXVJq/PbQgaj4KVGrMP0=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace CMakeLists.txt \
|
|
--replace-fail "$<INSTALL_INTERFACE:include>" "$<INSTALL_INTERFACE:$dev/include>" \
|
|
--replace-fail '-Werror' ""
|
|
'';
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
aws-c-auth
|
|
aws-c-cal
|
|
aws-c-common
|
|
aws-c-compression
|
|
aws-c-event-stream
|
|
aws-c-http
|
|
aws-c-io
|
|
aws-c-mqtt
|
|
aws-c-s3
|
|
aws-checksums
|
|
s2n-tls
|
|
];
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_DEPS=OFF"
|
|
"-DBUILD_SHARED_LIBS=ON"
|
|
];
|
|
|
|
postInstall = ''
|
|
# Prevent dependency cycle.
|
|
moveToOutput lib/aws-crt-cpp/cmake "$dev"
|
|
'';
|
|
|
|
passthru.tests = {
|
|
inherit nix;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "C++ wrapper around the aws-c-* libraries";
|
|
homepage = "https://github.com/awslabs/aws-crt-cpp";
|
|
license = licenses.asl20;
|
|
platforms = platforms.unix;
|
|
maintainers = with maintainers; [ r-burns ];
|
|
};
|
|
}
|