nixpkgs/pkgs/development/tools/amazon-qldb-shell/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
1 KiB
Nix
Raw Normal View History

{ stdenv
, lib
2021-12-08 22:37:56 +01:00
, clang
, cmake
, fetchFromGitHub
, llvmPackages
, rustPlatform
, testers
, Security
2021-12-08 22:37:56 +01:00
}:
let
pname = "amazon-qldb-shell";
2022-02-25 02:29:51 +01:00
version = "2.0.1";
2021-12-08 22:37:56 +01:00
package = rustPlatform.buildRustPackage {
inherit pname version;
src = fetchFromGitHub {
owner = "awslabs";
repo = pname;
rev = "v${version}";
2022-02-25 02:29:51 +01:00
sha256 = "sha256-aXScqJ1LijMSAy9YkS5QyXtTqxd19lLt3BbyVXlbw8o=";
2021-12-08 22:37:56 +01:00
};
nativeBuildInputs = [ clang cmake ];
buildInputs = [ llvmPackages.libclang ]
++ lib.optional stdenv.isDarwin Security;
2021-12-08 22:37:56 +01:00
2022-02-25 02:29:51 +01:00
cargoSha256 = "sha256-y3dNEa2U9mwsENPda44zweszlk4UJXGtfeH+er8mi0U=";
2021-12-08 22:37:56 +01:00
LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
passthru.tests.version = testers.testVersion { inherit package; };
2021-12-08 22:37:56 +01: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 ];
mainProgram = "qldb";
2021-12-08 22:37:56 +01:00
};
};
in
package