1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 weechat,
6}:
7
8stdenv.mkDerivation rec {
9 pname = "edit-weechat";
10 version = "1.0.2";
11
12 src = fetchFromGitHub {
13 owner = "keith";
14 repo = "edit-weechat";
15 rev = version;
16 sha256 = "1s42r0l0xkhlp6rbc23cm4vlda91il6cg53w33hqfhd2wz91s66w";
17 };
18
19 dontBuild = true;
20
21 passthru.scripts = [ "edit.py" ];
22
23 installPhase = ''
24 runHook preInstall
25 install -D edit.py $out/share/edit.py
26 runHook postInstall
27 '';
28
29 meta = with lib; {
30 inherit (weechat.meta) platforms;
31 description = "This simple weechat plugin allows you to compose messages in your $EDITOR";
32 license = licenses.mit;
33 maintainers = with maintainers; [ eraserhd ];
34 };
35}