amber: init at 0.1.1 (#138159)

This commit is contained in:
Sibi Prabakaran 2021-09-20 18:42:54 +05:30 committed by GitHub
parent c3a8016c29
commit 23acc562d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 30 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ 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.1";
src = fetchFromGitHub {
owner = "fpco";
repo = "amber";
rev = "v${version}";
sha256 = "1l5c7vdi885z56nqqbm4sw9hvqk3rfzm0mgcwk5cbwjlrz7yjq4m";
};
cargoSha256 = "0dmhlyrw6yd7p80v7anz5nrd28bcrhq27vzy605dinddvncjn13q";
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";
};
}

View file

@ -1100,6 +1100,10 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
amber-secret = callPackage ../tools/security/amber {
inherit (darwin.apple_sdk.frameworks) Security;
};
inherit (callPackages ../development/tools/ammonite {})
ammonite_2_12
ammonite_2_13;