2016-02-12 17:43:19 +00:00
|
|
|
{ stdenv, fetchFromGitHub, libotr, automake, autoconf, libtool, glib, pkgconfig, irssi }:
|
2013-04-13 16:09:27 +01:00
|
|
|
|
|
|
|
with stdenv.lib;
|
2013-04-13 17:18:44 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2015-11-21 20:54:52 +00:00
|
|
|
name = "irssi-otr-${version}";
|
2016-02-13 04:50:09 +00:00
|
|
|
version = "1.0.1";
|
2015-11-21 20:54:52 +00:00
|
|
|
|
2016-02-12 17:43:19 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "cryptodotis";
|
|
|
|
repo = "irssi-otr";
|
2016-02-13 04:50:09 +00:00
|
|
|
rev = "4ad3b7b6c85be0154ab3694fe9831796db20c4fe";
|
|
|
|
sha256 = "1hm1whx1wzlx4fh4xf2y68rx9x6whi8bsbrhd6hqjhskg5msssrg";
|
2013-04-13 16:09:27 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
2013-04-13 17:18:44 +01:00
|
|
|
sed -i 's,/usr/include/irssi,${irssi}/include/irssi,' src/Makefile.am
|
|
|
|
sed -i "s,/usr/lib/irssi,$out/lib/irssi," configure.ac
|
|
|
|
sed -i "s,/usr/share/irssi,$out/share/irssi," help/Makefile.am
|
2013-04-13 16:09:27 +01:00
|
|
|
'';
|
|
|
|
|
2013-04-13 17:18:44 +01:00
|
|
|
preConfigure = "sh ./bootstrap";
|
2013-04-13 16:09:27 +01:00
|
|
|
|
2013-04-13 17:18:44 +01:00
|
|
|
buildInputs = [ libotr automake autoconf libtool glib pkgconfig irssi ];
|
2015-11-21 20:54:52 +00:00
|
|
|
|
2013-04-13 16:09:27 +01:00
|
|
|
meta = {
|
2013-04-13 17:18:44 +01:00
|
|
|
homepage = https://github.com/cryptodotis/irssi-otr;
|
2014-06-19 05:19:00 +01:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
2013-04-13 16:09:27 +01:00
|
|
|
};
|
|
|
|
}
|