mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
1b146a8c6f
More then one year ago we removed grsecurity kernels from nixpkgs: https://github.com/NixOS/nixpkgs/pull/25277 This removes now also paxutils from stdenv.
68 lines
1.7 KiB
Nix
68 lines
1.7 KiB
Nix
{ alsaLib, autoPatchelfHook, fetchurl, gtk3, libnotify
|
|
, makeDesktopItem, makeWrapper, nss, stdenv, udev, xdg_utils
|
|
, xorg
|
|
}:
|
|
|
|
with stdenv.lib;
|
|
|
|
let
|
|
bits = "x86_64";
|
|
|
|
version = "4.5.5";
|
|
|
|
desktopItem = makeDesktopItem rec {
|
|
name = "Wavebox";
|
|
exec = "wavebox";
|
|
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 = "b392e02b3b1b4deece32311aeb69b31c2550c4251be65f408c35b0badbf3c8b6";
|
|
};
|
|
|
|
# don't remove runtime deps
|
|
dontPatchELF = true;
|
|
|
|
nativeBuildInputs = [ autoPatchelfHook makeWrapper ];
|
|
|
|
buildInputs = with xorg; [
|
|
libXdmcp libXScrnSaver libXtst
|
|
] ++ [
|
|
alsaLib gtk3 nss
|
|
];
|
|
|
|
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 = ''
|
|
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 = [];
|
|
};
|
|
}
|