ae2dc6aea6
GitOrigin-RevId: 4c2fcb090b1f3e5b47eaa7bd33913b574a11e0a0
58 lines
1.1 KiB
Nix
58 lines
1.1 KiB
Nix
{
|
|
fetchFromGitHub,
|
|
lib,
|
|
stdenv,
|
|
libX11,
|
|
libxcb,
|
|
qt5,
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "whatsie";
|
|
version = "4.16.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "keshavbhatt";
|
|
repo = "whatsie";
|
|
rev = "refs/tags/v${finalAttrs.version}";
|
|
hash = "sha256-+sbnpaR+pR5aKbGUIVM3yRpco7/jE9LkCbQKrgFDYwM=";
|
|
};
|
|
|
|
sourceRoot = "${finalAttrs.src.name}/src";
|
|
|
|
buildInputs = [
|
|
libX11
|
|
libxcb
|
|
qt5.qtwebengine
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
qt5.wrapQtAppsHook
|
|
qt5.qmake
|
|
];
|
|
|
|
strictDeps = false;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
preBuild = ''
|
|
export QT_WEBENGINE_ICU_DATA_DIR=${qt5.qtwebengine.out}/resources
|
|
'';
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 whatsie -t $out/bin
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/keshavbhatt/whatsie";
|
|
description = "Feature rich WhatsApp Client for Desktop Linux";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "whatsie";
|
|
maintainers = with lib.maintainers; [ ajgon ];
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
})
|