yazi-unwrapped: add man pages (#383128)

authored by Austin Horstman and committed by GitHub 407109ee 50e8d72b

+23 -5
+23 -5
pkgs/by-name/ya/yazi-unwrapped/package.nix
··· 8 Foundation, 9 rust-jemalloc-sys, 10 }: 11 - 12 - rustPlatform.buildRustPackage rec { 13 - pname = "yazi"; 14 version = "25.2.11"; 15 16 - src = fetchFromGitHub { 17 owner = "sxyazi"; 18 repo = "yazi"; 19 - rev = "v${version}"; 20 hash = "sha256-yVpSoEmEA+/XF/jlJqKdkj86m8IZLAbrxDxz5ZnmP78="; 21 }; 22 23 useFetchCargoVendor = true; 24 cargoHash = "sha256-AfXi68PNrYj6V6CYIPZT0t2l5KYTYrIzJgrcEPLW8FM="; 25 ··· 35 --bash ./yazi-boot/completions/yazi.bash \ 36 --fish ./yazi-boot/completions/yazi.fish \ 37 --zsh ./yazi-boot/completions/_yazi 38 39 install -Dm444 assets/yazi.desktop -t $out/share/applications 40 install -Dm444 assets/logo.png $out/share/pixmaps/yazi.png
··· 8 Foundation, 9 rust-jemalloc-sys, 10 }: 11 + let 12 version = "25.2.11"; 13 14 + code_src = fetchFromGitHub { 15 owner = "sxyazi"; 16 repo = "yazi"; 17 + tag = "v${version}"; 18 hash = "sha256-yVpSoEmEA+/XF/jlJqKdkj86m8IZLAbrxDxz5ZnmP78="; 19 }; 20 21 + man_src = fetchFromGitHub { 22 + name = "manpages"; # needed to ensure name is unique 23 + owner = "yazi-rs"; 24 + repo = "manpages"; 25 + rev = "8950e968f4a1ad0b83d5836ec54a070855068dbf"; 26 + hash = "sha256-kEVXejDg4ChFoMNBvKlwdFEyUuTcY2VuK9j0PdafKus="; 27 + }; 28 + in 29 + rustPlatform.buildRustPackage rec { 30 + pname = "yazi"; 31 + inherit version; 32 + 33 + srcs = [ 34 + code_src 35 + man_src 36 + ]; 37 + sourceRoot = code_src.name; 38 + 39 useFetchCargoVendor = true; 40 cargoHash = "sha256-AfXi68PNrYj6V6CYIPZT0t2l5KYTYrIzJgrcEPLW8FM="; 41 ··· 51 --bash ./yazi-boot/completions/yazi.bash \ 52 --fish ./yazi-boot/completions/yazi.fish \ 53 --zsh ./yazi-boot/completions/_yazi 54 + 55 + installManPage ../${man_src.name}/yazi{.1,-config.5} 56 57 install -Dm444 assets/yazi.desktop -t $out/share/applications 58 install -Dm444 assets/logo.png $out/share/pixmaps/yazi.png