5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
31 lines
714 B
Nix
31 lines
714 B
Nix
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
buildGoModule rec {
|
|
pname = "ssh-to-age";
|
|
version = "1.1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Mic92";
|
|
repo = "ssh-to-age";
|
|
rev = version;
|
|
sha256 = "sha256-cYSrosDFdueEJPQdDYCMObMPwQTvuXUBHXPO0rhehxk=";
|
|
};
|
|
|
|
vendorHash = "sha256-dmxFkoz/2qyUv2/I8bLFTYAfUcYdHjVYQgmg8xleIxA=";
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
go test ./...
|
|
runHook postCheck
|
|
'';
|
|
|
|
doCheck = true;
|
|
|
|
meta = with lib; {
|
|
description = "Convert ssh private keys in ed25519 format to age keys";
|
|
homepage = "https://github.com/Mic92/ssh-to-age";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ mic92 ];
|
|
mainProgram = "ssh-to-age";
|
|
};
|
|
}
|