Unverified Commit 6da2b261 authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

Merge pull request #301060 from eclairevoyant/yazi-desktop

yazi-unwrapped: add desktop file and icon; other cleanup
parents aaef13b2 753b87aa
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -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";
  };
}