nixpkgs/pkgs/applications/networking/instant-messengers/bitlbee-discord/default.nix
2021-01-16 23:49:59 -08:00

33 lines
808 B
Nix

{ lib, fetchFromGitHub, stdenv, bitlbee, autoreconfHook, pkg-config, glib }:
with lib;
stdenv.mkDerivation rec {
pname = "bitlbee-discord";
version = "0.4.3";
src = fetchFromGitHub {
rev = version;
owner = "sm00th";
repo = "bitlbee-discord";
sha256 = "00qgdvrp7hv02n0ns685igp810zxmv3adsama8601122al6x041n";
};
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ bitlbee ];
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 = lib.platforms.linux;
};
}