Files
nixpkgs/pkgs/by-name/na/navi/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

53 lines
1.2 KiB
Nix

{
stdenv,
fetchFromGitHub,
lib,
makeWrapper,
rustPlatform,
wget,
libiconv,
withFzf ? true,
fzf,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "navi";
version = "2.24.0";
src = fetchFromGitHub {
owner = "denisidoro";
repo = "navi";
tag = "v${version}";
hash = "sha256-zvqxVu147u/m/4B3fhbuQ46txGMrlgQv9d4GGiR8SoQ=";
};
cargoHash = "sha256-tQCm8KMVWo6KiKVOMDitHtDXwYGM7INXcT+7fEEiIiI=";
nativeBuildInputs = [ makeWrapper ];
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ];
postInstall = ''
wrapProgram $out/bin/navi \
--prefix PATH : "$out/bin" \
--prefix PATH : ${lib.makeBinPath ([ wget ] ++ lib.optionals withFzf [ fzf ])}
'';
checkFlags = [
# error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context
"--skip=test_parse_variable_line"
];
passthru.updateScript = nix-update-script { };
meta = {
description = "Interactive cheatsheet tool for the command-line and application launchers";
homepage = "https://github.com/denisidoro/navi";
license = lib.licenses.asl20;
platforms = lib.platforms.unix;
mainProgram = "navi";
maintainers = with lib.maintainers; [ cust0dian ];
};
}