depot/third_party/nixpkgs/pkgs/by-name/ch/charm-freeze/package.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

26 lines
773 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "charm-freeze";
version = "0.1.6";
src = fetchFromGitHub {
owner = "charmbracelet";
repo = "freeze";
rev = "v${version}";
hash = "sha256-HLlMUOLDvNLVl4dvtyRwuLhp3pOlpm/naUXK2NiIAg8=";
};
vendorHash = "sha256-AUFzxmQOb/h0UgcprY09IVI7Auitn3JTDU/ptKicIAU=";
ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
meta = with lib; {
description = "A 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 ];
};
}