@@ -0,0 +1,30 @@
1+{ fetchFromGitHub, stdenv, bitlbee, autoreconfHook, pkgconfig, glib }:
2+
3+with stdenv.lib;
4+stdenv.mkDerivation rec {
5+ name = "bitlbee-discord-2017-12-27";
6+
7+ src = fetchFromGitHub {
8+ rev = "6a03db169ad44fee55609ecd16e19f3c0f99a182";
9+ owner = "sm00th";
10+ repo = "bitlbee-discord";
11+ sha256 = "1ci9a12c6zg8d6i9f95pq6dal79cp4klmmsyj8ag2gin90kl3x95";
12+ };
13+
14+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
15+ buildInputs = [ bitlbee glib ];
16+
17+ preConfigure = ''
18+ export BITLBEE_PLUGINDIR=$out/lib/bitlbee
19+ ./autogen.sh
20+ '';
21+
22+ meta = {
23+ description = "Bitlbee plugin for Discord";
24+
25+ homepage = https://github.com/sm00th/bitlbee-discord;
26+ license = licenses.gpl2Plus;
27+ maintainers = [ maintainers.lassulus ];
28+ platforms = stdenv.lib.platforms.linux;
29+ };
30+}