nixpkgs/pkgs/by-name/me/melt/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

27 lines
746 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "melt";
2024-08-16 02:02:41 +00:00
version = "0.6.2";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "melt";
rev = "v${version}";
2024-08-16 02:02:41 +00:00
sha256 = "sha256-rZJSjWmcVPri/BmGrm+fDi2WgtPReQ9lesmBhMsdddo=";
};
2024-08-16 02:02:41 +00:00
vendorHash = "sha256-ZCHPbLjf2rTlg+Nj3v+XRW2xDN0qqhnlrF4sXNrGH/E=";
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
meta = with lib; {
description = "Backup and restore Ed25519 SSH keys with seed words";
mainProgram = "melt";
homepage = "https://github.com/charmbracelet/melt";
changelog = "https://github.com/charmbracelet/melt/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ penguwin ];
};
}