Files
nixpkgs/pkgs/by-name/dy/dynein/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.1 KiB
Nix

{
fetchFromGitHub,
lib,
cmake,
openssl,
pkg-config,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "dynein";
version = "0.3.0";
src = fetchFromGitHub {
owner = "awslabs";
repo = "dynein";
rev = "v${version}";
hash = "sha256-GU/zZ7IJPfpRbrWjrVwPDSFjFfMLoG/c8DDWlN6nZ94=";
};
# Use system openssl.
OPENSSL_NO_VENDOR = 1;
cargoHash = "sha256-PA7Hvn+vYBD80thkIamwOhw4lJWAmU/TQBnwJro4r7c=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [
openssl
cmake
];
preBuild = ''
export CMAKE=${lib.getDev cmake}/bin/cmake
export OPENSSL_DIR=${lib.getDev openssl}
export OPENSSL_LIB_DIR=${lib.getLib openssl}/lib
'';
# The integration tests will start downloading docker image of DynamoDB, which
# will naturally fail for nix build. The CLI tests do not need DynamoDB.
cargoTestFlags = [ "cli_tests" ];
meta = with lib; {
description = "DynamoDB CLI written in Rust";
mainProgram = "dy";
homepage = "https://github.com/awslabs/dynein";
license = licenses.asl20;
platforms = platforms.unix;
maintainers = [ ];
};
}