nix test 2

This commit is contained in:
Zacharias-Brohn
2025-11-23 21:37:10 +01:00
parent d481be5f60
commit 0a282f9686
+6 -23
View File
@@ -1,13 +1,10 @@
{ {
rev,
lib, lib,
stdenv, stdenv,
makeWrapper, makeWrapper,
makeFontsConf, makeFontsConf,
app2unit, app2unit,
lm_sensors,
swappy, swappy,
wl-clipboard,
libqalculate, libqalculate,
bash, bash,
hyprland, hyprland,
@@ -16,10 +13,7 @@
nerd-fonts, nerd-fonts,
qt6, qt6,
quickshell, quickshell,
aubio,
fftw,
pipewire, pipewire,
xkeyboard-config,
cmake, cmake,
ninja, ninja,
pkg-config, pkg-config,
@@ -31,57 +25,46 @@
runtimeDeps = runtimeDeps =
[ [
ddcutil
brightnessctl
app2unit app2unit
networkmanager
lm_sensors
swappy swappy
wl-clipboard wl-clipboard
libqalculate libqalculate
bash bash
hyprland hyprland
] ];
++ extraRuntimeDeps
fontconfig = makeFontsConf { fontconfig = makeFontsConf {
fontDirectories = [material-symbols rubik nerd-fonts.caskaydia-cove]; fontDirectories = [material-symbols rubik nerd-fonts.caskaydia-cove];
}; };
cmakeBuildType =
if debug
then "Debug"
else "RelWithDebInfo";
plugin = stdenv.mkDerivation { plugin = stdenv.mkDerivation {
inherit cmakeBuildType; inherit cmakeBuildType;
name = "zshell-qml-plugin${lib.optionalString debug "-debug"}"; name = "zshell-qml-plugin";
src = lib.fileset.toSource { src = lib.fileset.toSource {
root = ./..; root = ./..;
fileset = lib.fileset.union ./../CMakeLists.txt ./../Plugins; fileset = lib.fileset.union ./../CMakeLists.txt ./../Plugins;
}; };
nativeBuildInputs = [cmake ninja pkg-config]; nativeBuildInputs = [cmake ninja pkg-config];
buildInputs = [qt6.qtbase qt6.qtdeclarative libqalculate pipewire aubio libcava fftw]; buildInputs = [qt6.qtbase qt6.qtdeclarative libqalculate pipewire];
dontWrapQtApps = true; dontWrapQtApps = true;
}; };
in in
stdenv.mkDerivation { stdenv.mkDerivation {
inherit version cmakeBuildType; inherit version cmakeBuildType;
pname = "zshell${lib.optionalString debug "-debug"}"; pname = "zshell";
src = ./..; src = ./..;
nativeBuildInputs = [cmake ninja makeWrapper qt6.wrapQtAppsHook]; nativeBuildInputs = [cmake ninja makeWrapper qt6.wrapQtAppsHook];
buildInputs = [quickshell extras plugin xkeyboard-config qt6.qtbase]; buildInputs = [quickshell plugin qt6.qtbase];
propagatedBuildInputs = runtimeDeps; propagatedBuildInputs = runtimeDeps;
cmakeFlags = cmakeFlags =
[ [
(lib.cmakeFeature "ENABLE_MODULES" "shell") (lib.cmakeFeature "ENABLE_MODULES" "shell")
(lib.cmakeFeature "INSTALL_QSCONFDIR" "${placeholder "out"}/share/zshell") (lib.cmakeFeature "INSTALL_QSCONFDIR" "${placeholder "out"}/share/zshell")
] ];
++ cmakeVersionFlags;
dontStrip = debug; dontStrip = debug;