nixpkgs/pkgs/applications/networking/instant-messengers/wavebox/default.nix
R. RyanTM 992b13bd72 wavebox: 3.14.10 -> 4.3.0 (#47701)
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/wavebox/versions
2018-10-12 16:23:00 +02:00

67 lines
1.7 KiB
Nix

{ stdenv, fetchurl, makeDesktopItem, makeWrapper, autoPatchelfHook
, xorg, gtk2, gtk3 , gnome2, gnome3, nss, alsaLib, udev, libnotify, xdg_utils }:
with stdenv.lib;
let
bits = "x86_64";
version = "4.3.0";
desktopItem = makeDesktopItem rec {
name = "Wavebox";
exec = name;
icon = "wavebox";
desktopName = name;
genericName = name;
categories = "Network;";
};
tarball = "Wavebox_${replaceStrings ["."] ["_"] (toString version)}_linux_${bits}.tar.gz";
in stdenv.mkDerivation rec {
name = "wavebox-${version}";
src = fetchurl {
url = "https://github.com/wavebox/waveboxapp/releases/download/v${version}/${tarball}";
sha256 = "0kdg5q9rv8nxlg5jhmdfy5vv7gkdswzhy49af29d3zf57z69187c";
};
# don't remove runtime deps
dontPatchELF = true;
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
buildInputs = with xorg; [
libXScrnSaver libXtst
] ++ [
gtk3 nss gtk2 alsaLib gnome2.GConf
];
runtimeDependencies = [ udev.lib libnotify ];
installPhase = ''
mkdir -p $out/bin $out/opt/wavebox
cp -r * $out/opt/wavebox
# provide desktop item and icon
mkdir -p $out/share/applications $out/share/pixmaps
ln -s ${desktopItem}/share/applications/* $out/share/applications
ln -s $out/opt/wavebox/Wavebox-linux-x64/wavebox_icon.png $out/share/pixmaps/wavebox.png
'';
postFixup = ''
paxmark m $out/opt/wavebox/Wavebox
makeWrapper $out/opt/wavebox/Wavebox $out/bin/wavebox \
--prefix PATH : ${xdg_utils}/bin
'';
meta = with stdenv.lib; {
description = "Wavebox messaging application";
homepage = https://wavebox.io;
license = licenses.mpl20;
maintainers = with maintainers; [ rawkode ];
platforms = ["x86_64-linux"];
hydraPlatforms = [];
};
}