nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 38 lines 1.1 kB view raw
1{ stdenv, fetchFromGitHub, lib, makeWrapper, rustPlatform, wget, libiconv, withFzf ? true, fzf }: 2 3rustPlatform.buildRustPackage rec { 4 pname = "navi"; 5 version = "2.22.1"; 6 7 src = fetchFromGitHub { 8 owner = "denisidoro"; 9 repo = "navi"; 10 rev = "v${version}"; 11 sha256 = "sha256-dlK7R9T1AezNr3+5Or8XYAMRlnnXejIs9jXAjwTuvd8="; 12 }; 13 14 cargoHash = "sha256-nastb6dsBGM8zIQ/WCfQy3Y50kH3J1dM/vnkOe/q95A="; 15 16 nativeBuildInputs = [ makeWrapper ]; 17 18 buildInputs = lib.optionals stdenv.isDarwin [ libiconv ]; 19 20 postInstall = '' 21 wrapProgram $out/bin/navi \ 22 --prefix PATH : "$out/bin" \ 23 --prefix PATH : ${lib.makeBinPath([ wget ] ++ lib.optionals withFzf [ fzf ])} 24 ''; 25 26 checkFlags = [ 27 # error: Found argument '--test-threads' which wasn't expected, or isn't valid in this context 28 "--skip=test_parse_variable_line" 29 ]; 30 31 meta = with lib; { 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 ]; 37 }; 38}