about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/networking/instant-messengers/bitlbee-discord/default.nix
blob: 0b6f142f1e92139f3a00ffdcce6e8637711f5357 (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
30
31
32
{ fetchFromGitHub, stdenv, bitlbee, autoreconfHook, pkgconfig, glib }:

with stdenv.lib;
stdenv.mkDerivation rec {
  pname = "bitlbee-discord";
  version = "0.4.3";

  src = fetchFromGitHub {
    rev = version;
    owner = "sm00th";
    repo = "bitlbee-discord";
    sha256 = "00qgdvrp7hv02n0ns685igp810zxmv3adsama8601122al6x041n";
  };

  nativeBuildInputs = [ autoreconfHook pkgconfig ];
  buildInputs = [ bitlbee glib ];

  preConfigure = ''
    export BITLBEE_PLUGINDIR=$out/lib/bitlbee
    export BITLBEE_DATADIR=$out/share/bitlbee
    ./autogen.sh
  '';

  meta = {
    description = "Bitlbee plugin for Discord";

    homepage = "https://github.com/sm00th/bitlbee-discord";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ lassulus jb55 ];
    platforms = stdenv.lib.platforms.linux;
  };
}