2024-06-25 13:53:01 +00:00
|
|
|
{
|
|
|
|
pkgs ? import ./nix/pkgs.nix
|
|
|
|
}:
|
2023-11-29 09:46:22 +00:00
|
|
|
|
|
|
|
let
|
2024-01-19 15:23:26 +00:00
|
|
|
qtCustom = (with pkgs.qt515_8;
|
|
|
|
# TODO:check the required modules
|
2023-11-29 09:46:22 +00:00
|
|
|
env "qt-custom-${qtbase.version}" ([
|
2024-06-25 13:53:01 +00:00
|
|
|
qtbase
|
|
|
|
qtdeclarative
|
|
|
|
qtquickcontrols
|
2023-11-29 09:46:22 +00:00
|
|
|
qtquickcontrols2
|
2024-06-25 13:53:01 +00:00
|
|
|
qtsvg
|
|
|
|
qtmultimedia
|
|
|
|
qtwebview
|
|
|
|
qttools
|
|
|
|
qtwebchannel
|
2023-11-29 09:46:22 +00:00
|
|
|
qtgraphicaleffects
|
2024-06-25 13:53:01 +00:00
|
|
|
qtwebengine
|
|
|
|
qtlocation
|
|
|
|
]));
|
|
|
|
|
2023-11-29 09:46:22 +00:00
|
|
|
in pkgs.mkShell {
|
|
|
|
name = "status-desktop-build-shell";
|
|
|
|
|
2024-01-19 15:23:26 +00:00
|
|
|
# TODO:check the required packages
|
2023-11-29 09:46:22 +00:00
|
|
|
buildInputs = with pkgs; [
|
2024-06-25 13:53:01 +00:00
|
|
|
bash curl wget git file unzip jq lsb-release which cacert gnupg
|
|
|
|
linuxdeployqt appimagekit
|
|
|
|
libglvnd # TODO: Qt 5.15.2 fix, review after upgrade
|
|
|
|
cmake_3_19 gnumake pkg-config gnugrep qtCustom
|
2024-10-08 14:06:20 +00:00
|
|
|
go_1_21 go-bindata mockgen protobuf3_20 protoc-gen-go
|
2023-11-29 09:46:22 +00:00
|
|
|
pcre nss pcsclite extra-cmake-modules
|
|
|
|
xorg.libxcb xorg.libX11 libxkbcommon
|
|
|
|
] ++ (with gst_all_1; [
|
|
|
|
gst-libav gstreamer
|
|
|
|
gst-plugins-bad gst-plugins-base
|
|
|
|
gst-plugins-good gst-plugins-ugly
|
|
|
|
]);
|
|
|
|
|
|
|
|
# Avoid terminal issues.
|
|
|
|
TERM = "xterm";
|
|
|
|
LANG = "en_US.UTF-8";
|
|
|
|
LANGUAGE = "en_US.UTF-8";
|
|
|
|
|
|
|
|
QTDIR = qtCustom;
|
2024-06-25 13:53:01 +00:00
|
|
|
# TODO: still needed?
|
|
|
|
# https://github.com/NixOS/nixpkgs/pull/109649
|
2024-01-25 14:53:22 +00:00
|
|
|
QT_INSTALL_PLUGINS = "${qtCustom}/${pkgs.qt515_8.qtbase.qtPluginPrefix}";
|
2023-11-29 09:46:22 +00:00
|
|
|
|
|
|
|
shellHook = ''
|
2024-01-25 14:53:22 +00:00
|
|
|
export MAKEFLAGS="-j$NIX_BUILD_CORES"
|
2024-06-25 13:53:01 +00:00
|
|
|
export PATH="${pkgs.lddWrapped}/bin:$PATH"
|
2023-11-29 09:46:22 +00:00
|
|
|
'';
|
2024-06-25 13:53:01 +00:00
|
|
|
|
2024-01-25 14:53:22 +00:00
|
|
|
LIBKRB5_PATH = pkgs.libkrb5;
|
|
|
|
QTWEBENGINE_PATH = pkgs.qt515_8.qtwebengine.out;
|
|
|
|
GSTREAMER_PATH = pkgs.gst_all_1.gstreamer;
|
|
|
|
NSS_PATH = pkgs.nss;
|
|
|
|
|
2024-06-25 13:53:01 +00:00
|
|
|
# Used for linuxdeployqt
|
2024-01-19 15:23:26 +00:00
|
|
|
# TODO:check which deps are needed
|
2024-06-25 13:53:01 +00:00
|
|
|
LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath (
|
|
|
|
[
|
|
|
|
alsaLib
|
|
|
|
expat
|
|
|
|
fontconfig
|
|
|
|
freetype
|
|
|
|
gcc-unwrapped
|
|
|
|
glib
|
|
|
|
gmp
|
|
|
|
harfbuzz
|
|
|
|
libglvnd
|
|
|
|
libkrb5
|
|
|
|
libpng
|
|
|
|
libpulseaudio
|
|
|
|
libxkbcommon
|
2024-01-25 14:53:22 +00:00
|
|
|
openexr
|
|
|
|
openssl
|
2024-06-25 13:53:01 +00:00
|
|
|
p11-kit
|
|
|
|
zlib
|
2024-01-19 15:23:26 +00:00
|
|
|
] ++ (with xorg; [
|
2024-06-25 13:53:01 +00:00
|
|
|
libICE
|
|
|
|
libSM
|
|
|
|
libX11
|
|
|
|
libXrender
|
|
|
|
libxcb
|
|
|
|
xcbutil
|
|
|
|
xcbutilimage
|
|
|
|
xcbutilkeysyms
|
|
|
|
xcbutilrenderutil
|
|
|
|
xcbutilwm
|
|
|
|
]) ++ (with gst_all_1; [
|
|
|
|
gst-plugins-base
|
2024-01-25 14:53:22 +00:00
|
|
|
gst-plugins-good
|
|
|
|
gst-plugins-bad
|
|
|
|
gst-plugins-ugly
|
2024-06-25 13:53:01 +00:00
|
|
|
gstreamer
|
|
|
|
]));
|
2023-11-29 09:46:22 +00:00
|
|
|
}
|