167 lines
3.5 KiB
Nix
167 lines
3.5 KiB
Nix
with import <nixpkgs> {};
|
|
|
|
# use new clang
|
|
let myllvm = llvmPackages_17; in
|
|
|
|
# clang based dev env
|
|
myllvm.stdenv.mkDerivation {
|
|
name = "clang-nix-shell";
|
|
# ensure the local KDE things are in path
|
|
shellHook = ''
|
|
export PATH=/home/cullmann/projects/kde/usr/bin:/home/cullmann/projects/kde:/home/cullmann/projects/kde/src/kdesrc-build:$PATH
|
|
|
|
# LD_LIBRARY_PATH only needed if you are building without rpath
|
|
# export LD_LIBRARY_PATH=/home/cullmann/projects/kde/usr/lib:/home/cullmann/projects/kde/usr/lib64:$LD_LIBRARY_PATH
|
|
|
|
export QT_PLUGIN_PATH=/home/cullmann/projects/kde/usr/lib/plugins:/home/cullmann/projects/kde/usr/lib64/plugins:${pkgs.qt6.qtbase.qtPluginPrefix}:${pkgs.lib.getBin pkgs.qt6.qtsvg}/${pkgs.qt6.qtbase.qtPluginPrefix}:${pkgs.lib.getBin pkgs.qt6.qtwayland}/${pkgs.qt6.qtbase.qtPluginPrefix}:${pkgs.lib.getBin pkgs.qt6.qtspeech}/${pkgs.qt6.qtbase.qtPluginPrefix}:$QT_PLUGIN_PATH
|
|
export QML2_IMPORT_PATH=/home/cullmann/projects/kde/usr/lib/qml:$QML2_IMPORT_PATH
|
|
|
|
export QT_QUICK_CONTROLS_STYLE_PATH=/home/cullmann/projects/kde/usr/lib/qml/QtQuick/Controls.2/:/home/cullmann/projects/kde/usr/lib64/qml/QtQuick/Controls.2/:$QT_QUICK_CONTROLS_STYLE_PATH
|
|
'';
|
|
|
|
# add all needed stuff to have a KDE KF6 Qt6 env
|
|
nativeBuildInputs = with pkgs; [
|
|
acl
|
|
appstream
|
|
attr
|
|
bison
|
|
boost
|
|
bzip2
|
|
clang-tools_17
|
|
cmake
|
|
ctags
|
|
curl
|
|
discount
|
|
djvulibre
|
|
docbook_xml_dtd_45
|
|
docbook_xsl_ns
|
|
doxygen
|
|
ebook_tools
|
|
exiv2
|
|
flex
|
|
gdb
|
|
giflib
|
|
gitFull
|
|
gperf
|
|
gpgme
|
|
graphviz
|
|
hunspell
|
|
hunspellDicts.en_US
|
|
intltool
|
|
isocodes
|
|
kdePackages.poppler
|
|
lcms2
|
|
libarchive
|
|
libcanberra
|
|
libcap
|
|
libdisplay-info
|
|
libepoxy
|
|
libgcrypt
|
|
libGL
|
|
libical
|
|
libinput
|
|
libjpeg
|
|
libjxl
|
|
libnl
|
|
libpcap
|
|
libpng
|
|
libraw
|
|
libselinux
|
|
libsndfile
|
|
libspectre
|
|
libva
|
|
libxkbcommon
|
|
libxml2
|
|
libxslt
|
|
libzip
|
|
linux-pam
|
|
lm_sensors
|
|
lmdb
|
|
mesa
|
|
meson
|
|
modemmanager
|
|
myllvm.libclang.python # git-clang-format
|
|
networkmanager
|
|
ninja
|
|
openal
|
|
openjpeg
|
|
openssl
|
|
pcre
|
|
perl
|
|
perlPackages.IOSocketSSL
|
|
perlPackages.JSONXS
|
|
perlPackages.NetDBus
|
|
perlPackages.URI
|
|
perlPackages.XMLParser
|
|
perlPackages.YAMLPP
|
|
python312Full
|
|
python312Packages.lxml
|
|
python312Packages.overrides
|
|
python312Packages.promise
|
|
python312Packages.pyaml
|
|
python312Packages.python-gitlab
|
|
python312Packages.setproctitle
|
|
pkg-config
|
|
polkit
|
|
qrencode
|
|
qt6.qt3d
|
|
qt6.qt5compat
|
|
qt6.qtbase
|
|
qt6.qtcharts
|
|
qt6.qtconnectivity
|
|
qt6.qtdatavis3d
|
|
qt6.qtdeclarative
|
|
qt6.qtdoc
|
|
qt6.qtimageformats
|
|
qt6.qtlanguageserver
|
|
qt6.qtlottie
|
|
qt6.qtmultimedia
|
|
qt6.qtnetworkauth
|
|
qt6.qtpositioning
|
|
qt6.qtquick3d
|
|
qt6.qtquicktimeline
|
|
qt6.qtremoteobjects
|
|
qt6.qtscxml
|
|
qt6.qtsensors
|
|
qt6.qtserialbus
|
|
qt6.qtserialport
|
|
qt6.qtshadertools
|
|
qt6.qtspeech
|
|
qt6.qtsvg
|
|
qt6.qttools
|
|
qt6.qttranslations
|
|
qt6.qtvirtualkeyboard
|
|
qt6.qtwayland
|
|
qt6.qtwebchannel
|
|
qt6.qtwebengine
|
|
qt6.qtwebsockets
|
|
qt6.qtwebview
|
|
qt6Packages.qgpgme
|
|
udev
|
|
util-linux
|
|
valgrind
|
|
wayland
|
|
wayland-protocols
|
|
wayland-scanner
|
|
xcb-util-cursor
|
|
xercesc
|
|
xml2
|
|
xmlto
|
|
xorg.libSM
|
|
xorg.libX11
|
|
xorg.libXau
|
|
xorg.libxcb
|
|
xorg.libxcvt
|
|
xorg.libXdmcp
|
|
xorg.libXext
|
|
xorg.libXfixes
|
|
xorg.xcbutil
|
|
xorg.xcbutilimage
|
|
xorg.xcbutilkeysyms
|
|
xorg.xcbutilwm
|
|
zlib
|
|
zstd
|
|
xz
|
|
];
|
|
}
|