diff --git a/pkgs/applications/networking/irc/weechat/scripts/default.nix b/pkgs/applications/networking/irc/weechat/scripts/default.nix index f83b6705348c..a3cf55d6a034 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/default.nix @@ -30,4 +30,6 @@ buffer_autoset = callPackage ./buffer_autoset { }; highmon = callPackage ./highmon { }; + + zncplayback = callPackage ./zncplayback { }; } diff --git a/pkgs/applications/networking/irc/weechat/scripts/zncplayback/default.nix b/pkgs/applications/networking/irc/weechat/scripts/zncplayback/default.nix new file mode 100644 index 000000000000..d15b130cae28 --- /dev/null +++ b/pkgs/applications/networking/irc/weechat/scripts/zncplayback/default.nix @@ -0,0 +1,28 @@ +{ lib, stdenv, fetchurl }: + +stdenv.mkDerivation { + pname = "weechat-zncplayback"; + version = "0.2.1"; + + src = fetchurl { + url = "https://github.com/weechat/scripts/raw/bcc9643136addd2cd68ac957dd64e336e4f88aa1/python/zncplayback.py"; + sha256 = "1k32p6naxg40g664ip48zvm61xza7l9az3v3rawmjw97i0mwz7y3"; + }; + + dontUnpack = true; + + installPhase = '' + mkdir -p $out/share + cp $src $out/share/zncplayback.py + ''; + + passthru = { + scripts = [ "zncplayback.py" ]; + }; + + meta = with lib; { + description = "Add support for the ZNC Playback module"; + license = licenses.gpl2Plus; + maintainers = with maintainers; [ qyliss ]; + }; +}