Merge pull request #38801 from worldofpeace/wire-desktop

wire-desktop: init at 3.0.2816

authored by Matthew Justin Bauer and committed by GitHub c8e58113 b74e884a

+111
+5
maintainers/maintainer-list.nix
··· 3996 3996 github = "womfoo"; 3997 3997 name = "Kranium Gikos Mendoza"; 3998 3998 }; 3999 + worldofpeace = { 4000 + email = "worldofpeace@users.noreply.github.com"; 4001 + github = "worldofpeace"; 4002 + name = "Worldofpeace"; 4003 + }; 3999 4004 wscott = { 4000 4005 email = "wsc9tt@gmail.com"; 4001 4006 github = "wscott";
+104
pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
··· 1 + { stdenv, lib, fetchurl, dpkg, makeDesktopItem, gnome2, atk, cairo, gdk_pixbuf, glib 2 + , freetype, fontconfig, dbus, libnotify, libX11, xorg, libXi, libXcursor, libXdamage 3 + , libXrandr, libXcomposite, libXext, libXfixes, libXrender, libXtst, libXScrnSaver 4 + , nss, nspr, alsaLib, cups, expat, udev, xdg_utils, hunspell 5 + }: 6 + let 7 + rpath = lib.makeLibraryPath [ 8 + alsaLib 9 + atk 10 + cairo 11 + cups 12 + dbus 13 + expat 14 + fontconfig 15 + freetype 16 + gdk_pixbuf 17 + glib 18 + gnome2.GConf 19 + gnome2.gtk 20 + gnome2.pango 21 + hunspell 22 + libnotify 23 + libX11 24 + libXcomposite 25 + libXcursor 26 + libXdamage 27 + libXext 28 + libXfixes 29 + libXi 30 + libXrandr 31 + libXrender 32 + libXScrnSaver 33 + libXtst 34 + nspr 35 + nss 36 + stdenv.cc.cc 37 + udev 38 + xdg_utils 39 + xorg.libxcb 40 + ]; 41 + 42 + version = "3.0.2816"; 43 + 44 + plat = { 45 + "i686-linux" = "i386"; 46 + "x86_64-linux" = "amd64"; 47 + }.${stdenv.system}; 48 + 49 + sha256 = { 50 + "i686-linux" = "1ds807j1b8dk9hrnzbg4g9mvn44abw24pxrqns9ai62mh3hvi65p"; 51 + "x86_64-linux" = "13pyyp2c8q0v0ni2hzh2jnbd3i96q68314glbmy4kyh7vm9427lc"; 52 + }.${stdenv.system}; 53 + 54 + in 55 + stdenv.mkDerivation rec { 56 + name = "wire-desktop-${version}"; 57 + 58 + src = fetchurl { 59 + url = "https://wire-app.wire.com/linux/debian/pool/main/wire_${version}_${plat}.deb"; 60 + inherit sha256; 61 + }; 62 + 63 + desktopItem = makeDesktopItem { 64 + name = "Wire"; 65 + exec = "wire-desktop %U"; 66 + icon = "wire-desktop"; 67 + comment = "Secure messenger for everyone"; 68 + desktopName = "Wire Desktop"; 69 + genericName = "Secure messenger"; 70 + categories = "Network;InstantMessaging;Chat;VideoConference"; 71 + }; 72 + 73 + phases = [ "unpackPhase" "installPhase" ]; 74 + nativeBuildInputs = [ dpkg ]; 75 + unpackPhase = "dpkg-deb -x $src ."; 76 + installPhase = '' 77 + mkdir -p $out 78 + cp -R opt $out 79 + cp -R usr/share $out/share 80 + 81 + chmod -R g-w $out 82 + 83 + # Patch signal 84 + patchelf --set-interpreter "$(cat $NIX_CC/nix-support/dynamic-linker)" \ 85 + --set-rpath "${rpath}:$out/opt/wire-desktop" \ 86 + "$out/opt/wire-desktop/wire-desktop" 87 + 88 + # Symlink to bin 89 + mkdir -p $out/bin 90 + ln -s "$out/opt/wire-desktop/wire-desktop" $out/bin/wire-desktop 91 + 92 + # Desktop file 93 + mkdir -p $out/share/applications 94 + cp ${desktopItem}/share/applications/* $out/share/applications 95 + ''; 96 + 97 + meta = { 98 + description = "A modern, secure messenger"; 99 + homepage = https://wire.com/; 100 + license = lib.licenses.gpl3; 101 + maintainers = with lib.maintainers; [ worldofpeace ]; 102 + platforms = [ "i686-linux" "x86_64-linux" ]; 103 + }; 104 + }
+2
pkgs/top-level/all-packages.nix
··· 21355 21355 21356 21356 mmark = callPackage ../tools/typesetting/mmark { }; 21357 21357 21358 + wire-desktop = callPackage ../applications/networking/instant-messengers/wire-desktop { }; 21359 + 21358 21360 # Unix tools 21359 21361 unixtools = recurseIntoAttrs (callPackages ./unix-tools.nix { }); 21360 21362 inherit (unixtools) hexdump ps logger eject umount