wire-desktop: fix a segfault when changing profile picture
(wire-desktop:11531): GLib-GIO-ERROR **: 06:04:45.248: No GSettings schemas are installed on the system and fix Fontconfig warning: "/etc/fonts/fonts.conf", line 86: unknown element "blank" and tidied up the linux build greatly and added kiwi as a maintainer
This commit is contained in:
parent
9ff252ec23
commit
5a465b0b14
1 changed files with 58 additions and 44 deletions
|
@ -1,12 +1,14 @@
|
||||||
{ stdenv, fetchurl, makeDesktopItem
|
{ atomEnv
|
||||||
|
, autoPatchelfHook
|
||||||
, alsaLib, at-spi2-atk, atk, cairo, cups, dbus, dpkg, expat, fontconfig
|
, dpkg
|
||||||
, freetype, gdk-pixbuf, glib, gtk3, hunspell, libX11, libXScrnSaver
|
, fetchurl
|
||||||
, libXcomposite, libXcursor, libXdamage, libXext, libXfixes, libXi, libXrandr
|
, makeDesktopItem
|
||||||
, libXrender, libXtst, libnotify, libuuid, nspr, nss, pango, pciutils
|
, makeWrapper
|
||||||
, pulseaudio, udev, xdg_utils, xorg
|
, stdenv
|
||||||
|
, udev
|
||||||
, cpio, xar
|
, wrapGAppsHook
|
||||||
|
, cpio
|
||||||
|
, xar
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
@ -18,13 +20,13 @@ let
|
||||||
pname = "wire-desktop";
|
pname = "wire-desktop";
|
||||||
|
|
||||||
version = {
|
version = {
|
||||||
x86_64-linux = "3.11.2912";
|
|
||||||
x86_64-darwin = "3.10.3215";
|
x86_64-darwin = "3.10.3215";
|
||||||
|
x86_64-linux = "3.11.2912";
|
||||||
}.${system} or throwSystem;
|
}.${system} or throwSystem;
|
||||||
|
|
||||||
sha256 = {
|
sha256 = {
|
||||||
x86_64-linux = "1d2wa13d750dd2vslnvzf0ibwjmf5s299pxq0rs2x98y2sabw3sl";
|
|
||||||
x86_64-darwin = "0ygm3fgy9k1dp2kjfwsrrwq1i88wgxc6k8y80yz61ivdawgph9wa";
|
x86_64-darwin = "0ygm3fgy9k1dp2kjfwsrrwq1i88wgxc6k8y80yz61ivdawgph9wa";
|
||||||
|
x86_64-linux = "1d2wa13d750dd2vslnvzf0ibwjmf5s299pxq0rs2x98y2sabw3sl";
|
||||||
}.${system} or throwSystem;
|
}.${system} or throwSystem;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
|
@ -40,11 +42,19 @@ let
|
||||||
* Timed messages and chats
|
* Timed messages and chats
|
||||||
* Synced across your phone, desktop and tablet
|
* Synced across your phone, desktop and tablet
|
||||||
'';
|
'';
|
||||||
homepage = https://wire.com/;
|
homepage = "https://wire.com/";
|
||||||
downloadPage = https://wire.com/download/;
|
downloadPage = "https://wire.com/download/";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
maintainers = with maintainers; [ arianvp toonn worldofpeace ];
|
maintainers = with maintainers; [
|
||||||
platforms = [ "x86_64-darwin" "x86_64-linux" ];
|
arianvp
|
||||||
|
kiwi
|
||||||
|
toonn
|
||||||
|
worldofpeace
|
||||||
|
];
|
||||||
|
platforms = [
|
||||||
|
"x86_64-darwin"
|
||||||
|
"x86_64-linux"
|
||||||
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
linux = stdenv.mkDerivation rec {
|
linux = stdenv.mkDerivation rec {
|
||||||
|
@ -57,49 +67,50 @@ let
|
||||||
};
|
};
|
||||||
|
|
||||||
desktopItem = makeDesktopItem {
|
desktopItem = makeDesktopItem {
|
||||||
name = "wire-desktop";
|
categories = "Network;InstantMessaging;Chat;VideoConference";
|
||||||
exec = "wire-desktop %U";
|
|
||||||
icon = "wire-desktop";
|
|
||||||
comment = "Secure messenger for everyone";
|
comment = "Secure messenger for everyone";
|
||||||
desktopName = "Wire Desktop";
|
desktopName = "Wire Desktop";
|
||||||
|
exec = "wire-desktop %U";
|
||||||
genericName = "Secure messenger";
|
genericName = "Secure messenger";
|
||||||
categories = "Network;InstantMessaging;Chat;VideoConference";
|
icon = "wire-desktop";
|
||||||
|
name = "wire-desktop";
|
||||||
};
|
};
|
||||||
|
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
dontPatchELF = true;
|
|
||||||
dontConfigure = true;
|
dontConfigure = true;
|
||||||
|
dontPatchELF = true;
|
||||||
|
dontWrapGApps = true;
|
||||||
|
|
||||||
nativeBuildInputs = [ dpkg ];
|
nativeBuildInputs = [
|
||||||
rpath = stdenv.lib.makeLibraryPath [
|
autoPatchelfHook
|
||||||
alsaLib at-spi2-atk atk cairo cups dbus expat fontconfig freetype
|
dpkg
|
||||||
gdk-pixbuf glib gtk3 hunspell libX11 libXScrnSaver libXcomposite
|
makeWrapper
|
||||||
libXcursor libXdamage libXext libXfixes libXi libXrandr libXrender
|
wrapGAppsHook
|
||||||
libXtst libnotify libuuid nspr nss pango pciutils pulseaudio
|
|
||||||
stdenv.cc.cc udev xdg_utils xorg.libxcb
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
buildInputs = atomEnv.packages;
|
||||||
|
|
||||||
unpackPhase = "dpkg-deb -x $src .";
|
unpackPhase = "dpkg-deb -x $src .";
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
mkdir -p "$out"
|
mkdir -p "$out/bin"
|
||||||
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 wire-desktop
|
|
||||||
patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \
|
|
||||||
--set-rpath "${rpath}:$out/opt/Wire" \
|
|
||||||
"$out/opt/Wire/wire-desktop"
|
|
||||||
|
|
||||||
# Symlink to bin
|
|
||||||
mkdir -p "$out/bin"
|
|
||||||
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"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
runtimeDependencies = [
|
||||||
|
udev.lib
|
||||||
|
];
|
||||||
|
|
||||||
|
postFixup = ''
|
||||||
|
makeWrapper $out/opt/Wire/wire-desktop $out/bin/wire-desktop \
|
||||||
|
"''${gappsWrapperArgs[@]}"
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
darwin = stdenv.mkDerivation {
|
darwin = stdenv.mkDerivation {
|
||||||
|
@ -111,14 +122,16 @@ let
|
||||||
inherit sha256;
|
inherit sha256;
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ cpio xar ];
|
buildInputs = [
|
||||||
|
cpio
|
||||||
|
xar
|
||||||
|
];
|
||||||
|
|
||||||
unpackPhase = ''
|
unpackPhase = ''
|
||||||
xar -xf $src
|
xar -xf $src
|
||||||
cd com.wearezeta.zclient.mac.pkg
|
cd com.wearezeta.zclient.mac.pkg
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
cat Payload | gunzip -dc | cpio -i
|
cat Payload | gunzip -dc | cpio -i
|
||||||
'';
|
'';
|
||||||
|
@ -129,6 +142,7 @@ let
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
in if stdenv.isDarwin
|
in
|
||||||
then darwin
|
if stdenv.isDarwin
|
||||||
else linux
|
then darwin
|
||||||
|
else linux
|
||||||
|
|
Loading…
Reference in a new issue