nixpkgs/pkgs/applications/networking/instant-messengers/pidgin-plugins/pidgin-skypeweb/default.nix
2017-11-02 13:53:36 +00:00

36 lines
897 B
Nix

{ stdenv, fetchFromGitHub, pkgconfig, pidgin, json_glib }:
stdenv.mkDerivation rec {
name = "pidgin-skypeweb-${version}";
version = "1.2.2";
src = fetchFromGitHub {
owner = "EionRobb";
repo = "skype4pidgin";
rev = "${version}";
sha256 = "1lxpz316jmns6i143v4j6sd6k0a4a54alw08rvwjckf2rig57lj2";
};
setSourceRoot = ''
sourceRoot=$(echo */skypeweb)
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ pidgin json_glib ];
makeFlags = [
"PLUGIN_DIR_PURPLE=/lib/pidgin/"
"DATA_ROOT_DIR_PURPLE=/share"
"DESTDIR=$(out)"
];
postInstall = "ln -s \$out/lib/pidgin \$out/share/pidgin-skypeweb";
meta = with stdenv.lib; {
homepage = https://github.com/EionRobb/skype4pidgin;
description = "SkypeWeb plugin for Pidgin";
license = licenses.gpl3;
platforms = platforms.linux;
maintainers = with maintainers; [ jgeerds ];
};
}