about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/irc/weechat/scripts/buffer_autoset/default.nix
blob: a2e9fc3265a3375a31961afab39f67dc0efa3a9b (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
{ lib, stdenv, fetchurl, weechat }:

stdenv.mkDerivation {
  pname = "buffer_autoset";
  version = "1.2";

  src = fetchurl {
    url = "https://raw.githubusercontent.com/weechat/scripts/2b308b44df39ba6563d02b2bcd40c384ec2777dc/python/buffer_autoset.py";
    sha256 = "0csl3sfpijdbq1j6wabx347lvn91a24a2jfx5b5pspfxz7gixli1";
  };

  dontUnpack = true;

  passthru.scripts = [ "buffer_autoset.py" ];

  installPhase = ''
    install -D $src $out/share/buffer_autoset.py
  '';

  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.";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ govanify ];
  };
}