wire-desktop: 3.2.2840 -> 3.3.2872 (#47941)
This commit is contained in:
parent
f368e55ba1
commit
fa3ec9c836
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, lib, fetchurl, dpkg, makeDesktopItem, gnome2, gtk2, atk, cairo, pango, gdk_pixbuf, glib
|
{ stdenv, fetchurl, dpkg, makeDesktopItem, gnome2, gtk2, atk, cairo, pango, gdk_pixbuf, glib
|
||||||
, freetype, fontconfig, dbus, libnotify, libX11, xorg, libXi, libXcursor, libXdamage
|
, freetype, fontconfig, dbus, libnotify, libX11, xorg, libXi, libXcursor, libXdamage
|
||||||
, libXrandr, libXcomposite, libXext, libXfixes, libXrender, libXtst, libXScrnSaver
|
, libXrandr, libXcomposite, libXext, libXfixes, libXrender, libXtst, libXScrnSaver
|
||||||
, nss, nspr, alsaLib, cups, expat, udev, xdg_utils, hunspell
|
, nss, nspr, alsaLib, cups, expat, udev, xdg_utils, hunspell, pulseaudio, pciutils
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
rpath = lib.makeLibraryPath [
|
rpath = stdenv.lib.makeLibraryPath [
|
||||||
alsaLib
|
alsaLib
|
||||||
atk
|
atk
|
||||||
cairo
|
cairo
|
||||||
@ -17,7 +17,6 @@ let
|
|||||||
glib
|
glib
|
||||||
gnome2.GConf
|
gnome2.GConf
|
||||||
gtk2
|
gtk2
|
||||||
pango
|
|
||||||
hunspell
|
hunspell
|
||||||
libnotify
|
libnotify
|
||||||
libX11
|
libX11
|
||||||
@ -33,13 +32,16 @@ let
|
|||||||
libXtst
|
libXtst
|
||||||
nspr
|
nspr
|
||||||
nss
|
nss
|
||||||
|
pango
|
||||||
|
pciutils
|
||||||
|
pulseaudio
|
||||||
stdenv.cc.cc
|
stdenv.cc.cc
|
||||||
udev
|
udev
|
||||||
xdg_utils
|
xdg_utils
|
||||||
xorg.libxcb
|
xorg.libxcb
|
||||||
];
|
];
|
||||||
|
|
||||||
version = "3.2.2840";
|
version = "3.3.2872";
|
||||||
|
|
||||||
plat = {
|
plat = {
|
||||||
"i686-linux" = "i386";
|
"i686-linux" = "i386";
|
||||||
@ -47,8 +49,8 @@ let
|
|||||||
}.${stdenv.hostPlatform.system};
|
}.${stdenv.hostPlatform.system};
|
||||||
|
|
||||||
sha256 = {
|
sha256 = {
|
||||||
"i686-linux" = "071ddh2d8wmiybwafwyb97962zj358l0fq7g2r44231653sgybvq";
|
"i686-linux" = "16dw4ycajxviqrf4i32rkrhg1j1mdkmk252y8vjwr18xlyn958qb";
|
||||||
"x86_64-linux" = "0qp9ms94smnm7k47b0n0jdzvnm1b7gj25hyinsfc6lghrb6jqw3r";
|
"x86_64-linux" = "04ysk91h2izyb41b243zki4j08bis9yzjq2va9bakp1lv6ywm8pw";
|
||||||
}.${stdenv.hostPlatform.system};
|
}.${stdenv.hostPlatform.system};
|
||||||
|
|
||||||
in
|
in
|
||||||
@ -74,31 +76,31 @@ in
|
|||||||
nativeBuildInputs = [ dpkg ];
|
nativeBuildInputs = [ dpkg ];
|
||||||
unpackPhase = "dpkg-deb -x $src .";
|
unpackPhase = "dpkg-deb -x $src .";
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p $out
|
mkdir -p "$out"
|
||||||
cp -R opt $out
|
cp -R "opt" "$out"
|
||||||
cp -R usr/share $out/share
|
cp -R "usr/share" "$out/share"
|
||||||
|
|
||||||
chmod -R g-w $out
|
chmod -R g-w "$out"
|
||||||
|
|
||||||
# Patch signal
|
# Patch wire-desktop
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
||||||
--set-rpath "${rpath}:$out/opt/wire-desktop" \
|
--set-rpath "${rpath}:$out/opt/Wire" \
|
||||||
"$out/opt/wire-desktop/wire-desktop"
|
"$out/opt/Wire/wire-desktop"
|
||||||
|
|
||||||
# Symlink to bin
|
# Symlink to bin
|
||||||
mkdir -p $out/bin
|
mkdir -p "$out/bin"
|
||||||
ln -s "$out/opt/wire-desktop/wire-desktop" $out/bin/wire-desktop
|
ln -s "$out/opt/Wire/wire-desktop" "$out/bin/wire-desktop"
|
||||||
|
|
||||||
# Desktop file
|
# Desktop file
|
||||||
mkdir -p $out/share/applications
|
mkdir -p "$out/share/applications"
|
||||||
cp ${desktopItem}/share/applications/* $out/share/applications
|
cp ${desktopItem}/share/applications/* "$out/share/applications"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = with stdenv.lib; {
|
||||||
description = "A modern, secure messenger";
|
description = "A modern, secure messenger";
|
||||||
homepage = https://wire.com/;
|
homepage = https://wire.com/;
|
||||||
license = lib.licenses.gpl3;
|
license = licenses.gpl3;
|
||||||
maintainers = with lib.maintainers; [ worldofpeace ];
|
maintainers = with maintainers; [ worldofpeace ];
|
||||||
platforms = [ "i686-linux" "x86_64-linux" ];
|
platforms = [ "i686-linux" "x86_64-linux" ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user