Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

38 lines
933 B
Nix

{
lib,
buildNimPackage,
fetchFromGitHub,
}:
buildNimPackage {
pname = "tridactyl-native";
version = "0.4.1";
src = fetchFromGitHub {
owner = "tridactyl";
repo = "native_messenger";
rev = "3059abd9fb3f14d598f6c299335c3ebac5bc689a";
hash = "sha256-gicdpWAoimZMNGLc8w0vtJiFFxeqxB8P4lgWDun7unM=";
};
lockFile = ./lock.json;
installPhase = ''
mkdir -p "$out/lib/mozilla/native-messaging-hosts"
sed -i -e "s|REPLACE_ME_WITH_SED|$out/bin/native_main|" "tridactyl.json"
cp tridactyl.json "$out/lib/mozilla/native-messaging-hosts/"
'';
meta = with lib; {
description = "Native messenger for Tridactyl, a vim-like Firefox webextension";
mainProgram = "native_main";
homepage = "https://github.com/tridactyl/native_messenger";
license = licenses.bsd2;
platforms = platforms.all;
maintainers = with maintainers; [
timokau
dit7ya
kiike
];
};
}