e7ec2969af
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
29 lines
665 B
Nix
29 lines
665 B
Nix
{ lib, fetchFromGitHub, buildGoModule, gnupg }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ssh-to-pgp";
|
|
version = "1.1.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = "ssh-to-pgp";
|
|
rev = version;
|
|
sha256 = "sha256-SoHKBuI3ROfWTI45rFdMNkHVYHa5nX1A0/ljgGpF8NY=";
|
|
};
|
|
|
|
vendorHash = "sha256-sHvb6jRSMXIUv1D0dbTJWmETCaFr9BquNmcc8J06m/o=";
|
|
|
|
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 ];
|
|
};
|
|
}
|