2024-01-02 11:29:13 +00:00
|
|
|
{ lib, buildNimPackage, fetchFromGitHub }:
|
|
|
|
buildNimPackage {
|
2022-11-21 17:40:18 +00:00
|
|
|
pname = "tridactyl-native";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "0.4.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "tridactyl";
|
2022-06-16 17:23:12 +00:00
|
|
|
repo = "native_messenger";
|
2024-04-21 15:54:59 +00:00
|
|
|
rev = "3059abd9fb3f14d598f6c299335c3ebac5bc689a";
|
2024-09-19 14:19:46 +00:00
|
|
|
hash = "sha256-gicdpWAoimZMNGLc8w0vtJiFFxeqxB8P4lgWDun7unM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2024-01-02 11:29:13 +00:00
|
|
|
|
|
|
|
lockFile = ./lock.json;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p "$out/lib/mozilla/native-messaging-hosts"
|
2022-06-16 17:23:12 +00:00
|
|
|
sed -i -e "s|REPLACE_ME_WITH_SED|$out/bin/native_main|" "tridactyl.json"
|
2020-04-24 23:36:52 +00:00
|
|
|
cp tridactyl.json "$out/lib/mozilla/native-messaging-hosts/"
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
description =
|
|
|
|
"Native messenger for Tridactyl, a vim-like Firefox webextension";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "native_main";
|
2022-06-16 17:23:12 +00:00
|
|
|
homepage = "https://github.com/tridactyl/native_messenger";
|
|
|
|
license = licenses.bsd2;
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
2024-04-21 15:54:59 +00:00
|
|
|
maintainers = with maintainers; [ timokau dit7ya kiike ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|