nixpkgs/pkgs/tools/security/melt/default.nix
2022-04-15 20:28:34 +02:00

26 lines
722 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "melt";
version = "0.3.0";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "melt";
rev = "v${version}";
sha256 = "sha256-I1LNCrJo3Ihh03aTUG0QhS6ySuMqNJJGyZ8XZzClDlU=";
};
vendorSha256 = "sha256-eRFWDyXN2c5VSxYOE12sczYP3rGtzLjY9M2DQgHNFyA=";
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 ];
};
}