generate the kde dev env

This commit is contained in:
Christoph Cullmann 2024-10-06 17:25:34 +02:00
parent 879cfdd93e
commit fb3d1ed921
No known key found for this signature in database
2 changed files with 21 additions and 4 deletions

View file

@ -8,7 +8,7 @@ myllvm.stdenv.mkDerivation {
name = "clang-nix-shell"; name = "clang-nix-shell";
# ensure the local KDE things are in path # ensure the local KDE things are in path
shellHook = '' shellHook = ''
export PATH=/home/cullmann/projects/kde/usr/bin:/home/cullmann/projects/kde:/home/cullmann/projects/kde/src/kdesrc-build:$PATH export PATH=~/projects/kde/usr/bin:~/projects/kde:~/projects/kde/src/kdesrc-build:$PATH
# fix Qt tests for rcc # fix Qt tests for rcc
unset QT_RCC_SOURCE_DATE_OVERRIDE unset QT_RCC_SOURCE_DATE_OVERRIDE
@ -17,10 +17,10 @@ unset SOURCE_DATE_EPOCH
# fix valgrind # fix valgrind
export QT_ENABLE_REGEXP_JIT=0 export QT_ENABLE_REGEXP_JIT=0
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 QT_PLUGIN_PATH=~/projects/kde/usr/lib/plugins:~/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 QML2_IMPORT_PATH=~/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 export QT_QUICK_CONTROLS_STYLE_PATH=~/projects/kde/usr/lib/qml/QtQuick/Controls.2/:~/projects/kde/usr/lib64/qml/QtQuick/Controls.2/:$QT_QUICK_CONTROLS_STYLE_PATH
''; '';
# add all needed stuff to have a KDE KF6 Qt6 env # add all needed stuff to have a KDE KF6 Qt6 env

View file

@ -136,6 +136,23 @@ in
users.sandbox-kde = { users.sandbox-kde = {
# shared config # shared config
imports = [ ./home.nix ]; imports = [ ./home.nix ];
# create kde build setup
home.file = {
"projects/kde/.envrc" = {
text = "use nix";
};
"projects/kde/cleanup.sh" = {
text = (builtins.readFile "/data/nixos/projects/kde/cleanup.sh");
executable = true;
};
"projects/kde/kdesrc-buildrc" = {
text = (builtins.readFile "/data/nixos/projects/kde/kdesrc-buildrc");
};
"projects/kde/shell.nix" = {
text = (builtins.readFile "/data/nixos/projects/kde/shell.nix");
};
};
}; };
}; };
} }