irssi-otr: updating to a fork more up to date

This commit is contained in:
Lluís Batlle i Rossell 2013-04-13 18:18:44 +02:00
parent 1664c97704
commit 50f3625f70

View File

@ -1,33 +1,30 @@
{ stdenv, fetchgit, cmake, pkgconfig, glib, python, libgcrypt, libotr { stdenv, fetchurl, libotr, automake, autoconf, libtool, glib, pkgconfig, irssi }:
, withIrssi ? true, irssi }:
let let
rev = "9ea5cc4e2e41"; rev = "59ddcbe66a";
in in
with stdenv.lib; with stdenv.lib;
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "irssi-otr-20120915-${rev}"; name = "irssi-otr-20130315-${rev}";
src = fetchgit { src = fetchurl {
url = git://git.tuxfamily.org/gitroot/irssiotr/irssiotr.git; url = "https://github.com/cryptodotis/irssi-otr/tarball/${rev}";
inherit rev; name = "${name}.tar.gz";
sha256 = "19zwxiy6h8n6zblqlcy6y9xyixp1yw2k8792rffsaaczjc5lpbvk"; sha256 = "095dak0d10j6cpkwlqmk967p1wypwzvqr4wdqvb30w14dbn8dy0d";
}; };
patchPhase = '' patchPhase = ''
cp LICENSE README irssi 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
''; '';
cmakeFlags = "-DIRCOTR_VERSION=mydistro-git-${rev}" + preConfigure = "sh ./bootstrap";
optionalString withIrssi " -DWANT_IRSSI=ON -DIRSSI_INCLUDE_DIR=${irssi}/include";
nativeBuildInputs = [ python ]; buildInputs = [ libotr automake autoconf libtool glib pkgconfig irssi ];
buildInputs = [ cmake pkgconfig glib libgcrypt libotr ];
meta = { meta = {
homepage = http://irssi-otr.tuxfamily.org/; homepage = https://github.com/cryptodotis/irssi-otr;
license = "GPLv2+"; license = "GPLv2+";
maintainers = with stdenv.lib.maintainers; [viric];
}; };
} }