1{
2 lib,
3 stdenv,
4 fetchurl,
5}:
6
7stdenv.mkDerivation {
8 pname = "weechat-grep";
9 version = "0.8.5";
10
11 src = fetchurl {
12 url = "https://github.com/weechat/scripts/raw/5ee93d56f371c829d2798a5446a14292c180f70b/python/grep.py";
13 sha256 = "sha256-EVcoxjTTjXOYD8DppD+IULxpKerEdolmlgphrulFGC0=";
14 };
15
16 dontUnpack = true;
17
18 installPhase = ''
19 mkdir -p $out/share
20 cp $src $out/share/grep.py
21 '';
22
23 passthru = {
24 scripts = [ "grep.py" ];
25 };
26
27 meta = with lib; {
28 description = "Search in Weechat buffers and logs (for Weechat 0.3.*)";
29 homepage = "https://github.com/weechat/scripts/blob/master/python/grep.py";
30 license = licenses.gpl3Plus;
31 maintainers = with maintainers; [ flokli ];
32 };
33}