Unverified Commit ad3b3be9 authored by Thiago Kenji Okada's avatar Thiago Kenji Okada Committed by GitHub
Browse files

Merge pull request #256775 from Anomalocaridid/xplr-desktop

xplr: add desktop file and icons
parents 9cd80916 efeded00
Loading
Loading
Loading
Loading
+14 −0
Original line number Diff line number Diff line
@@ -23,6 +23,20 @@ rustPlatform.buildRustPackage rec {
    rm .cargo/config
  '';

  postInstall = ''
    mkdir -p $out/share
    cp assets/desktop/xplr.desktop $out/share

    mkdir -p $out/share/icons/hicolor/scalable/apps
    cp assets/icon/xplr.svg $out/share/icons/hicolor/scalable/apps

    for size in 16 32 64 128; do
      icon_dir=$out/share/icons/hicolor/''${size}x$size/apps
      mkdir -p $icon_dir
      cp assets/icon/xplr$size.png $icon_dir/xplr.png
    done
  '';

  meta = with lib; {
    description = "A hackable, minimal, fast TUI file explorer";
    homepage = "https://xplr.dev";