nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchurl,
5 guile,
6 pkg-config,
7 glib,
8 loudmouth,
9 gmp,
10 libidn,
11 readline,
12 libtool,
13 libunwind,
14 ncurses,
15 curl,
16 jansson,
17 texinfo,
18 argp-standalone,
19}:
20stdenv.mkDerivation rec {
21 pname = "freetalk";
22 version = "4.2";
23
24 src = fetchurl {
25 url = "mirror://gnu/freetalk/freetalk-${version}.tar.gz";
26 hash = "sha256-u1tPKacGry+JGYeAIgDia3N7zs5EM4FyQZdV8e7htYA=";
27 };
28
29 nativeBuildInputs = [
30 pkg-config
31 texinfo
32 ];
33 buildInputs = [
34 guile
35 glib
36 loudmouth
37 gmp
38 libidn
39 readline
40 libtool
41 libunwind
42 ncurses
43 curl
44 jansson
45 ]
46 ++ lib.optionals stdenv.hostPlatform.isDarwin [
47 argp-standalone
48 ];
49
50 env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-largp";
51
52 meta = with lib; {
53 description = "Console XMPP client";
54 mainProgram = "freetalk";
55 license = licenses.gpl3Plus;
56 maintainers = with maintainers; [ raskin ];
57 platforms = platforms.unix;
58 downloadPage = "https://www.gnu.org/software/freetalk/";
59 };
60}