12 src = fetchFromGitHub {
13 owner = "charmbracelet";
16 hash = "sha256-gPy3MnQHmBJl06oVOpwQB4qIpJ10kUNMNMPkpsIujeI=";
19 vendorHash = "sha256-vxw8yqY6MxIIWeSX1D+unb0VbBmIpz1431N7UNORJP0=";
21 nativeBuildInputs = [ installShellFiles ];
23 ldflags = [ "-s" "-w" "-X=main.Version=${version}" ];
27 postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
28 installShellCompletion --cmd glow \
29 --bash <($out/bin/glow completion bash) \
30 --fish <($out/bin/glow completion fish) \
31 --zsh <($out/bin/glow completion zsh)
35 description = "Render markdown on the CLI, with pizzazz!";
36 homepage = "https://github.com/charmbracelet/glow";
37 changelog = "https://github.com/charmbracelet/glow/releases/tag/v${version}";
38 license = licenses.mit;
39 maintainers = with maintainers; [ Br1ght0ne penguwin ];