trying desktop stuff
This commit is contained in:
parent
6dfedac316
commit
ad6d250b12
1 changed files with 11 additions and 1 deletions
12
default.nix
12
default.nix
|
|
@ -19,7 +19,10 @@ buildNpmPackage rec {
|
|||
|
||||
npmDepsHash = "sha256-XawYnHHuAS4HbsQYKhRQ0qPeZom7KB/2sw4GMFq5C9s=";
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
nativeBuildInputs = [
|
||||
makeWrapper
|
||||
desktop-file-utils
|
||||
];
|
||||
|
||||
npmFlags = [ "--ignore-scripts" ];
|
||||
|
||||
|
|
@ -37,6 +40,13 @@ buildNpmPackage rec {
|
|||
runHook postInstall
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
desktop-file-edit \
|
||||
--set-comment "An almost stable matrix client" \
|
||||
--set-key="Categories" --set-value="Network;InstantMessaging;" \
|
||||
$out/share/applications/sable.desktop
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Electron wrapper for Sable Matrix Client";
|
||||
homepage = "https://github.com/7w1/Sable-Client-Electron";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue