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 8 Foundation, 9 9 rust-jemalloc-sys, 10 10 }: 11 - 12 - rustPlatform.buildRustPackage rec { 13 - pname = "yazi"; 11 + let 14 12 version = "25.2.11"; 15 13 16 - src = fetchFromGitHub { 14 + code_src = fetchFromGitHub { 17 15 owner = "sxyazi"; 18 16 repo = "yazi"; 19 - rev = "v${version}"; 17 + tag = "v${version}"; 20 18 hash = "sha256-yVpSoEmEA+/XF/jlJqKdkj86m8IZLAbrxDxz5ZnmP78="; 21 19 }; 22 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 + 23 39 useFetchCargoVendor = true; 24 40 cargoHash = "sha256-AfXi68PNrYj6V6CYIPZT0t2l5KYTYrIzJgrcEPLW8FM="; 25 41 ··· 35 51 --bash ./yazi-boot/completions/yazi.bash \ 36 52 --fish ./yazi-boot/completions/yazi.fish \ 37 53 --zsh ./yazi-boot/completions/_yazi 54 + 55 + installManPage ../${man_src.name}/yazi{.1,-config.5} 38 56 39 57 install -Dm444 assets/yazi.desktop -t $out/share/applications 40 58 install -Dm444 assets/logo.png $out/share/pixmaps/yazi.png