Files
nixpkgs/pkgs/by-name/g-/g-ls/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

49 lines
1.0 KiB
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
nix-update-script,
installShellFiles,
}:
buildGoModule rec {
pname = "g-ls";
version = "0.31.0";
src = fetchFromGitHub {
owner = "Equationzhao";
repo = "g";
tag = "v${version}";
hash = "sha256-cHB9oW4vF00hvhZ7KNY5TUjIjLjEoiJb/psMSq+kSHU=";
};
vendorHash = "sha256-5ksa0AJ7JbQPzBypDDMUvnXtIeXNEm9zKL5JetHWnrs=";
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
];
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion \
--bash completions/bash/g-completion.bash \
--zsh completions/zsh/_g \
--fish completions/fish/g.fish
'';
passthru.updateScript = nix-update-script { };
meta = {
description = "Powerful ls alternative written in Go";
homepage = "https://github.com/Equationzhao/g";
changelog = "https://github.com/Equationzhao/g/releases/tag/${src.tag}";
license = lib.licenses.mit;
mainProgram = "g";
maintainers = with lib.maintainers; [ Ruixi-rebirth ];
};
}