diff --git a/assets/himalaya.desktop b/assets/himalaya.desktop new file mode 100644 index 0000000..08aea20 --- /dev/null +++ b/assets/himalaya.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +Type=Application +Name=himalaya +DesktopName=Himalaya +GenericName=Mail Reader +Comment=CLI email client written in Rust +Comment[lo]=CLI ອີເມວໄຄລແອນທີ່ຂຽນດ້ວຍພາສາRust +Comment[th]=CLI อีเมล์ไคลแอนท์ที่เขียนด้วยภาษาRust +Terminal=true +Exec=himalaya %U +Categories=Application;Network +Keywords=email +MimeType=x-scheme-handler/mailto;message/rfc822 +Actions=Compose + +[Desktop Action Compose] +Name=Compose +Exec=himalaya write %U diff --git a/flake.nix b/flake.nix index ab090c2..a7a5a1d 100644 --- a/flake.nix +++ b/flake.nix @@ -50,6 +50,10 @@ # configure non-Rust dependencies (see below) here. ${name} = oldAttrs: { inherit buildInputs nativeBuildInputs; + postInstall = '' + mkdir -p $out/share/applications/ + cp assets/himalaya.desktop $out/share/applications/ + ''; }; }; };