Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- { pkgs ? import <nixpkgs> {}, command }:
- (pkgs.buildFHSUserEnv {
- name = "qt6-dev";
- targetPkgs = pkgs: (with pkgs;
- [
- cacert
- alsa-lib
- libdrm
- libpulseaudio
- udev
- which
- libglvnd.dev
- libxkbcommon.dev
- nss
- libevdev
- nspr
- expat
- fontconfig
- bzip2
- dbus
- zlib
- glib
- lzma
- freetype
- libkrb5
- gdb
- pkg-config
- gcc
- bintools
- git
- ccache
- clang-tools_16
- xcb-util-cursor # libxcb-cursor.so.0
- zstd # libzstd.so.1
- libsndfile
- openssl
- portmidi
- portaudio
- desktop-file-utils
- file
- pkg-config
- unzip
- p7zip
- curl
- libGL
- libjack2
- gnumake
- wget
- cups
- unixODBCDrivers.sqlite
- psqlodbc
- libpqxx
- vulkan-tools
- ffmpeg
- ocamlPackages.ffmpeg-avcodec
- ocamlPackages.ffmpeg-swscale
- mesa
- zlib
- opencv
- # Any additional deps
- ]) ++ (with pkgs.xorg;
- [
- setxkbmap
- libX11.dev
- libXcursor
- libXrandr
- libXext
- libxcb.dev
- xcbutilimage
- xcbutilkeysyms
- xcbutilrenderutil
- xcbutilwm
- libXinerama
- libXcomposite
- libXdamage
- libXtst
- libXi
- libXfixes
- libXrender
- libxshmfence
- libxkbfile
- xf86inputevdev
- ]);
- profile = ''
- unset QT_PLUGIN_PATH
- unset QTWEBKIT_PLUGIN_PATH
- unset QML2_IMPORT_PATH
- export QT_DEBUG_PLUGINS=1
- export QML_DISABLE_DISK_CACHE=1
- export QT_SCALE_FACTOR=2
- export PATH="$HOME/Qt/Tools/QtCreator/bin:$HOME/Qt:$PATH"
- '';
- runScript = command;
- }).env
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement