diff options
Diffstat (limited to 'pkgs/applications/networking/irc/weechat/scripts')
10 files changed, 45 insertions, 13 deletions
diff --git a/pkgs/applications/networking/irc/weechat/scripts/autosort/default.nix b/pkgs/applications/networking/irc/weechat/scripts/autosort/default.nix new file mode 100644 index 0000000000000..6cbcc117af040 --- /dev/null +++ b/pkgs/applications/networking/irc/weechat/scripts/autosort/default.nix @@ -0,0 +1,29 @@ +{ lib, stdenv, fetchurl, weechat }: + +stdenv.mkDerivation { + pname = "weechat-autosort"; + version = "3.10"; + + src = fetchurl { + url = "https://github.com/weechat/scripts/raw/13aef991ca879fc0ff116874a45b09bc2db10607/python/autosort.py"; + hash = "sha256-xuZUssjGd0l7lCx96d0V8LL+0O3zIxYlWMoDsdzwMf4="; + }; + + dontUnpack = true; + + installPhase = '' + mkdir -p $out/share + cp $src $out/share/autosort.py + ''; + + passthru = { + scripts = [ "autosort.py" ]; + }; + + meta = with lib; { + inherit (weechat.meta) platforms; + description = "autosort automatically keeps your buffers sorted and grouped by server"; + license = licenses.gpl3Plus; + maintainers = with maintainers; [ flokli ]; + }; +} diff --git a/pkgs/applications/networking/irc/weechat/scripts/buffer_autoset/default.nix b/pkgs/applications/networking/irc/weechat/scripts/buffer_autoset/default.nix index a2e9fc3265a33..9ef4929629924 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/buffer_autoset/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/buffer_autoset/default.nix @@ -19,7 +19,7 @@ stdenv.mkDerivation { meta = with lib; { inherit (weechat.meta) platforms; - description = "buffer_autoset.py is a weechat script which auto-set buffer properties when a buffer is opened."; + description = "buffer_autoset.py is a weechat script which auto-set buffer properties when a buffer is opened"; license = licenses.gpl3Plus; maintainers = with maintainers; [ govanify ]; }; diff --git a/pkgs/applications/networking/irc/weechat/scripts/default.nix b/pkgs/applications/networking/irc/weechat/scripts/default.nix index f84e2307acb1a..1825ee3f5d7aa 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/default.nix @@ -1,6 +1,8 @@ { callPackage, luaPackages, perlPackages, python3Packages }: { + autosort = callPackage ./autosort { }; + colorize_nicks = callPackage ./colorize_nicks { }; edit = callPackage ./edit { }; diff --git a/pkgs/applications/networking/irc/weechat/scripts/edit/default.nix b/pkgs/applications/networking/irc/weechat/scripts/edit/default.nix index 5f91417b76fa5..b510c17ac1e9c 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/edit/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/edit/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { meta = with lib; { inherit (weechat.meta) platforms; - description = "This simple weechat plugin allows you to compose messages in your $EDITOR."; + description = "This simple weechat plugin allows you to compose messages in your $EDITOR"; license = licenses.mit; maintainers = with maintainers; [ eraserhd ]; }; diff --git a/pkgs/applications/networking/irc/weechat/scripts/highmon/default.nix b/pkgs/applications/networking/irc/weechat/scripts/highmon/default.nix index f653224657071..d221a0cf972c4 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/highmon/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/highmon/default.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation { meta = with lib; { inherit (weechat.meta) platforms; homepage = "https://github.com/KenjiE20/highmon/"; - description = "highmon.pl is a weechat script that adds 'Highlight Monitor'."; + description = "highmon.pl is a weechat script that adds 'Highlight Monitor'"; license = licenses.gpl3Plus; maintainers = with maintainers; [ govanify ]; }; diff --git a/pkgs/applications/networking/irc/weechat/scripts/url_hint/default.nix b/pkgs/applications/networking/irc/weechat/scripts/url_hint/default.nix index 90c98b8fe769a..38df127d14cf0 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/url_hint/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/url_hint/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation { meta = with lib; { inherit (weechat.meta) platforms; - description = "url_hint.py is a URL opening script."; + description = "url_hint.py is a URL opening script"; license = licenses.mit; maintainers = with maintainers; [ eraserhd ]; }; diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-autosort/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-autosort/default.nix index c20d8f0a80795..010470c6fbaab 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-autosort/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/weechat-autosort/default.nix @@ -20,6 +20,6 @@ stdenv.mkDerivation rec { description = "Autosort is a weechat script to automatically or manually keep your buffers sorted"; homepage = "https://github.com/de-vri-es/weechat-autosort"; license = licenses.gpl3Plus; - maintainers = with maintainers; [ emily flokli ]; + maintainers = with maintainers; [ flokli ]; }; } diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix-bridge/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix-bridge/default.nix index 282603f992480..46cb08594ee05 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix-bridge/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix-bridge/default.nix @@ -38,7 +38,7 @@ stdenv.mkDerivation { ''; meta = with lib; { - description = "A WeeChat script in Lua that implements the matrix.org chat protocol"; + description = "WeeChat script in Lua that implements the matrix.org chat protocol"; homepage = "https://github.com/torhve/weechat-matrix-protocol-script"; maintainers = with maintainers; [ ]; license = licenses.mit; # see https://github.com/torhve/weechat-matrix-protocol-script/blob/0052e7275ae149dc5241226391c9b1889ecc3c6b/matrix.lua#L53 diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix index 3ae60816b5a00..a67903c6fe98a 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/weechat-matrix/default.nix @@ -76,11 +76,11 @@ in buildPythonPackage { cp contrib/matrix_decrypt.py $out/bin/matrix_decrypt cp contrib/matrix_sso_helper.py $out/bin/matrix_sso_helper substituteInPlace $out/bin/matrix_upload \ - --replace '/usr/bin/env -S python3' '${scriptPython}/bin/python' + --replace-fail '/usr/bin/env -S python3' '${scriptPython}/bin/python' substituteInPlace $out/bin/matrix_sso_helper \ - --replace '/usr/bin/env -S python3' '${scriptPython}/bin/python' + --replace-fail '/usr/bin/env -S python3' '${scriptPython}/bin/python' substituteInPlace $out/bin/matrix_decrypt \ - --replace '/usr/bin/env python3' '${scriptPython}/bin/python' + --replace-fail '/usr/bin/env python3' '${scriptPython}/bin/python' mkdir -p $out/${python.sitePackages} cp -r matrix $out/${python.sitePackages}/matrix @@ -90,14 +90,15 @@ in buildPythonPackage { postFixup = '' addToSearchPath program_PYTHONPATH $out/${python.sitePackages} patchPythonScript $out/share/matrix.py - substituteInPlace $out/${python.sitePackages}/matrix/server.py --replace \"matrix_sso_helper\" \"$out/bin/matrix_sso_helper\" + substituteInPlace $out/${python.sitePackages}/matrix/server.py --replace-fail \"matrix_sso_helper\" \"$out/bin/matrix_sso_helper\" + substituteInPlace $out/${python.sitePackages}/matrix/uploads.py --replace-fail \"matrix_upload\" \"$out/bin/matrix_upload\" ''; meta = with lib; { - description = "A Python plugin for Weechat that lets Weechat communicate over the Matrix protocol"; + description = "Python plugin for Weechat that lets Weechat communicate over the Matrix protocol"; homepage = "https://github.com/poljar/weechat-matrix"; license = licenses.isc; platforms = platforms.unix; - maintainers = with maintainers; [ tilpner emily ]; + maintainers = with maintainers; [ tilpner ]; }; } diff --git a/pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix b/pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix index d8f2b9ba0028c..abd289d990375 100644 --- a/pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix +++ b/pkgs/applications/networking/irc/weechat/scripts/weechat-notify-send/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation rec { ''; meta = with lib; { - description = "A WeeChat script that sends highlight and message notifications through notify-send"; + description = "WeeChat script that sends highlight and message notifications through notify-send"; homepage = "https://github.com/s3rvac/weechat-notify-send"; license = licenses.mit; maintainers = with maintainers; [ tobim ]; |