depot/third_party/nixpkgs/pkgs/tools/security/ssh-to-pgp/default.nix
Default email 9c6ee729d6 Project import generated by Copybara.
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
2023-07-15 19:15:38 +02:00

29 lines
665 B
Nix

{ lib, fetchFromGitHub, buildGoModule, gnupg }:
buildGoModule rec {
pname = "ssh-to-pgp";
version = "1.0.4";
src = fetchFromGitHub {
owner = "Mic92";
repo = "ssh-to-pgp";
rev = version;
sha256 = "sha256-WdSa7rLUGcn1XZSnbwglp4I432XzB3vXb6IO3biE+Js=";
};
vendorHash = "sha256-J9HuZhjeXSS4ej1RM+yn2VGoSdiS39PDM4fScAh6Eps=";
nativeCheckInputs = [ 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 ];
};
}