2017-07-26 21:02:45 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, libupnp, gpgme, gnome3, glib, libssh, pkgconfig, protobuf, bzip2
|
|
|
|
, libXScrnSaver, speex, curl, libxml2, libxslt, sqlcipher, libmicrohttpd, opencv, qmake, ffmpeg
|
|
|
|
, qtmultimedia, qtx11extras, qttools }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "retroshare-${version}";
|
|
|
|
version = "0.6.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RetroShare";
|
|
|
|
repo = "RetroShare";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0hly2x87wdvqzzwf3wjzi7092bj8fk4xs6302rkm8gp9bkkmiiw8";
|
2011-06-26 18:57:28 +01:00
|
|
|
};
|
|
|
|
|
2017-07-26 21:02:45 +01:00
|
|
|
# NIX_CFLAGS_COMPILE = [ "-I${glib.dev}/include/glib-2.0" "-I${glib.dev}/lib/glib-2.0/include" "-I${libxml2.dev}/include/libxml2" "-I${sqlcipher}/include/sqlcipher" ];
|
2014-02-03 20:54:08 +00:00
|
|
|
|
2014-06-21 14:53:22 +01:00
|
|
|
patchPhase = ''
|
2017-07-26 21:02:45 +01:00
|
|
|
# Fix build error
|
2014-06-21 14:53:22 +01:00
|
|
|
sed -i 's/UpnpString_get_String(es_event->PublisherUrl)/es_event->PublisherUrl/' \
|
|
|
|
libretroshare/src/upnp/UPnPBase.cpp
|
|
|
|
'';
|
2014-02-03 20:54:08 +00:00
|
|
|
|
2017-07-26 21:02:45 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig qmake ];
|
|
|
|
buildInputs = [
|
|
|
|
speex libupnp gpgme gnome3.libgnome_keyring glib libssh qtmultimedia qtx11extras qttools
|
|
|
|
protobuf bzip2 libXScrnSaver curl libxml2 libxslt sqlcipher libmicrohttpd opencv ffmpeg
|
|
|
|
];
|
2014-02-03 20:54:08 +00:00
|
|
|
|
2016-04-17 00:39:30 +01:00
|
|
|
preConfigure = ''
|
|
|
|
qmakeFlags="$qmakeFlags DESTDIR=$out"
|
2014-02-03 20:54:08 +00:00
|
|
|
'';
|
|
|
|
|
2017-07-26 21:02:45 +01:00
|
|
|
# gui/settings/PluginsPage.h:25:28: fatal error: ui_PluginsPage.h: No such file or directory
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2014-02-03 20:54:08 +00:00
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/bin
|
2017-07-26 21:02:45 +01:00
|
|
|
mv $out/RetroShare06-nogui $out/bin/RetroShare-nogui
|
|
|
|
mv $out/RetroShare06 $out/bin/Retroshare
|
|
|
|
ln -s $out/bin/RetroShare-nogui $out/bin/retroshare-nogui
|
2014-06-21 14:53:22 +01:00
|
|
|
|
|
|
|
# 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/;
|
2017-07-26 21:02:45 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2014-02-03 20:54:08 +00:00
|
|
|
platforms = platforms.linux;
|
2016-05-17 12:57:28 +01:00
|
|
|
maintainers = [ maintainers.domenkozar ];
|
2014-02-03 20:54:08 +00:00
|
|
|
};
|
2011-06-26 18:57:28 +01:00
|
|
|
}
|