wavebox: init at 3.14.10 (#45021)

This commit is contained in:
David McKay 2018-08-15 18:03:18 +01:00 committed by Jörg Thalheim
parent 084864bf2b
commit 27ddcc5bab
3 changed files with 73 additions and 0 deletions

View File

@ -3281,6 +3281,11 @@
email = "ravloony@gmail.com";
name = "Tom Macdonald";
};
rawkode = {
email = "david.andrew.mckay@gmail.com";
github = "rawkode";
name = "David McKay";
};
razvan = {
email = "razvan.panda@gmail.com";
github = "razvan-panda";

View File

@ -0,0 +1,66 @@
{ stdenv, fetchurl, makeDesktopItem, makeWrapper, autoPatchelfHook
, xorg, gtk2, gtk3 , gnome2, gnome3, nss, alsaLib, udev, libnotify, xdg_utils }:
with stdenv.lib;
let
bits = "x86_64";
version = "3.14.10";
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 = "06ce349f561c6122b2d326e9a1363fb358e263c81a7d1d08723ec567235bbd74";
};
# 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 = [];
};
}

View File

@ -18301,6 +18301,8 @@ with pkgs;
viber = callPackage ../applications/networking/instant-messengers/viber { };
wavebox = callPackage ../applications/networking/instant-messengers/wavebox { };
sonic-pi = callPackage ../applications/audio/sonic-pi {
ruby = ruby_2_3;
};