depot/third_party/nixpkgs/pkgs/tools/security/ssh-to-pgp/default.nix
Default email c7f94ff3ce Project import generated by Copybara.
GitOrigin-RevId: b85ed9dcbf187b909ef7964774f8847d554fab3b
2023-08-22 22:05:09 +02:00

29 lines
665 B
Nix

{ lib, fetchFromGitHub, buildGoModule, gnupg }:
buildGoModule rec {
pname = "ssh-to-pgp";
version = "1.1.0";
src = fetchFromGitHub {
owner = "Mic92";
repo = "ssh-to-pgp";
rev = version;
sha256 = "sha256-3R/3YPYLdirK3QtiRNO2tpJRO2DKgN+K4txb9xwnQvQ=";
};
vendorHash = "sha256-RCz2+IZdgmPnEakKxn/C3zFfRyWnMLB51Nm8VGOxBkc=";
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 ];
};
}