2022-02-20 05:27:41 +00:00
|
|
|
{ lib
|
|
|
|
, clang
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, llvmPackages
|
|
|
|
, rustPlatform
|
2022-04-27 09:35:20 +00:00
|
|
|
, testers
|
2022-02-20 05:27:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
pname = "amazon-qldb-shell";
|
2022-03-05 16:20:37 +00:00
|
|
|
version = "2.0.1";
|
2022-02-20 05:27:41 +00:00
|
|
|
package = rustPlatform.buildRustPackage {
|
|
|
|
inherit pname version;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-03-05 16:20:37 +00:00
|
|
|
sha256 = "sha256-aXScqJ1LijMSAy9YkS5QyXtTqxd19lLt3BbyVXlbw8o=";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ clang cmake ];
|
|
|
|
buildInputs = [ llvmPackages.libclang ];
|
|
|
|
|
2022-03-05 16:20:37 +00:00
|
|
|
cargoSha256 = "sha256-y3dNEa2U9mwsENPda44zweszlk4UJXGtfeH+er8mi0U=";
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
passthru.tests.version = testers.testVersion { inherit package; };
|
2022-02-20 05:27:41 +00:00
|
|
|
|
|
|
|
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 ];
|
2022-03-05 16:20:37 +00:00
|
|
|
mainProgram = "qldb";
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
package
|