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.

32 lines
716 B
Nix
Raw Normal View History

2021-08-29 12:07:24 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "ssh-to-age";
2022-07-30 08:09:18 +00:00
version = "1.0.2";
2021-08-29 12:07:24 +00:00
src = fetchFromGitHub {
owner = "Mic92";
repo = "ssh-to-age";
rev = version;
2022-07-30 08:09:18 +00:00
sha256 = "sha256-sjiOmIoFyl1Kr4RKg1TqXJNIq2/HF91oxDLtRDa+eWw=";
2021-08-29 12:07:24 +00:00
};
2022-07-30 08:09:18 +00:00
vendorSha256 = "sha256-Xi5aJAYgbtrDq7KBAfZR1LT5/jbslwEa70qaFqW4vcQ=";
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 ];
platforms = platforms.unix;
};
}