2013-04-13 17:18:44 +01:00
|
|
|
{ stdenv, fetchurl, 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}";
|
|
|
|
version = "1.0.0";
|
|
|
|
|
2013-04-13 17:18:44 +01:00
|
|
|
src = fetchurl {
|
2015-11-21 20:54:52 +00:00
|
|
|
url = "https://github.com/cryptodotis/irssi-otr/archive/v${version}.tar.gz";
|
2013-04-13 17:18:44 +01:00
|
|
|
name = "${name}.tar.gz";
|
2015-11-21 20:54:52 +00:00
|
|
|
sha256 = "bad09a2853ea6fb1a7af42c8f15868fd3ce45f973be90c78944ddf04f8ab517e";
|
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
|
|
|
};
|
|
|
|
}
|