diff options
author | Florian Klink <flokli@flokli.de> | 2024-05-15 23:08:55 +0000 |
---|---|---|
committer | Florian Klink <flokli@flokli.de> | 2024-05-15 23:08:55 +0000 |
commit | b57154767cf6d01944f5842cb1b5d3c7fd4e2218 (patch) | |
tree | a45c4b3598fdc39a597749d8dd6bbc4174ef5315 | |
parent | 5a55cedc474ab94df66c9c248b2cee36b26acefa (diff) |
weechatScripts.autosort: init at 3.10
This provides autosort, which automatically keeps buffers sorted and grouped by server.
-rw-r--r-- | pkgs/applications/networking/irc/weechat/scripts/autosort/default.nix | 29 | ||||
-rw-r--r-- | pkgs/applications/networking/irc/weechat/scripts/default.nix | 2 |
2 files changed, 31 insertions, 0 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..26b44568ceaf0 --- /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/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 { }; |