2021-04-18 18:51:11 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, qmake, cmake, pkg-config, miniupnpc, bzip2
|
|
|
|
, speex, libmicrohttpd, libxml2, libxslt, sqlcipher, rapidjson, libXScrnSaver
|
|
|
|
, qtbase, qtx11extras, qtmultimedia, libgnome-keyring3
|
|
|
|
}:
|
|
|
|
|
|
|
|
mkDerivation rec {
|
|
|
|
pname = "retroshare";
|
|
|
|
version = "0.6.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RetroShare";
|
|
|
|
repo = "RetroShare";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1hsymbhsfgycj39mdkrdp2hgq8irmvxa4a6jx2gg339m1fgf2xmh";
|
|
|
|
fetchSubmodules = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
# The build normally tries to get git sub-modules during build
|
|
|
|
# but we already have them checked out
|
|
|
|
./no-submodules.patch
|
2023-05-20 20:00:58 +01:00
|
|
|
./cpp-filesystem.patch
|
2021-04-18 18:51:11 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkg-config qmake cmake ];
|
|
|
|
buildInputs = [
|
|
|
|
speex miniupnpc qtmultimedia qtx11extras qtbase libgnome-keyring3
|
|
|
|
bzip2 libXScrnSaver libxml2 libxslt sqlcipher libmicrohttpd rapidjson
|
|
|
|
];
|
|
|
|
|
|
|
|
qmakeFlags = [
|
|
|
|
# Upnp library autodetection doesn't work
|
|
|
|
"RS_UPNP_LIB=miniupnpc"
|
|
|
|
|
|
|
|
# These values are normally found from the .git folder
|
|
|
|
"RS_MAJOR_VERSION=${lib.versions.major version}"
|
|
|
|
"RS_MINOR_VERSION=${lib.versions.minor version}"
|
|
|
|
"RS_MINI_VERSION=${lib.versions.patch version}"
|
|
|
|
"RS_EXTRA_VERSION="
|
|
|
|
];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
# BT DHT bootstrap
|
|
|
|
cp libbitdht/src/bitdht/bdboot.txt $out/share/retroshare
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Decentralized peer to peer chat application.";
|
2021-10-03 18:37:57 +01:00
|
|
|
homepage = "https://retroshare.cc/";
|
2021-04-18 18:51:11 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ StijnDW ];
|
|
|
|
};
|
|
|
|
}
|