forked from mirrors/nixpkgs
9cb2503a15
amazon-qldb-shell: fix passthru.tests by specifying mainProgram
42 lines
995 B
Nix
42 lines
995 B
Nix
{ lib
|
|
, clang
|
|
, cmake
|
|
, fetchFromGitHub
|
|
, llvmPackages
|
|
, rustPlatform
|
|
, testVersion
|
|
}:
|
|
|
|
let
|
|
pname = "amazon-qldb-shell";
|
|
version = "2.0.1";
|
|
package = rustPlatform.buildRustPackage {
|
|
inherit pname version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "awslabs";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-aXScqJ1LijMSAy9YkS5QyXtTqxd19lLt3BbyVXlbw8o=";
|
|
};
|
|
|
|
nativeBuildInputs = [ clang cmake ];
|
|
buildInputs = [ llvmPackages.libclang ];
|
|
|
|
cargoSha256 = "sha256-y3dNEa2U9mwsENPda44zweszlk4UJXGtfeH+er8mi0U=";
|
|
|
|
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 ];
|
|
mainProgram = "qldb";
|
|
};
|
|
};
|
|
in
|
|
package
|