about summary refs log tree commit diff
path: root/pkgs/applications/networking/irc/wraith/default.nix
diff options
context:
space:
mode:
authorEric Litak <elitak@gmail.com>2016-04-08 14:10:57 -0700
committerEric Litak <elitak@gmail.com>2016-04-08 14:12:13 -0700
commit8fe327a4322baa8279f09eb3a87ffd92dbdc8a18 (patch)
tree39b2236acea9f7cdf090a23d2190dc70cdc91691 /pkgs/applications/networking/irc/wraith/default.nix
parent133e6e1ea649f835a7527a961ca2fef3edf4e5f7 (diff)
downloadnixlib-8fe327a4322baa8279f09eb3a87ffd92dbdc8a18.tar
nixlib-8fe327a4322baa8279f09eb3a87ffd92dbdc8a18.tar.gz
nixlib-8fe327a4322baa8279f09eb3a87ffd92dbdc8a18.tar.bz2
nixlib-8fe327a4322baa8279f09eb3a87ffd92dbdc8a18.tar.lz
nixlib-8fe327a4322baa8279f09eb3a87ffd92dbdc8a18.tar.xz
nixlib-8fe327a4322baa8279f09eb3a87ffd92dbdc8a18.tar.zst
nixlib-8fe327a4322baa8279f09eb3a87ffd92dbdc8a18.zip
wraith: init at 1.4.6
Diffstat (limited to 'pkgs/applications/networking/irc/wraith/default.nix')
-rw-r--r--pkgs/applications/networking/irc/wraith/default.nix46
1 files changed, 46 insertions, 0 deletions
diff --git a/pkgs/applications/networking/irc/wraith/default.nix b/pkgs/applications/networking/irc/wraith/default.nix
new file mode 100644
index 000000000000..f36bbc000641
--- /dev/null
+++ b/pkgs/applications/networking/irc/wraith/default.nix
@@ -0,0 +1,46 @@
+{ stdenv, fetchurl, openssl }:
+
+with stdenv;
+with stdenv.lib;
+
+mkDerivation rec {
+  name = "wraith-${version}";
+  version = "1.4.6";
+  src = fetchurl {
+    url = "mirror://sourceforge/wraithbotpack/wraith-v${version}.tar.gz";
+    sha256 = "0vb2hbjmwh040f5yhxvwcfxvgxa0q9zdy9vvddydn8zn782d7wl8";
+  };
+  buildInputs = [ openssl ];
+  patches = [ ./dlopen.patch ];
+  postPatch = ''
+    substituteInPlace src/libssl.cc    --subst-var-by openssl ${openssl}
+    substituteInPlace src/libcrypto.cc --subst-var-by openssl ${openssl}
+  '';
+  configureFlags = "--with-openssl=${openssl}";
+  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;
+  };
+}