2013-04-12 22:41:09 +01:00
|
|
|
{ stdenv, fetchurl, perl, pkgconfig, glib, ncurses
|
2013-04-12 23:24:25 +01:00
|
|
|
, enablePlugin ? false }:
|
|
|
|
|
|
|
|
# Enabling the plugin and using it with a recent irssi, segafults on join:
|
|
|
|
# http://marc.info/?l=silc-devel&m=125610477802211
|
2013-04-12 22:41:09 +01:00
|
|
|
|
2013-04-12 22:44:29 +01:00
|
|
|
let
|
|
|
|
basename = "silc-client-1.1.8";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = basename + stdenv.lib.optionalString enablePlugin "-irssi-plugin";
|
2013-04-12 22:41:09 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2013-04-12 22:48:29 +01:00
|
|
|
url = "http://silcnet.org/download/client/sources/${basename}.tar.bz2";
|
2013-04-12 22:41:09 +01:00
|
|
|
sha256 = "1qnk35g8sbnfps3bq2k9sy0ymlsijh5n8z59m2ccq4pkmqbfqgv2";
|
|
|
|
};
|
|
|
|
|
|
|
|
dontDisableStatic = true;
|
|
|
|
|
|
|
|
patches = [ ./server_setup.patch ];
|
|
|
|
|
2013-04-12 23:24:25 +01:00
|
|
|
configureFlags = "--with-ncurses=${ncurses}";
|
|
|
|
|
2013-04-12 22:41:09 +01:00
|
|
|
preConfigure = stdenv.lib.optionalString enablePlugin ''
|
|
|
|
configureFlags="$configureFlags --with-silc-plugin=$out/lib/irssi"
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ perl pkgconfig glib ncurses ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://silcnet.org/;
|
|
|
|
description = "Secure Internet Live Conferencing server";
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2;
|
2013-04-12 22:41:09 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|