tdesktop: 1.2.14 -> 1.2.15
tdesktopPackages.preview: 1.2.14 -> 1.2.15
This commit is contained in:
parent
1a44de831a
commit
9a4871ad82
@ -4,8 +4,8 @@ let
|
|||||||
mkTelegram = args: qt5.callPackage (import ./generic.nix args) { };
|
mkTelegram = args: qt5.callPackage (import ./generic.nix args) { };
|
||||||
stableVersion = {
|
stableVersion = {
|
||||||
stable = true;
|
stable = true;
|
||||||
version = "1.2.14";
|
version = "1.2.15";
|
||||||
sha256Hash = "1412bls4qmfsa4nlqrxrc1j1jslhj6rhg8k69blhks9grrz36s1l";
|
sha256Hash = "18srw7g8h5zmc0plzqd03aijaylrsfaybraw97b1w9hj4lf2bl92";
|
||||||
# svn log svn://svn.archlinux.org/community/telegram-desktop/trunk
|
# svn log svn://svn.archlinux.org/community/telegram-desktop/trunk
|
||||||
archPatchesRevision = "310557";
|
archPatchesRevision = "310557";
|
||||||
archPatchesHash = "1v134dal3xiapgh3akfr61vh62j24m9vkb62kckwvap44iqb0hlk";
|
archPatchesHash = "1v134dal3xiapgh3akfr61vh62j24m9vkb62kckwvap44iqb0hlk";
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{ stable, version, sha256Hash, archPatchesRevision, archPatchesHash }:
|
{ stable, version, sha256Hash, archPatchesRevision, archPatchesHash }:
|
||||||
|
|
||||||
{ mkDerivation, lib, fetchgit, fetchsvn
|
{ mkDerivation, lib, fetchgit, fetchsvn
|
||||||
, pkgconfig, pythonPackages, cmake, makeWrapper
|
, pkgconfig, pythonPackages, cmake, wrapGAppsHook
|
||||||
, qtbase, qtimageformats, gtk3, libappindicator-gtk3, libnotify
|
, qtbase, qtimageformats, gtk3, libappindicator-gtk3, libnotify
|
||||||
, dee, ffmpeg, openalSoft, minizip, libopus, alsaLib, libpulseaudio, range-v3
|
, dee, ffmpeg, openalSoft, minizip, libopus, alsaLib, libpulseaudio, range-v3
|
||||||
}:
|
}:
|
||||||
@ -37,7 +37,10 @@ mkDerivation rec {
|
|||||||
--replace '"notify"' '"${libnotify}/lib/libnotify.so"'
|
--replace '"notify"' '"${libnotify}/lib/libnotify.so"'
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ pkgconfig pythonPackages.gyp cmake makeWrapper ];
|
nativeBuildInputs = [ pkgconfig pythonPackages.gyp cmake wrapGAppsHook ];
|
||||||
|
|
||||||
|
# We want to run wrapProgram manually (with additional parameters)
|
||||||
|
dontWrapGApps = true;
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
qtbase qtimageformats gtk3 libappindicator-gtk3
|
qtbase qtimageformats gtk3 libappindicator-gtk3
|
||||||
@ -113,11 +116,14 @@ mkDerivation rec {
|
|||||||
for icon_size in 16 32 48 64 128 256 512; do
|
for icon_size in 16 32 48 64 128 256 512; do
|
||||||
install -Dm644 "../../../Telegram/Resources/art/icon''${icon_size}.png" "$out/share/icons/hicolor/''${icon_size}x''${icon_size}/apps/telegram-desktop.png"
|
install -Dm644 "../../../Telegram/Resources/art/icon''${icon_size}.png" "$out/share/icons/hicolor/''${icon_size}x''${icon_size}/apps/telegram-desktop.png"
|
||||||
done
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
# This is necessary to run Telegram in a pure environment.
|
# This is necessary to run Telegram in a pure environment.
|
||||||
|
# We also use gappsWrapperArgs from wrapGAppsHook.
|
||||||
wrapProgram $out/bin/telegram-desktop \
|
wrapProgram $out/bin/telegram-desktop \
|
||||||
|
"''${gappsWrapperArgs[@]}" \
|
||||||
--prefix QT_PLUGIN_PATH : "${qtbase}/${qtbase.qtPluginPrefix}" \
|
--prefix QT_PLUGIN_PATH : "${qtbase}/${qtbase.qtPluginPrefix}" \
|
||||||
--suffix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
|
|
||||||
--set XDG_RUNTIME_DIR "XDG-RUNTIME-DIR"
|
--set XDG_RUNTIME_DIR "XDG-RUNTIME-DIR"
|
||||||
sed -i $out/bin/telegram-desktop \
|
sed -i $out/bin/telegram-desktop \
|
||||||
-e "s,'XDG-RUNTIME-DIR',\"\''${XDG_RUNTIME_DIR:-/run/user/\$(id --user)}\","
|
-e "s,'XDG-RUNTIME-DIR',\"\''${XDG_RUNTIME_DIR:-/run/user/\$(id --user)}\","
|
||||||
|
Loading…
x
Reference in New Issue
Block a user