@@ -0,0 +1,28 @@
1+{ stdenv, fetchFromGitHub, pidgin, pkgconfig }:
2+
3+stdenv.mkDerivation {
4+ pname = "purple-slack-unstable";
5+ version = "2019-08-18";
6+
7+ src = fetchFromGitHub {
8+ owner = "dylex";
9+ repo = "slack-libpurple";
10+ rev = "be97802c7fd0b611722d2f551756e2a2672f6084";
11+ sha256 = "0l6hwnnv6zzszxkk0a3nli88w5gijvlc9qgkkai0sb4v4c504y5v";
12+ };
13+
14+ nativeBuildInputs = [ pkgconfig ];
15+ buildInputs = [ pidgin ];
16+
17+ PKG_CONFIG_PURPLE_PLUGINDIR = "${placeholder "out"}/lib/purple-2";
18+ PKG_CONFIG_PURPLE_DATAROOTDIR = "${placeholder "out"}/share";
19+
20+ meta = with stdenv.lib; {
21+ homepage = https://github.com/dylex/slack-libpurple;
22+ description = "Slack plugin for Pidgin";
23+ license = licenses.gpl2;
24+ platforms = platforms.linux;
25+ maintainers = with maintainers; [ eyjhb ];
26+ };
27+}
28+