depot/third_party/nixpkgs/pkgs/tools/security/rucredstash/default.nix

36 lines
891 B
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
stdenv,
Security,
}:
rustPlatform.buildRustPackage rec {
pname = "rucredstash";
version = "0.9.2";
src = fetchFromGitHub {
owner = "psibi";
repo = "rucredstash";
rev = "v${version}";
hash = "sha256-trupBiinULzD8TAy3eh1MYXhQilO08xu2a4yN7wwhwk=";
};
useFetchCargoVendor = true;
cargoHash = "sha256-QylZkqE8my2ldCjtg3++6TTDm0om3SVp0jwYUZ9qVes=";
buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;
# Disable tests since it requires network access and relies on the
# presence of certain AWS infrastructure
doCheck = false;
meta = with lib; {
description = "Utility for managing credentials securely in AWS cloud";
homepage = "https://github.com/psibi/rucredstash";
license = licenses.mit;
maintainers = with maintainers; [ psibi ];
mainProgram = "rucredstash";
};
}