core/pkgs/by-name/aw/aws-c-sdkutils/default.nix

45 lines
757 B
Nix
Raw Permalink Normal View History

2024-05-02 00:46:19 +00:00
{ lib, stdenv
, fetchFromGitHub
, aws-c-common
, cmake
, nix
}:
stdenv.mkDerivation rec {
pname = "aws-c-sdkutils";
version = "0.1.15";
src = fetchFromGitHub {
owner = "awslabs";
repo = "aws-c-sdkutils";
rev = "v${version}";
hash = "sha256-RTRDbdv+QmRG0Sk/R9qhl45WYEVyl+M0EceLFsoONTI=";
};
nativeBuildInputs = [
cmake
];
buildInputs = [
aws-c-common
];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
];
doCheck = true;
passthru.tests = {
inherit nix;
};
meta = with lib; {
description = "AWS SDK utility library";
homepage = "https://github.com/awslabs/aws-c-sdkutils";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = with maintainers; [ r-burns ];
};
}