2022-03-28 14:38:33 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "melt";
|
2022-11-03 16:59:23 +00:00
|
|
|
version = "0.5.0";
|
2022-03-28 14:38:33 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "charmbracelet";
|
|
|
|
repo = "melt";
|
|
|
|
rev = "v${version}";
|
2022-11-03 16:59:23 +00:00
|
|
|
sha256 = "sha256-ZDUvwBxPFE0RBgNGoZlU+LkyIXINZITqBnKDFnr59+Q=";
|
2022-03-28 14:38:33 +00:00
|
|
|
};
|
|
|
|
|
2023-09-13 04:44:46 +00:00
|
|
|
vendorHash = "sha256-vTSLyRdv4rAYvy/2S7NnQNs144wyJOLzFkyBBW0TRmo=";
|
2022-03-28 14:38:33 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|