fx: 36.0.0 -> 36.0.3

and refactor

Signed-off-by: phanirithvij <phanirithvij2000@gmail.com>
This commit is contained in:
phanirithvij 2025-05-24 14:57:00 +05:30
parent f86f81ef0f
commit 4460656436

View file

@ -5,21 +5,23 @@
installShellFiles, installShellFiles,
}: }:
buildGoModule rec { buildGoModule (finalAttrs: {
pname = "fx"; pname = "fx";
version = "36.0.0"; version = "36.0.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "antonmedv"; owner = "antonmedv";
repo = "fx"; repo = "fx";
rev = version; tag = finalAttrs.version;
hash = "sha256-wUiyMczToGqfHZ/FMUhCO4ud6h/bNHhVt4eWoZJckbU="; hash = "sha256-SUv6kHqIft7M7XyypA7jBYcEuYHLYYVtTnwgL1vhT3w=";
}; };
nativeBuildInputs = [ installShellFiles ];
vendorHash = "sha256-8KiCj2khO0zxsZDG1YD0EjsoZSY4q+IXC+NLeeXgVj4="; vendorHash = "sha256-8KiCj2khO0zxsZDG1YD0EjsoZSY4q+IXC+NLeeXgVj4=";
ldflags = [ "-s" ];
nativeBuildInputs = [ installShellFiles ];
postInstall = '' postInstall = ''
installShellCompletion --cmd fx \ installShellCompletion --cmd fx \
--bash <($out/bin/fx --comp bash) \ --bash <($out/bin/fx --comp bash) \
@ -27,12 +29,12 @@ buildGoModule rec {
--zsh <($out/bin/fx --comp zsh) --zsh <($out/bin/fx --comp zsh)
''; '';
meta = with lib; { meta = {
changelog = "https://github.com/antonmedv/fx/releases/tag/${finalAttrs.src.tag}";
description = "Terminal JSON viewer"; description = "Terminal JSON viewer";
mainProgram = "fx";
homepage = "https://github.com/antonmedv/fx"; homepage = "https://github.com/antonmedv/fx";
changelog = "https://github.com/antonmedv/fx/releases/tag/${src.rev}"; license = lib.licenses.mit;
license = licenses.mit; mainProgram = "fx";
maintainers = with maintainers; [ figsoda ]; maintainers = with lib.maintainers; [ figsoda ];
}; };
} })