nixpkgs/pkgs/applications/networking/instant-messengers/silc-client/default.nix

41 lines
1.1 KiB
Nix
Raw Normal View History

2013-04-12 22:41:09 +01:00
{ stdenv, fetchurl, perl, pkgconfig, glib, ncurses
, 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
let
2015-02-19 18:31:29 +00:00
basename = "silc-client-1.1.11";
in
stdenv.mkDerivation {
name = basename + stdenv.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
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 22:41:09 +01:00
preConfigure = stdenv.lib.optionalString enablePlugin ''
configureFlags="$configureFlags --with-silc-plugin=$out/lib/irssi"
'';
nativeBuildInputs = [ pkgconfig ];
buildInputs = [ perl glib ncurses ];
2013-04-12 22:41:09 +01:00
meta = {
homepage = http://silcnet.org/;
description = "Secure Internet Live Conferencing server";
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;
};
}