1
0
Fork 0
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:
Jörg Thalheim 2020-07-12 17:18:12 +01:00
parent cbf6c6b93a
commit 81f9f69b84
No known key found for this signature in database
GPG key ID: 003F2096411B5F92
3 changed files with 45 additions and 4 deletions

View file

@ -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;
};
}

View file

@ -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;
};
}

View 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;
};
}