nixpkgs/pkgs/applications/networking/irc/irssi/otr/default.nix

30 lines
851 B
Nix
Raw Normal View History

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;
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 = ''
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
'';
preConfigure = "sh ./bootstrap";
2013-04-13 16:09:27 +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 = {
homepage = https://github.com/cryptodotis/irssi-otr;
license = stdenv.lib.licenses.gpl2Plus;
2013-04-13 16:09:27 +01:00
};
}