686ce24904
GitOrigin-RevId: ac1f5b72a9e95873d1de0233fddcb56f99884b37
26 lines
770 B
Nix
26 lines
770 B
Nix
{ lib, stdenv, rustPlatform, fetchFromGitHub, Security }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
# Renaming it to amber-secret because another package named amber exists
|
|
pname = "amber-secret";
|
|
version = "0.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fpco";
|
|
repo = "amber";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-11dqfOi/DdfFrFTeboPyFkixXG+fCJ2jpHM55qsQ1jw=";
|
|
};
|
|
|
|
cargoHash = "sha256-u0vceIurenYnKfF3gWNw304hX4vVFoszZD7AMwffOmc=";
|
|
|
|
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";
|
|
};
|
|
}
|