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

29 lines
854 B
Nix
Raw Normal View History

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