@@ -0,0 +1,30 @@
1+{ fetchgit, stdenv, bitlbee, autoreconfHook, pkgconfig, glib }:
2+
3+with stdenv.lib;
4+stdenv.mkDerivation rec {
5+ pname = "bitlbee-mastodon";
6+ version = "1.4.2";
7+
8+ src = fetchgit {
9+ url = "https://alexschroeder.ch/cgit/bitlbee-mastodon";
10+ rev = "v${version}";
11+ sha256 = "04rakgr1pfsg1vhfwlfbggbzw249j7dmk88xrsnf3n84c5ccdyas";
12+ };
13+
14+ nativeBuildInputs = [ autoreconfHook pkgconfig ];
15+ buildInputs = [ bitlbee glib ];
16+
17+ preConfigure = ''
18+ export BITLBEE_PLUGINDIR=$out/lib/bitlbee
19+ export BITLBEE_DATADIR=$out/share/bitlbee
20+ ./autogen.sh
21+ '';
22+
23+ meta = {
24+ description = "Bitlbee plugin for Mastodon";
25+ homepage = "https://alexschroeder.ch/cgit/bitlbee-mastodon/about";
26+ license = licenses.gpl2Plus;
27+ maintainers = with maintainers; [ jpotier ];
28+ platforms = stdenv.lib.platforms.linux;
29+ };
30+}