mirror of
https://github.com/Mic92/sops-nix.git
synced 2024-12-14 11:57:52 +00:00
add ssh-to-pgp package
This commit is contained in:
parent
cbf6c6b93a
commit
81f9f69b84
3 changed files with 45 additions and 4 deletions
11
default.nix
11
default.nix
|
@ -1,5 +1,12 @@
|
|||
{ pkgs ? import <nixpkgs> {} }: {
|
||||
{ pkgs ? import <nixpkgs> {} }: let
|
||||
vendorSha256 = "sha256-O0z+oEffOOZa/bn2gV9onLVbPBHsNDH2yq1CZPi8w58=";
|
||||
in {
|
||||
sops-init-gpg-key = pkgs.callPackage ./pkgs/sops-init-gpg-key {};
|
||||
sops-install-secrets = pkgs.callPackage ./pkgs/sops-install-secrets {};
|
||||
sops-install-secrets = pkgs.callPackage ./pkgs/sops-install-secrets {
|
||||
inherit vendorSha256;
|
||||
};
|
||||
sops-shell-hook = pkgs.callPackage ./pkgs/sops-shell-hook {};
|
||||
ssh-to-pgp = pkgs.callPackage ./pkgs/ssh-to-pgp {
|
||||
inherit vendorSha256;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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…
Reference in a new issue