Merge pull request #149726 from terlar/add-amazon-qldb-shell

amazon-qldb-shell: init at 2.0.0
This commit is contained in:
Ivv 2022-02-15 15:45:58 +01:00 committed by GitHub
commit 3f73de1332
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,40 @@
{ lib
, clang
, cmake
, fetchFromGitHub
, llvmPackages
, rustPlatform
, testVersion
}:
let
pname = "amazon-qldb-shell";
version = "2.0.0";
package = rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "awslabs";
repo = pname;
rev = "v${version}";
sha256 = "sha256-Pnm1HxEjjNKpS3tTymtOXxUF7EEnWM+7WBsqeaG8seA=";
};
nativeBuildInputs = [ clang cmake ];
buildInputs = [ llvmPackages.libclang ];
cargoSha256 = "sha256-EUqGSKcGnhrdLn8ystaLkkR31RjEvjW6vRzKPMK77e8=";
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
passthru.tests.version = testVersion { inherit package; };
meta = with lib; {
description = "An interface to send PartiQL statements to Amazon Quantum Ledger Database (QLDB)";
homepage = "https://github.com/awslabs/amazon-qldb-shell";
license = licenses.asl20;
maintainers = [ maintainers.terlar ];
};
};
in
package

View file

@ -1258,6 +1258,8 @@ with pkgs;
amazon-ecs-cli = callPackage ../tools/virtualization/amazon-ecs-cli { };
amazon-qldb-shell = callPackage ../development/tools/amazon-qldb-shell { };
amber = callPackage ../tools/text/amber {
inherit (darwin.apple_sdk.frameworks) Security;
};