nixpkgs/pkgs/by-name/ch/charm-freeze/package.nix

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

38 lines
808 B
Nix
Raw Normal View History

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "charm-freeze";
2024-04-09 10:47:59 +00:00
version = "0.1.6";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "freeze";
rev = "v${version}";
2024-04-09 10:47:59 +00:00
hash = "sha256-HLlMUOLDvNLVl4dvtyRwuLhp3pOlpm/naUXK2NiIAg8=";
};
2024-04-09 10:47:59 +00:00
vendorHash = "sha256-AUFzxmQOb/h0UgcprY09IVI7Auitn3JTDU/ptKicIAU=";
ldflags = [
"-s"
"-w"
"-X=main.Version=${version}"
];
meta = with lib; {
description = "Tool to generate images of code and terminal output";
mainProgram = "freeze";
homepage = "https://github.com/charmbracelet/freeze";
changelog = "https://github.com/charmbracelet/freeze/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [
caarlos0
maaslalani
];
};
}