summaryrefslogtreecommitdiff
path: root/pkgs/bitlbee-mastodon/default.nix
blob: 0451068f3c93981814244306433ea30ff9b714dd (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
{ stdenv, fetchFromGitHub, autoreconfHook, pkgconfig, bitlbee, glib, lib }:
stdenv.mkDerivation rec {
  name = "bitlbee-mastodon-${version}";
  version = "v1.4.2";

  src = fetchFromGitHub {
    rev = version;
    owner = "kensanata";
    repo = "bitlbee-mastodon";
    sha256 = "04rakgr1pfsg1vhfwlfbggbzw249j7dmk88xrsnf3n84c5ccdyas";
  };

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

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

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

    homepage = https://github.com/kensanata/bitlbee-mastodon;
    license = lib.licenses.gpl2Plus;
    platforms = lib.platforms.linux;
  };
}