2021-11-02 10:02:29 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pkg-config
|
|
|
|
, makeDesktopItem
|
|
|
|
, qtbase
|
|
|
|
, qttools
|
|
|
|
, qtmultimedia
|
|
|
|
, qtquick1
|
|
|
|
, qtquickcontrols
|
|
|
|
, openssl
|
|
|
|
, protobuf
|
|
|
|
, qmake
|
2015-12-27 19:35:27 +00:00
|
|
|
}:
|
|
|
|
|
2020-04-07 20:27:18 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ricochet";
|
2016-12-28 13:51:28 +00:00
|
|
|
version = "1.1.4";
|
2015-12-27 19:35:27 +00:00
|
|
|
|
2021-11-02 10:02:29 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ricochet-im";
|
|
|
|
repo = "ricochet";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "sha256-CGVTHa0Hqj90WvB6ZbA156DVgzv/R7blsU550y2Ai9c=";
|
2015-12-27 19:35:27 +00:00
|
|
|
};
|
|
|
|
|
2016-01-15 14:15:59 +00:00
|
|
|
desktopItem = makeDesktopItem {
|
|
|
|
name = "ricochet";
|
|
|
|
exec = "ricochet";
|
|
|
|
icon = "ricochet";
|
|
|
|
desktopName = "Ricochet";
|
|
|
|
genericName = "Ricochet";
|
|
|
|
comment = meta.description;
|
2022-02-22 14:56:15 +00:00
|
|
|
categories = [ "Office" "Email" ];
|
2016-01-15 14:15:59 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
2021-11-02 10:02:29 +00:00
|
|
|
qtbase
|
|
|
|
qttools
|
|
|
|
qtmultimedia
|
|
|
|
qtquick1
|
|
|
|
qtquickcontrols
|
|
|
|
openssl
|
|
|
|
protobuf
|
2016-01-15 14:15:59 +00:00
|
|
|
];
|
2015-12-27 19:35:27 +00:00
|
|
|
|
2021-01-17 02:09:27 +00:00
|
|
|
nativeBuildInputs = [ pkg-config qmake ];
|
2015-12-27 19:35:27 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags openssl)"
|
|
|
|
'';
|
|
|
|
|
2016-04-16 23:35:53 +00:00
|
|
|
qmakeFlags = [ "DEFINES+=RICOCHET_NO_PORTABLE" ];
|
2015-12-27 19:35:27 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
cp ricochet $out/bin
|
2016-01-15 14:15:59 +00:00
|
|
|
|
|
|
|
mkdir -p $out/share/applications
|
|
|
|
cp $desktopItem/share/applications"/"* $out/share/applications
|
|
|
|
|
|
|
|
mkdir -p $out/share/pixmaps
|
|
|
|
cp icons/ricochet.png $out/share/pixmaps/ricochet.png
|
2015-12-27 19:35:27 +00:00
|
|
|
'';
|
|
|
|
|
2017-12-05 15:26:32 +00:00
|
|
|
# RCC: Error in 'translation/embedded.qrc': Cannot find file 'ricochet_en.qm'
|
|
|
|
enableParallelBuilding = false;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2015-12-27 19:35:27 +00:00
|
|
|
description = "Anonymous peer-to-peer instant messaging";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://ricochet.im";
|
2015-12-27 19:35:27 +00:00
|
|
|
license = licenses.bsd3;
|
2016-12-28 13:51:28 +00:00
|
|
|
maintainers = [ maintainers.codsl maintainers.jgillich maintainers.np ];
|
2016-08-02 17:50:55 +00:00
|
|
|
platforms = platforms.linux;
|
2015-12-27 19:35:27 +00:00
|
|
|
};
|
|
|
|
}
|