Unverified Commit 027e856c authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

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

parents be7d4ff5 7db13770
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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";
+9 −0
Original line number Diff line number Diff line
{
  "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"
  ]
}
+32 −0
Original line number Diff line number Diff line
{
  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";
  };
}