Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { stdenv, fetchurl, dpkg
- , alsaLib, atk, cairo, cups, curl, dbus, expat, fontconfig, freetype, glib
- , gnome2, libnotify, libxcb, nspr, nss, systemd, xorg }:
- let
- version = "2.13.2741";
- rpath = stdenv.lib.makeLibraryPath [
- alsaLib
- atk
- cairo
- cups
- curl
- dbus
- expat
- fontconfig
- freetype
- glib
- gnome2.GConf
- gnome2.gdk_pixbuf
- gnome2.gtk
- gnome2.pango
- libnotify
- libxcb
- nspr
- nss
- stdenv.cc.cc
- systemd
- xorg.libxkbfile
- xorg.libX11
- xorg.libXcomposite
- xorg.libXcursor
- xorg.libXdamage
- xorg.libXext
- xorg.libXfixes
- xorg.libXi
- xorg.libXrandr
- xorg.libXrender
- xorg.libXtst
- xorg.libXScrnSaver
- ] + ":${stdenv.cc.cc.lib}/lib64";
- src =
- if stdenv.system == "x86_64-linux" then
- fetchurl {
- url = "https://wire-app.wire.com/linux/wire_${version}_amd64.deb";
- sha256 = "fa17278b9c9ebd9b66464b5230dc9c1187e7c7b34050ac5b2a756725d6836d8f";
- }
- else
- throw "Wire is not supported on ${stdenv.system}";
- in stdenv.mkDerivation {
- name = "wire-${version}";
- inherit src;
- buildInputs = [ dpkg ];
- unpackPhase = "true";
- buildCommand = ''
- mkdir -p $out/opt
- mkdir -p $out/bin
- dpkg -x $src $out
- cp -av $out/usr/* $out
- rm -rf $out/usr
- # Otherwise it looks "suspicious"
- # chmod -R g-w $out
- # Fix the desktop link
- substituteInPlace $out/share/applications/wire-desktop.desktop \
- --replace /opt/ $out/
- ln -s $out/opt/wire-desktop/wire-desktop $out/bin/wire
- '';
- meta = with stdenv.lib; {
- description = "Desktop client for the Wire instant messenger";
- homepage = "https://wire.com";
- license = licenses.unfree;
- platforms = [ "x86_64-linux" ];
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement