mirror of
https://github.com/Mic92/sops-nix.git
synced 2026-05-13 16:38:45 +08:00
add ssh-to-pgp package
This commit is contained in:
parent
cbf6c6b93a
commit
81f9f69b84
3 changed files with 45 additions and 4 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ buildGoModule, path, pkgs }:
|
||||
{ buildGoModule, path, pkgs, vendorSha256 }:
|
||||
buildGoModule {
|
||||
pname = "sops-install-secrets";
|
||||
version = "0.0.1";
|
||||
|
|
@ -12,5 +12,13 @@ buildGoModule {
|
|||
inherit pkgs;
|
||||
};
|
||||
|
||||
vendorSha256 = "sha256-O0z+oEffOOZa/bn2gV9onLVbPBHsNDH2yq1CZPi8w58=";
|
||||
inherit vendorSha256;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Atomic secret provisioning based on sops";
|
||||
homepage = "https://github.com/Mic92/sops-nix";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
26
pkgs/ssh-to-pgp/default.nix
Normal file
26
pkgs/ssh-to-pgp/default.nix
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
{ stdenv, buildGoModule, gnupg, vendorSha256, }:
|
||||
buildGoModule {
|
||||
pname = "ssh-to-pgp";
|
||||
version = "0.0.1";
|
||||
|
||||
src = ../..;
|
||||
|
||||
subPackages = [ "pkgs/ssh-to-pgp" ];
|
||||
|
||||
checkInputs = [ gnupg ];
|
||||
checkPhase = ''
|
||||
HOME=$TMPDIR go test ./pkgs/ssh-to-pgp
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
inherit vendorSha256;
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
description = "Convert ssh public/private keys to PGP";
|
||||
homepage = "https://github.com/Mic92/sops-nix";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ mic92 ];
|
||||
platforms = platforms.unix;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue