diff --git a/pkgs/development/libraries/libgadu/default.nix b/pkgs/development/libraries/libgadu/default.nix index 10705a2c164d..72bf067b2db4 100644 --- a/pkgs/development/libraries/libgadu/default.nix +++ b/pkgs/development/libraries/libgadu/default.nix @@ -1,19 +1,23 @@ -{lib, stdenv, fetchurl, zlib}: +{ lib, stdenv, fetchFromGitHub, zlib, protobufc, autoreconfHook }: -stdenv.mkDerivation { +stdenv.mkDerivation rec { + pname = "libgadu"; + version = "1.12.2"; - name = "libgadu-1.11.2"; - - src = fetchurl { - url = "http://toxygen.net/libgadu/files/libgadu-1.11.2.tar.gz"; - sha256 = "0kifi9blhbimihqw4kaf6wyqhlx8fpp8nq4s6y280ar9p0il2n3z"; + src = fetchFromGitHub { + owner = "wojtekka"; + repo = pname; + rev = version; + sha256 = "1s16cripy5w9k12534qb012iwc5m9qcjyrywgsziyn3kl3i0aa8h"; }; propagatedBuildInputs = [ zlib ]; + buildInputs = [ protobufc ]; + nativeBuildInputs = [ autoreconfHook ]; meta = { description = "A library to deal with gadu-gadu protocol (most popular polish IM protocol)"; - homepage = "http://toxygen.net/libgadu/"; + homepage = "https://libgadu.net/index.en.html"; platforms = lib.platforms.linux; license = lib.licenses.lgpl21; };