2016-01-15 14:15:59 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, makeDesktopItem, unzip
|
2017-05-17 20:26:11 +01:00
|
|
|
, qtbase, qttools, qtmultimedia, qtquick1, qtquickcontrols
|
2017-06-02 16:40:19 +01:00
|
|
|
, openssl, protobuf, qmake
|
2015-12-27 19:35:27 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "ricochet-${version}";
|
2016-12-28 13:51:28 +00:00
|
|
|
version = "1.1.4";
|
2015-12-27 19:35:27 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/ricochet-im/ricochet/archive/v${version}.tar.gz";
|
2016-12-28 13:51:28 +00:00
|
|
|
sha256 = "1kfj42ksvj7axc809lb8siqzj5hck2pib427b63a3ipnqc5h1faf";
|
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;
|
|
|
|
categories = "Office;Email;";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
qtbase qttools qtmultimedia qtquick1 qtquickcontrols
|
|
|
|
openssl protobuf
|
|
|
|
];
|
2015-12-27 19:35:27 +00:00
|
|
|
|
2017-05-17 20:26:11 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig qmake ];
|
2015-12-27 19:35:27 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE $(pkg-config --cflags openssl)"
|
|
|
|
'';
|
|
|
|
|
2016-04-17 00:35:53 +01: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;
|
|
|
|
|
2015-12-27 19:35:27 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Anonymous peer-to-peer instant messaging";
|
2017-08-01 21:03:30 +01: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 18:50:55 +01:00
|
|
|
platforms = platforms.linux;
|
2015-12-27 19:35:27 +00:00
|
|
|
};
|
|
|
|
}
|