Merge pull request #301060 from eclairevoyant/yazi-desktop

yazi-unwrapped: add desktop file and icon; other cleanup
This commit is contained in:
Aleksana 2024-04-05 20:59:41 +08:00 committed by GitHub
commit 6da2b26195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,7 +15,7 @@ rustPlatform.buildRustPackage rec {
src = fetchFromGitHub {
owner = "sxyazi";
repo = pname;
repo = "yazi";
rev = "v${version}";
hash = "sha256-c8fWWCOVBqQVdQch9BniCaJPrVEOCv35lLH8/hMIbvE=";
};
@ -32,15 +32,18 @@ rustPlatform.buildRustPackage rec {
--bash ./yazi-boot/completions/yazi.bash \
--fish ./yazi-boot/completions/yazi.fish \
--zsh ./yazi-boot/completions/_yazi
install -Dm444 assets/yazi.desktop -t $out/share/applications
install -Dm444 assets/logo.png $out/share/pixmaps/yazi.png
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
meta = {
description = "Blazing fast terminal file manager written in Rust, based on async I/O";
homepage = "https://github.com/sxyazi/yazi";
license = licenses.mit;
maintainers = with maintainers; [ xyenon matthiasbeyer ];
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ xyenon matthiasbeyer ];
mainProgram = "yazi";
};
}