Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, stdenv, Security }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "rucredstash"; 5 version = "0.9.0"; 6 7 src = fetchFromGitHub { 8 owner = "psibi"; 9 repo = "rucredstash"; 10 rev = "v${version}"; 11 sha256 = "1jwsj2y890nxpgmlfbr9hms2raspp5h89ykzsh014mf7lb3yxzwg"; 12 }; 13 14 cargoLock = { 15 lockFile = ./Cargo.lock; 16 }; 17 18 nativeBuildInputs = [ pkg-config ]; 19 buildInputs = [ openssl ] 20 ++ lib.optional stdenv.isDarwin Security; 21 22 # Disable tests since it requires network access and relies on the 23 # presence of certain AWS infrastructure 24 doCheck = false; 25 26 # update Cargo.lock to work with openssl 3 27 postPatch = '' 28 ln -sf ${./Cargo.lock} Cargo.lock 29 ''; 30 31 meta = with lib; { 32 description = "Rust port for credstash. Manages credentials securely in AWS cloud"; 33 homepage = "https://github.com/psibi/rucredstash"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ psibi ]; 36 }; 37}