mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-04 20:13:21 +00:00
30 lines
857 B
Nix
30 lines
857 B
Nix
|
{ stdenv, fetchurl, perl, pkgconfig, glib, ncurses
|
||
|
, enablePlugin ? true }:
|
||
|
|
||
|
stdenv.mkDerivation rec {
|
||
|
name = "silc-client-1.1.8" + stdenv.lib.optionalString enablePlugin "-irssi-plugin";
|
||
|
|
||
|
src = fetchurl {
|
||
|
url = "http://silcnet.org/download/server/sources/${name}.tar.bz2";
|
||
|
sha256 = "1qnk35g8sbnfps3bq2k9sy0ymlsijh5n8z59m2ccq4pkmqbfqgv2";
|
||
|
};
|
||
|
|
||
|
dontDisableStatic = true;
|
||
|
|
||
|
patches = [ ./server_setup.patch ];
|
||
|
|
||
|
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";
|
||
|
license = "GPLv2";
|
||
|
maintainers = with stdenv.lib.maintainers; [viric];
|
||
|
platforms = with stdenv.lib.platforms; linux;
|
||
|
};
|
||
|
}
|