weechatScripts.autosort: init at 3.10

This provides autosort, which automatically keeps buffers sorted and
grouped by server.
This commit is contained in:
Florian Klink 2024-05-15 23:08:55 +00:00
parent 5a55cedc47
commit b57154767c
2 changed files with 31 additions and 0 deletions

View File

@ -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 ];
};
}

View File

@ -1,6 +1,8 @@
{ callPackage, luaPackages, perlPackages, python3Packages }:
{
autosort = callPackage ./autosort { };
colorize_nicks = callPackage ./colorize_nicks { };
edit = callPackage ./edit { };