2021-02-01 10:56:02 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule, gnupg }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "ssh-to-pgp";
|
2023-06-23 15:32:59 +00:00
|
|
|
version = "1.0.4";
|
2021-02-01 10:56:02 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Mic92";
|
|
|
|
repo = "ssh-to-pgp";
|
|
|
|
rev = version;
|
2023-06-23 15:32:59 +00:00
|
|
|
sha256 = "sha256-WdSa7rLUGcn1XZSnbwglp4I432XzB3vXb6IO3biE+Js=";
|
2021-02-01 10:56:02 +00:00
|
|
|
};
|
|
|
|
|
2023-06-23 15:32:59 +00:00
|
|
|
vendorHash = "sha256-J9HuZhjeXSS4ej1RM+yn2VGoSdiS39PDM4fScAh6Eps=";
|
2021-02-01 10:56:02 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [ gnupg ];
|
2021-02-01 10:56:02 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|