2021-01-17 02:09:27 +00:00
|
|
|
{ lib, stdenv, fetchurl, perl, pkg-config, 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
|
2015-02-19 18:31:29 +00:00
|
|
|
basename = "silc-client-1.1.11";
|
2013-04-12 22:44:29 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
2021-01-15 05:42:41 +00:00
|
|
|
name = basename + lib.optionalString enablePlugin "-irssi-plugin";
|
2013-04-12 22:41:09 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-02-19 18:31:29 +00:00
|
|
|
url = "mirror://sourceforge/silc/silc/client/sources/${basename}.tar.bz2";
|
|
|
|
sha256 = "13cp3fmdnj8scjak0d2xal3bfvs2k7ssrwdhp0zl6jar5rwc7prn";
|
2013-04-12 22:41:09 +01:00
|
|
|
};
|
|
|
|
|
2015-02-19 18:31:29 +00:00
|
|
|
enableParallelBuilding = true;
|
2013-04-12 22:41:09 +01:00
|
|
|
|
2015-02-19 18:31:29 +00:00
|
|
|
dontDisableStatic = true;
|
2013-04-12 22:41:09 +01:00
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-02-12 18:25:14 +00:00
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--with-ncurses=${ncurses.dev}" ];
|
2013-04-12 23:24:25 +01:00
|
|
|
|
2021-01-15 05:42:41 +00:00
|
|
|
preConfigure = lib.optionalString enablePlugin ''
|
2013-04-12 22:41:09 +01:00
|
|
|
configureFlags="$configureFlags --with-silc-plugin=$out/lib/irssi"
|
|
|
|
'';
|
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2017-09-05 22:26:13 +01:00
|
|
|
buildInputs = [ perl glib ncurses ];
|
2013-04-12 22:41:09 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://silcnet.org/";
|
2013-04-12 22:41:09 +01:00
|
|
|
description = "Secure Internet Live Conferencing server";
|
2021-01-15 05:42:41 +00:00
|
|
|
license = lib.licenses.gpl2;
|
|
|
|
maintainers = with lib.maintainers; [viric];
|
|
|
|
platforms = with lib.platforms; linux;
|
2013-04-12 22:41:09 +01:00
|
|
|
};
|
|
|
|
}
|