1 { stdenv, fetchFromGitHub, lib, makeWrapper, rustPlatform, wget, libiconv, withFzf ? true, fzf }:
3 rustPlatform.buildRustPackage rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-dlK7R9T1AezNr3+5Or8XYAMRlnnXejIs9jXAjwTuvd8=";
14 cargoHash = "sha256-nastb6dsBGM8zIQ/WCfQy3Y50kH3J1dM/vnkOe/q95A=";
16 nativeBuildInputs = [ makeWrapper ];
18 buildInputs = lib.optionals stdenv.isDarwin [ libiconv ];
21 wrapProgram $out/bin/navi \
22 --prefix PATH : "$out/bin" \
23 --prefix PATH : ${lib.makeBinPath([ wget ] ++ lib.optionals withFzf [ fzf ])}
27 # error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context
28 "--skip=test_parse_variable_line"
32 description = "An interactive cheatsheet tool for the command-line and application launchers";
33 homepage = "https://github.com/denisidoro/navi";
34 license = licenses.asl20;
35 platforms = platforms.unix;
36 maintainers = with maintainers; [ cust0dian ];