2022-03-30 09:31:56 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "melt";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.6.1";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "melt";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-AfFsw1Xjj0RsP2LOeMBDffkcqgmxsqsE1iguP/0IDtM=";
|
2022-03-30 09:31:56 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
vendorHash = "sha256-Ec3RWH7I8nv6ZVYLrX0b/2RWwZ6cO4qbs0XqQemUYnE=";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Backup and restore Ed25519 SSH keys with seed words";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "melt";
|
2022-03-30 09:31:56 +00:00
|
|
|
homepage = "https://github.com/charmbracelet/melt";
|
|
|
|
changelog = "https://github.com/charmbracelet/melt/releases/tag/v${version}";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ penguwin ];
|
|
|
|
};
|
|
|
|
}
|