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

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

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

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

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

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