summary refs log tree commit diff
path: root/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-opensteamworks/default.nix
blob: 2324ad464ed255ba52600467c46619c01d43a477 (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
31
{ stdenv, fetchFromGitHub, pidgin, unzip, glib, json_glib, nss, nspr, libgnome_keyring } :

stdenv.mkDerivation rec {
  name = "pidgin-opensteamworks-${version}";
  version = "1.6.1";

  src = fetchFromGitHub {
    owner = "EionRobb";
    repo = "pidgin-opensteamworks";
    rev = "${version}";
    sha256 = "6ab27831e454ad3b440e4f06b52e0b3671a4f8417ba4da3ab6f56c56d82cc29b";
  };

  preConfigure = "cd steam-mobile";
  postInstall = ''
    mkdir -p $out/lib/purple-2
    mkdir -p $out/share/pixmaps/pidgin/protocols/
    cp libsteam.so $out/lib/purple-2/
    unzip releases/icons.zip -d $out/share/pixmaps/pidgin/protocols/
  '';

  buildInputs = [ pidgin unzip glib json_glib nss nspr libgnome_keyring ];

  meta = with stdenv.lib; {
    homepage = https://code.google.com/p/pidgin-opensteamworks;
    description = "Plugin for Pidgin 2.x which implements Steam Friends/Steam IM compatibility";
    license = licenses.gpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ arobyn ];
  };
}