diff options
author | Jörg Thalheim <joerg@thalheim.io> | 2021-02-01 11:56:02 +0100 |
---|---|---|
committer | Jörg Thalheim <joerg@thalheim.io> | 2021-02-01 12:10:54 +0100 |
commit | 0d7fbbe1d6df4862f882bb4e49a68619c1667680 (patch) | |
tree | 24ee5af793f0a0cfffed5bf46a9230238c7b03e5 /pkgs/tools/security/ssh-to-pgp | |
parent | 241780287ec5d2e44e7ac4608a7665b7961ac3ce (diff) |
ssh-to-pgp: init at 1.0.0
This is needed for onboarding sops-nix.
Diffstat (limited to 'pkgs/tools/security/ssh-to-pgp')
-rw-r--r-- | pkgs/tools/security/ssh-to-pgp/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/tools/security/ssh-to-pgp/default.nix b/pkgs/tools/security/ssh-to-pgp/default.nix new file mode 100644 index 0000000000000..f1c7ee939c878 --- /dev/null +++ b/pkgs/tools/security/ssh-to-pgp/default.nix @@ -0,0 +1,30 @@ +{ lib, fetchFromGitHub, buildGoModule, gnupg }: + +buildGoModule rec { + pname = "ssh-to-pgp"; + version = "1.0.0"; + + src = fetchFromGitHub { + owner = "Mic92"; + repo = "ssh-to-pgp"; + rev = version; + sha256 = "sha256-TDrpnWAez8muysMdmKFBDZfK8CyhGn1VqHB8+zD6jSk="; + }; + + vendorSha256 = "sha256-ZF/WsmqmGHZIAGTPKJ70UhtmssNhiInEZfzrKxQLw9I="; + + checkInputs = [ gnupg ]; + checkPhase = '' + HOME=$TMPDIR go test . + ''; + + doCheck = true; + + meta = with lib; { + description = "Convert ssh private keys to PGP"; + homepage = "https://github.com/Mic92/ssh-to-pgp"; + license = licenses.mit; + maintainers = with maintainers; [ mic92 ]; + platforms = platforms.unix; + }; +} |