2014-02-03 20:54:08 +00:00
|
|
|
{ stdenv, fetchurl, cmake, qt, libupnp, gpgme, gnome3, glib, libssh, pkgconfig, protobuf, bzip2
|
|
|
|
, libXScrnSaver, speex, curl, libxml2, libxslt }:
|
2011-06-26 18:57:28 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2014-02-03 20:54:08 +00:00
|
|
|
name = "retroshare-0.5.5c";
|
2011-06-26 18:57:28 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-02-03 20:54:08 +00:00
|
|
|
url = mirror://sourceforge/project/retroshare/RetroShare/0.5.5c/retroshare_0.5.5-0.7068.tar.gz;
|
|
|
|
sha256 = "0l2n4pr1hq66q6qa073hrdx3s3d7iw54z8ay1zy82zhk2rwhsavp";
|
2011-06-26 18:57:28 +01:00
|
|
|
};
|
|
|
|
|
2014-02-03 20:54:08 +00:00
|
|
|
NIX_CFLAGS_COMPILE = "-I${glib}/include/glib-2.0 -I${glib}/lib/glib-2.0/include -I${libxml2}/include/libxml2";
|
|
|
|
|
2014-06-21 14:53:22 +01:00
|
|
|
patchPhase = ''
|
|
|
|
sed -i 's/UpnpString_get_String(es_event->PublisherUrl)/es_event->PublisherUrl/' \
|
|
|
|
libretroshare/src/upnp/UPnPBase.cpp
|
|
|
|
# Extensions get installed
|
|
|
|
sed -i "s,/usr/lib/retroshare/extensions/,$out/share/retroshare," \
|
|
|
|
libretroshare/src/rsserver/rsinit.cc
|
2014-06-23 14:01:50 +01:00
|
|
|
# For bdboot.txt
|
|
|
|
sed -i "s,/usr/share/RetroShare,$out/share/retroshare," \
|
|
|
|
libretroshare/src/rsserver/rsinit.cc
|
2014-06-21 14:53:22 +01:00
|
|
|
'';
|
2014-02-03 20:54:08 +00:00
|
|
|
|
|
|
|
buildInputs = [ speex qt libupnp gpgme gnome3.libgnome_keyring glib libssh pkgconfig
|
|
|
|
protobuf bzip2 libXScrnSaver curl libxml2 libxslt ];
|
|
|
|
|
|
|
|
sourceRoot = "retroshare-0.5.5/src";
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
qmake PREFIX=$out DESTDIR=$out RetroShare.pro
|
|
|
|
'';
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
2014-06-21 14:53:22 +01:00
|
|
|
mv $out/retroshare-nogui $out/bin
|
|
|
|
mv $out/RetroShare $out/bin
|
|
|
|
|
|
|
|
# plugins
|
|
|
|
mkdir -p $out/share/retroshare
|
|
|
|
mv $out/lib* $out/share/retroshare
|
2014-06-23 14:01:50 +01:00
|
|
|
|
|
|
|
# BT DHT bootstrap
|
|
|
|
cp libbitdht/src/bitdht/bdboot.txt $out/share/retroshare
|
2011-06-26 18:57:28 +01:00
|
|
|
'';
|
|
|
|
|
2014-02-03 20:54:08 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "";
|
|
|
|
homepage = http://retroshare.sourceforge.net/;
|
|
|
|
#license = licenses.bsd2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.iElectric ];
|
|
|
|
};
|
2011-06-26 18:57:28 +01:00
|
|
|
}
|