2007-08-16 23:44:48 +02:00
|
|
|
{stdenv, fetchurl, libgcrypt}:
|
|
|
|
|
2013-04-15 20:43:32 +02:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libotr-4.0.0";
|
2007-08-16 23:44:48 +02:00
|
|
|
src = fetchurl {
|
2013-04-15 20:43:32 +02:00
|
|
|
urls = [
|
|
|
|
"http://www.cypherpunks.ca/otr/${name}.tar.gz"
|
|
|
|
# The site is down at the time of updating to 4.0.0, so I add this url
|
|
|
|
http://ftp.de.debian.org/debian/pool/main/libo/libotr/libotr_4.0.0.orig.tar.gz
|
|
|
|
];
|
|
|
|
sha256 = "3f911994409898e74527730745ef35ed75c352c695a1822a677a34b2cf0293b4";
|
2007-08-16 23:44:48 +02:00
|
|
|
};
|
|
|
|
|
2013-04-15 20:43:32 +02:00
|
|
|
# Crashes without it, still not accepted upstream.
|
|
|
|
# Discussed in https://github.com/cryptodotis/irssi-otr/issues/21
|
|
|
|
patches = [ ./0001-Fix-pass-opdata-when-sending-message-fragment.patch ];
|
|
|
|
|
|
|
|
NIX_LDFLAGS = "-lssp";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ libgcrypt ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.cypherpunks.ca/otr/";
|
|
|
|
license = "LGPLv2.1";
|
|
|
|
description = "Library for Off-The-Record Messaging";
|
|
|
|
};
|
2007-08-16 23:44:48 +02:00
|
|
|
}
|