2021-02-01 10:56:02 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, gnupg }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ssh-to-pgp";
|
2021-02-23 10:31:12 +00:00
|
|
|
version = "1.0.1";
|
2021-02-01 10:56:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = "ssh-to-pgp";
|
|
|
|
rev = version;
|
2021-02-23 10:31:12 +00:00
|
|
|
sha256 = "sha256-5Wg0ItAkAb0zlhzcuDT9o0XIIbG9kqk4mIYb6hSJlsI=";
|
2021-02-01 10:56:02 +00:00
|
|
|
};
|
|
|
|
|
2021-02-23 10:31:12 +00:00
|
|
|
vendorSha256 = "sha256-OMWiJ1n8ynvIGcmotjuGGsRuAidYgVo5Y5JjrAw8fpc=";
|
2021-02-01 10:56:02 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|