external-editor-revived: init at 1.2.0 (#450497)

This commit is contained in:
Sandro
2025-12-02 13:49:02 +00:00
committed by GitHub
3 changed files with 47 additions and 0 deletions
+6
View File
@@ -17501,6 +17501,12 @@
githubId = 14153763;
name = "modderme123";
};
mofrim = {
email = "mofrim@posteo.de";
github = "mofrim";
githubId = 46672819;
name = "mofrim";
};
mog = {
email = "mog-lists@rldn.net";
github = "mogorman";
@@ -0,0 +1,9 @@
{
"name": "external_editor_revived",
"description": "Edit emails in external editors such as Vim, Neovim, Emacs, etc.",
"path": "@OUT@/bin/external-editor-revived",
"type": "stdio",
"allowed_extensions": [
"external-editor-revived@tsundere.moe"
]
}
@@ -0,0 +1,32 @@
{
lib,
rustPlatform,
fetchFromGitHub,
}:
rustPlatform.buildRustPackage rec {
pname = "external-editor-revived";
version = "1.2.0";
src = fetchFromGitHub {
owner = "Frederick888";
repo = "external-editor-revived";
tag = "v${version}";
sha256 = "sha256-K5agRpFJ8iqvPnx3IIMTvrkObT/GB962EtdvWf7Eq4w=";
};
cargoHash = "sha256-QYSsdEBNwjpR7lppyOcsc0F8ombBY+dlFRY1GO/D8so=";
postInstall = ''
mkdir -p "$out/lib/mozilla/native-messaging-hosts"
substitute '${./native-messaging.json}' "$out/lib/mozilla/native-messaging-hosts/external_editor_revived.json" \
--replace-fail "@OUT@" "$out"
'';
meta = with lib; {
description = "Native messaging host for the Thunderbird addon allowing to edit mails in external programs";
homepage = "https://github.com/Frederick888/external-editor-revived";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ mofrim ];
mainProgram = "external-editor-revived";
};
}