mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
feat: install manpages from flake
This commit is contained in:
parent
9ae8b90d23
commit
08682dea04
1 changed files with 16 additions and 3 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
lib,
|
lib,
|
||||||
|
|
||||||
installShellFiles,
|
installShellFiles,
|
||||||
stdenv,
|
fetchFromGitHub,
|
||||||
rust-jemalloc-sys,
|
rust-jemalloc-sys,
|
||||||
|
|
||||||
imagemagick,
|
imagemagick,
|
||||||
|
|
@ -22,7 +22,7 @@ let
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage (finalAttrs: {
|
||||||
pname = "yazi";
|
pname = "yazi";
|
||||||
inherit version src;
|
inherit version src;
|
||||||
|
|
||||||
|
|
@ -60,14 +60,27 @@ rustPlatform.buildRustPackage rec {
|
||||||
magick assets/logo.png -resize "$RES"x"$RES" $out/share/icons/hicolor/"$RES"x"$RES"/apps/yazi.png
|
magick assets/logo.png -resize "$RES"x"$RES" $out/share/icons/hicolor/"$RES"x"$RES"/apps/yazi.png
|
||||||
done
|
done
|
||||||
|
|
||||||
|
installManPage ${finalAttrs.passthru.srcs.man_src}/yazi{.1,-config.5}
|
||||||
|
|
||||||
mkdir -p $out/share/applications
|
mkdir -p $out/share/applications
|
||||||
install -m644 assets/yazi.desktop $out/share/applications/
|
install -m644 assets/yazi.desktop $out/share/applications/
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.srcs = {
|
||||||
|
man_src = fetchFromGitHub {
|
||||||
|
name = "manpages"; # needed to ensure name is unique
|
||||||
|
owner = "yazi-rs";
|
||||||
|
repo = "manpages";
|
||||||
|
rev = "8950e968f4a1ad0b83d5836ec54a070855068dbf";
|
||||||
|
hash = "sha256-kEVXejDg4ChFoMNBvKlwdFEyUuTcY2VuK9j0PdafKus=";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Blazing fast terminal file manager written in Rust, based on async I/O";
|
description = "Blazing fast terminal file manager written in Rust, based on async I/O";
|
||||||
homepage = "https://github.com/sxyazi/yazi";
|
homepage = "https://github.com/sxyazi/yazi";
|
||||||
license = lib.licenses.mit;
|
license = lib.licenses.mit;
|
||||||
mainProgram = "yazi";
|
mainProgram = "yazi";
|
||||||
};
|
};
|
||||||
}
|
})
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue