add .desktop file (#161)

This commit is contained in:
toastal
2021-06-03 13:33:25 +00:00
committed by GitHub
parent 27638be387
commit edb2e181e7
2 changed files with 22 additions and 0 deletions
+18
View File
@@ -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
+4
View File
@@ -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/
'';
};
};
};