Files
nixpkgs/pkgs/by-name/go/gocatcli/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

54 lines
1.5 KiB
Nix

{
lib,
stdenv,
buildGoModule,
fetchFromGitHub,
installShellFiles,
versionCheckHook,
nix-update-script,
}:
buildGoModule rec {
pname = "gocatcli";
version = "1.1.2";
src = fetchFromGitHub {
owner = "deadc0de6";
repo = "gocatcli";
tag = "v${version}";
hash = "sha256-kNXuQlBLiDEbKwtSmdX4XPLyMZFyBvLKEmQdCDug4ao=";
};
vendorHash = "sha256-gi4/ekLGh5T5D3ifW/FF+ewHesWOyhY01ZZIG6+OENo=";
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
installShellCompletion --cmd gocatcli \
--bash <($out/bin/gocatcli completion bash) \
--fish <($out/bin/gocatcli completion fish) \
--zsh <($out/bin/gocatcli completion zsh)
'';
nativeCheckInputs = [ versionCheckHook ];
doCheck = true;
passthru.updateScript = nix-update-script { };
meta = {
homepage = "https://github.com/deadc0de6/gocatcli";
changelog = "https://github.com/deadc0de6/gocatcli/releases/tag/v${version}";
description = "Command line catalog tool for your offline data";
longDescription = ''
gocatcli is a catalog tool for your offline data. It indexes external
media in a catalog file and allows to quickly find specific files or even
navigate in the catalog as if it was a mounted drive
'';
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [
nadir-ishiguro
];
mainProgram = "gocatcli";
};
}