2022-05-18 14:49:53 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2022-02-20 05:27:41 +00:00
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
, rustPlatform
|
2022-04-27 09:35:20 +00:00
|
|
|
, testers
|
2022-05-18 14:49:53 +00:00
|
|
|
, Security
|
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
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nativeBuildInputs = [ cmake rustPlatform.bindgenHook ];
|
2024-09-26 11:04:55 +00:00
|
|
|
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
|
2022-02-20 05:27:41 +00:00
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"amazon-qldb-driver-0.1.0" = "sha256-az0rANBcryHHnpGWvo15TGGW4KMUULZHaj5msIHts14=";
|
|
|
|
};
|
|
|
|
};
|
2022-02-20 05:27:41 +00:00
|
|
|
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Interface to send PartiQL statements to Amazon Quantum Ledger Database (QLDB)";
|
2022-02-20 05:27:41 +00:00
|
|
|
homepage = "https://github.com/awslabs/amazon-qldb-shell";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.terlar ];
|
2022-03-05 16:20:37 +00:00
|
|
|
mainProgram = "qldb";
|
2024-04-21 15:54:59 +00:00
|
|
|
# See https://hydra.nixos.org/build/255146098/log.
|
|
|
|
broken = true; # Added 2024-04-06
|
2022-02-20 05:27:41 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
|
|
|
package
|