From 5b3d192e40b09262efcf9d250f41203e6ccd0d9d Mon Sep 17 00:00:00 2001 From: Sibi Prabakaran Date: Thu, 20 Jan 2022 07:40:08 +0530 Subject: [PATCH] rucredstash: init at 0.9.0 (#155135) Co-authored-by: Sandro --- pkgs/tools/security/rucredstash/default.nix | 30 +++++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 +++ 2 files changed, 34 insertions(+) create mode 100644 pkgs/tools/security/rucredstash/default.nix diff --git a/pkgs/tools/security/rucredstash/default.nix b/pkgs/tools/security/rucredstash/default.nix new file mode 100644 index 00000000000..14ecfa085fb --- /dev/null +++ b/pkgs/tools/security/rucredstash/default.nix @@ -0,0 +1,30 @@ +{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, Security }: + +rustPlatform.buildRustPackage rec { + pname = "rucredstash"; + version = "0.9.0"; + + src = fetchFromGitHub { + owner = "psibi"; + repo = "rucredstash"; + rev = "v${version}"; + sha256 = "1jwsj2y890nxpgmlfbr9hms2raspp5h89ykzsh014mf7lb3yxzwg"; + }; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ openssl ] + ++ lib.optional stdenv.isDarwin Security; + + # Disable tests since it requires network access and relies on the + # presence of certain AWS infrastructure + doCheck = false; + + cargoSha256 = "0qnfrwpdvjksc97iiwn1r6fyqaqn0q3ckbdzswf9flvwshqzb6ih"; + + meta = with lib; { + description = "Rust port for credstash. Manages credentials securely in AWS cloud"; + homepage = "https://github.com/psibi/rucredstash"; + license = licenses.mit; + maintainers = with maintainers; [ psibi ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 6c69f0e384e..35b6d07c606 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -28405,6 +28405,10 @@ with pkgs; rubyripper = callPackage ../applications/audio/rubyripper {}; + rucredstash = callPackage ../tools/security/rucredstash { + inherit (darwin.apple_sdk.frameworks) Security; + }; + runc = callPackage ../applications/virtualization/runc {}; rymcast = callPackage ../applications/audio/rymcast {