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

31 lines
827 B
Nix
Raw Normal View History

{ stdenv, fetchurl, libotr, automake, autoconf, libtool, glib, pkgconfig, irssi }:
2013-04-13 17:09:27 +02:00
let
2013-06-10 22:41:20 +02:00
rev = "cab3fc915c";
2013-04-13 17:09:27 +02:00
in
with stdenv.lib;
stdenv.mkDerivation rec {
2013-06-10 22:41:20 +02:00
name = "irssi-otr-20130601-${rev}";
2013-04-13 17:09:27 +02:00
src = fetchurl {
url = "https://github.com/cryptodotis/irssi-otr/tarball/${rev}";
name = "${name}.tar.gz";
2013-06-10 22:41:20 +02:00
sha256 = "0kn9c562zfh36gpcrbpslwjjr78baagdwphczz2d608ndczm1vrk";
2013-04-13 17:09:27 +02: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 17:09:27 +02:00
'';
preConfigure = "sh ./bootstrap";
2013-04-13 17:09:27 +02:00
buildInputs = [ libotr automake autoconf libtool glib pkgconfig irssi ];
2013-04-13 17:09:27 +02:00
meta = {
homepage = https://github.com/cryptodotis/irssi-otr;
2013-04-13 17:09:27 +02:00
license = "GPLv2+";
};
}