mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
30 lines
665 B
Nix
30 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 ];
|
|
};
|
|
}
|