nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 32 lines 986 B view raw
1{ 2 lib, 3 rustPlatform, 4 fetchFromGitHub, 5}: 6rustPlatform.buildRustPackage rec { 7 pname = "external-editor-revived"; 8 version = "1.2.0"; 9 10 src = fetchFromGitHub { 11 owner = "Frederick888"; 12 repo = "external-editor-revived"; 13 tag = "v${version}"; 14 sha256 = "sha256-K5agRpFJ8iqvPnx3IIMTvrkObT/GB962EtdvWf7Eq4w="; 15 }; 16 17 cargoHash = "sha256-QYSsdEBNwjpR7lppyOcsc0F8ombBY+dlFRY1GO/D8so="; 18 19 postInstall = '' 20 mkdir -p "$out/lib/mozilla/native-messaging-hosts" 21 substitute '${./native-messaging.json}' "$out/lib/mozilla/native-messaging-hosts/external_editor_revived.json" \ 22 --replace-fail "@OUT@" "$out" 23 ''; 24 25 meta = { 26 description = "Native messaging host for the Thunderbird addon allowing to edit mails in external programs"; 27 homepage = "https://github.com/Frederick888/external-editor-revived"; 28 license = with lib.licenses; [ gpl3Only ]; 29 maintainers = with lib.maintainers; [ mofrim ]; 30 mainProgram = "external-editor-revived"; 31 }; 32}