about summary refs log tree commit diff
path: root/pkgs/applications/networking/irc/weechat/scripts/autosort/default.nix
blob: 26b44568ceaf0a28cf18b9acd106dcf1360a00d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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 ];
  };
}