@@ -0,0 +1,31 @@
1+{ lib, stdenv, fetchurl, weechat }:
2+
3+stdenv.mkDerivation {
4+ pname = "highmon";
5+ version = "2.7";
6+
7+ src = fetchurl {
8+ url = "https://raw.githubusercontent.com/KenjiE20/highmon/182e67d070c75efc81999e68c2ac7fdfe44d2872/highmon.pl";
9+ sha256 = "1vvgzscb12l3cp2nq954fx6j3awvpjsb0nqylal51ps9cq9a3wir";
10+ };
11+
12+ dontUnpack = true;
13+
14+ passthru.scripts = [ "highmon.pl" ];
15+
16+ installPhase = ''
17+ runHook preInstall
18+
19+ install -D $src $out/share/highmon.pl
20+
21+ runHook postInstall
22+ '';
23+
24+ meta = with lib; {
25+ inherit (weechat.meta) platforms;
26+ homepage = "https://github.com/KenjiE20/highmon/";
27+ description = "highmon.pl is a weechat script that adds 'Highlight Monitor'.";
28+ license = licenses.gpl3Plus;
29+ maintainers = with maintainers; [ govanify ];
30+ };
31+}