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