From efeded0094d6501b5c6c83f4c691948bf22d8834 Mon Sep 17 00:00:00 2001 From: Anomalocaridid <29845794+Anomalocaridid@users.noreply.github.com> Date: Fri, 22 Sep 2023 18:23:32 -0400 Subject: [PATCH] xplr: add desktop file and icons --- pkgs/applications/file-managers/xplr/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pkgs/applications/file-managers/xplr/default.nix b/pkgs/applications/file-managers/xplr/default.nix index 5f058f2baf3e..b16c59503848 100644 --- a/pkgs/applications/file-managers/xplr/default.nix +++ b/pkgs/applications/file-managers/xplr/default.nix @@ -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";