1 { lib, stdenv, rustPlatform, fetchFromGitHub, Security }:
3 rustPlatform.buildRustPackage rec {
4 # Renaming it to amber-secret because another package named amber exists
5 pname = "amber-secret";
8 src = fetchFromGitHub {
12 sha256 = "sha256-FoERgkyFCZ1nU01LXpzrqz9eJ9a16L/t+9g8jsABHK4=";
15 cargoHash = "sha256-Joy+SO1zR78Eh5eK2bxyT0l3hCuLX/J3u/UvN+++6vg=";
17 buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
20 description = "Manage secret values in-repo via public key cryptography";
21 homepage = "https://github.com/fpco/amber";
22 license = licenses.mit;
23 maintainers = with maintainers; [ psibi ];
24 mainProgram = "amber";