evcc: 0.131.4 -> 0.131.5
[NixPkgs.git] / pkgs / by-name / tr / tridactyl-native / package.nix
blobcb9e411b1f0df1b87c229ae87576311861c076bd
1 { lib, buildNimPackage, fetchFromGitHub }:
2 buildNimPackage {
3   pname = "tridactyl-native";
4   version = "0.4.1";
6   src = fetchFromGitHub {
7     owner = "tridactyl";
8     repo = "native_messenger";
9     rev = "3059abd9fb3f14d598f6c299335c3ebac5bc689a";
10     hash = "sha256-gicdpWAoimZMNGLc8w0vtJiFFxeqxB8P4lgWDun7unM=";
11   };
13   lockFile = ./lock.json;
15   installPhase = ''
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/"
19   '';
21   meta = with lib; {
22     description =
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 ];
29   };