2016-04-08 22:10:57 +01:00
|
|
|
{ stdenv, fetchurl, openssl }:
|
|
|
|
|
|
|
|
with stdenv;
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "wraith";
|
2016-08-05 16:06:38 +01:00
|
|
|
version = "1.4.7";
|
2016-04-08 22:10:57 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/wraithbotpack/wraith-v${version}.tar.gz";
|
2016-08-05 16:06:38 +01:00
|
|
|
sha256 = "0h6liac5y7im0jfm2sj18mibvib7d1l727fjs82irsjj1v9kif3j";
|
2016-04-08 22:10:57 +01:00
|
|
|
};
|
2016-08-25 02:32:09 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
2016-04-08 22:10:57 +01:00
|
|
|
buildInputs = [ openssl ];
|
2016-08-05 16:06:38 +01:00
|
|
|
patches = [ ./configure.patch ./dlopen.patch ];
|
2016-04-08 22:10:57 +01:00
|
|
|
postPatch = ''
|
2016-08-05 16:06:38 +01:00
|
|
|
substituteInPlace configure --subst-var-by openssl.dev ${openssl.dev} \
|
|
|
|
--subst-var-by openssl.out ${openssl.out}
|
|
|
|
substituteInPlace src/libssl.cc --subst-var-by openssl ${openssl.out}
|
|
|
|
substituteInPlace src/libcrypto.cc --subst-var-by openssl ${openssl.out}
|
2016-04-08 22:10:57 +01:00
|
|
|
'';
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp -a wraith $out/bin/wraith
|
|
|
|
ln -s wraith $out/bin/hub
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An IRC channel management bot written purely in C/C++";
|
|
|
|
longDescription = ''
|
|
|
|
Wraith is an IRC channel management bot written purely in C/C++. It has
|
|
|
|
been in development since late 2003. It is based on Eggdrop 1.6.12 but has
|
|
|
|
since evolved into something much different at its core. TCL and loadable
|
|
|
|
modules are currently not supported.
|
|
|
|
|
|
|
|
Maintainer's Notes:
|
|
|
|
Copy the binary out of the store before running it with the -C option to
|
|
|
|
configure it. See https://github.com/wraith/wraith/wiki/GettingStarted .
|
|
|
|
|
|
|
|
The binary will not run when moved onto non-NixOS systems; use patchelf
|
|
|
|
to fix its runtime dependenices.
|
|
|
|
'';
|
|
|
|
homepage = http://wraith.botpack.net/;
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ elitak ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|