2021-09-22 15:38:15 +00:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, Security }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
# Renaming it to amber-secret because another package named amber exists
|
|
|
|
pname = "amber-secret";
|
2022-01-27 00:19:43 +00:00
|
|
|
version = "0.1.2";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "fpco";
|
|
|
|
repo = "amber";
|
|
|
|
rev = "v${version}";
|
2022-01-27 00:19:43 +00:00
|
|
|
sha256 = "sha256-+vipQl/HWoYnOPkQLjeIedpnnqPVYaUWhks9eCgMOxQ=";
|
2021-09-22 15:38:15 +00:00
|
|
|
};
|
|
|
|
|
2022-01-27 00:19:43 +00:00
|
|
|
cargoSha256 = "sha256-xWEQvCyd8auE0q9rBt9iDgU8Dscf4pq/gsAINH2eQY4=";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Manage secret values in-repo via public key cryptography";
|
|
|
|
homepage = "https://github.com/fpco/amber";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ psibi ];
|
|
|
|
mainProgram = "amber";
|
|
|
|
};
|
|
|
|
}
|