nixpkgs/pkgs/tools/security/ssh-to-pgp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

30 lines
665 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildGoModule, gnupg }:
buildGoModule rec {
pname = "ssh-to-pgp";
2023-06-23 15:32:59 +00:00
version = "1.0.4";
src = fetchFromGitHub {
owner = "Mic92";
repo = "ssh-to-pgp";
rev = version;
2023-06-23 15:32:59 +00:00
sha256 = "sha256-WdSa7rLUGcn1XZSnbwglp4I432XzB3vXb6IO3biE+Js=";
};
2023-06-23 15:32:59 +00:00
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 ];
};
}