2022-03-28 15:38:33 +01:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "melt";
|
2022-05-15 14:26:56 +01:00
|
|
|
version = "0.4.1";
|
2022-03-28 15:38:33 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "melt";
|
|
|
|
rev = "v${version}";
|
2022-05-15 14:26:56 +01:00
|
|
|
sha256 = "sha256-C5bvlgyHU4lfmaAjNddnVyB2B41Wq7yO/RmARAeaORw=";
|
2022-03-28 15:38:33 +01:00
|
|
|
};
|
|
|
|
|
2022-05-09 20:36:28 +01:00
|
|
|
vendorSha256 = "sha256-9LTR7CrTBGAh7TPMQenY4vZQ7KMYv02fDsY51pkJZSo=";
|
2022-03-28 15:38:33 +01:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Backup and restore Ed25519 SSH keys with seed words";
|
|
|
|
homepage = "https://github.com/charmbracelet/melt";
|
|
|
|
changelog = "https://github.com/charmbracelet/melt/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ penguwin ];
|
|
|
|
};
|
|
|
|
}
|