1 { lib, buildNimPackage, fetchFromGitHub }:
3 pname = "tridactyl-native";
6 src = fetchFromGitHub {
8 repo = "native_messenger";
9 rev = "3059abd9fb3f14d598f6c299335c3ebac5bc689a";
10 hash = "sha256-gicdpWAoimZMNGLc8w0vtJiFFxeqxB8P4lgWDun7unM=";
13 lockFile = ./lock.json;
16 mkdir -p "$out/lib/mozilla/native-messaging-hosts"
17 sed -i -e "s|REPLACE_ME_WITH_SED|$out/bin/native_main|" "tridactyl.json"
18 cp tridactyl.json "$out/lib/mozilla/native-messaging-hosts/"
23 "Native messenger for Tridactyl, a vim-like Firefox webextension";
24 mainProgram = "native_main";
25 homepage = "https://github.com/tridactyl/native_messenger";
26 license = licenses.bsd2;
27 platforms = platforms.all;
28 maintainers = with maintainers; [ timokau dit7ya kiike ];