blob: 308552b99e2bfd1b13d7dfddaea3c35f643ce862 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
{ stdenv
, lib
, cmake
, fetchFromGitHub
, rustPlatform
, testers
, Security
}:
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 = [ cmake rustPlatform.bindgenHook ];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"amazon-qldb-driver-0.1.0" = "sha256-az0rANBcryHHnpGWvo15TGGW4KMUULZHaj5msIHts14=";
};
};
passthru.tests.version = testers.testVersion { inherit package; };
meta = with lib; {
description = "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";
# See https://hydra.nixos.org/build/255146098/log.
broken = true; # Added 2024-04-06
};
};
in
package
|