mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 21:50:55 +00:00
tdesktop: Use CMake to install all files
This commit is contained in:
parent
cfccb477cd
commit
40be1827ee
|
@ -31,6 +31,8 @@ mkDerivation rec {
|
|||
--replace '"appindicator3"' '"${libappindicator-gtk3}/lib/libappindicator3.so"'
|
||||
substituteInPlace Telegram/lib_spellcheck/spellcheck/platform/linux/linux_enchant.cpp \
|
||||
--replace '"libenchant-2.so.2"' '"${enchant2}/lib/libenchant-2.so.2"'
|
||||
substituteInPlace Telegram/CMakeLists.txt \
|
||||
--replace '"''${TDESKTOP_LAUNCHER_BASENAME}.appdata.xml"' '"''${TDESKTOP_LAUNCHER_BASENAME}.metainfo.xml"'
|
||||
'';
|
||||
|
||||
# We want to run wrapProgram manually (with additional parameters)
|
||||
|
@ -79,18 +81,6 @@ mkDerivation rec {
|
|||
# Both of these packages are included in this PR (kotatogram-desktop):
|
||||
# https://github.com/NixOS/nixpkgs/pull/75210
|
||||
|
||||
installPhase = ''
|
||||
install -Dm755 bin/telegram-desktop $out/bin/telegram-desktop
|
||||
|
||||
mkdir -p $out/share/{kservices5,applications,metainfo}
|
||||
install -m444 "../lib/xdg/telegramdesktop.desktop" "$out/share/applications/telegram-desktop.desktop"
|
||||
install -m644 "../lib/xdg/telegramdesktop.appdata.xml" "$out/share/metainfo/telegramdesktop.metainfo.xml"
|
||||
|
||||
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.png"
|
||||
done
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
# This is necessary to run Telegram in a pure environment.
|
||||
# We also use gappsWrapperArgs from wrapGAppsHook.
|
||||
|
|
Loading…
Reference in a new issue