1{ lib, fetchFromGitHub, buildGoModule, gnupg }:
2
3buildGoModule rec {
4 pname = "ssh-to-pgp";
5 version = "1.0.1";
6
7 src = fetchFromGitHub {
8 owner = "Mic92";
9 repo = "ssh-to-pgp";
10 rev = version;
11 sha256 = "sha256-5Wg0ItAkAb0zlhzcuDT9o0XIIbG9kqk4mIYb6hSJlsI=";
12 };
13
14 vendorSha256 = "sha256-OMWiJ1n8ynvIGcmotjuGGsRuAidYgVo5Y5JjrAw8fpc=";
15
16 nativeCheckInputs = [ gnupg ];
17 checkPhase = ''
18 HOME=$TMPDIR go test .
19 '';
20
21 doCheck = true;
22
23 meta = with lib; {
24 description = "Convert ssh private keys to PGP";
25 homepage = "https://github.com/Mic92/ssh-to-pgp";
26 license = licenses.mit;
27 maintainers = with maintainers; [ mic92 ];
28 };
29}