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

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

31 lines
682 B
Nix
Raw Normal View History

2021-08-29 12:07:24 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "ssh-to-age";
2023-06-25 14:26:20 +00:00
version = "1.1.4";
2021-08-29 12:07:24 +00:00
src = fetchFromGitHub {
owner = "Mic92";
repo = "ssh-to-age";
rev = version;
2023-06-25 14:26:20 +00:00
sha256 = "sha256-guBwwIXKAr9rtkiitFPs+usdzCQacnXcn5bTtQY77AY=";
2021-08-29 12:07:24 +00:00
};
2023-06-25 14:26:20 +00:00
vendorHash = "sha256-NEHZ2ZakkO6Yw2pZdKIfCp9NzjgIRIVxARpcQOBGse4=";
2021-08-29 12:07:24 +00:00
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 ];
};
}