summary refs log tree commit diff
path: root/pkgs/tools/security/rucredstash
diff options
context:
space:
mode:
authorSibi Prabakaran <sibi@psibi.in>2022-01-20 07:40:08 +0530
committerGitHub <noreply@github.com>2022-01-20 03:10:08 +0100
commit5b3d192e40b09262efcf9d250f41203e6ccd0d9d (patch)
treec048b2e360469b04357ba764fea7e781d554565f /pkgs/tools/security/rucredstash
parentd5ea0b1d915fb7d90e3a3453278bcb1d7d6ceff5 (diff)
downloadnixpkgs-5b3d192e40b09262efcf9d250f41203e6ccd0d9d.tar
nixpkgs-5b3d192e40b09262efcf9d250f41203e6ccd0d9d.tar.gz
nixpkgs-5b3d192e40b09262efcf9d250f41203e6ccd0d9d.tar.bz2
nixpkgs-5b3d192e40b09262efcf9d250f41203e6ccd0d9d.tar.lz
nixpkgs-5b3d192e40b09262efcf9d250f41203e6ccd0d9d.tar.xz
nixpkgs-5b3d192e40b09262efcf9d250f41203e6ccd0d9d.tar.zst
nixpkgs-5b3d192e40b09262efcf9d250f41203e6ccd0d9d.zip
rucredstash: init at 0.9.0 (#155135)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/tools/security/rucredstash')
-rw-r--r--pkgs/tools/security/rucredstash/default.nix30
1 files changed, 30 insertions, 0 deletions
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 ];
+  };
+}