nova-shell/nix/package.nix
2026-04-17 14:03:40 +02:00

53 lines
1,009 B
Nix

{
lib,
stdenvNoCC,
makeWrapper,
quickshell,
qt6,
nova-stats,
glib,
}:
stdenvNoCC.mkDerivation {
pname = "nova-shell";
version = "0.1.0";
src = lib.cleanSource ../.;
nativeBuildInputs = [
makeWrapper
qt6.qtshadertools
];
dontBuild = true;
dontWrapQtApps = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/nova-shell
cp -r shell.qml modules assets $out/share/nova-shell/
# Compile fragment shader to Qt RHI format
qsb --qt6 \
-o $out/share/nova-shell/modules/hex_wave.frag.qsb \
modules/hex_wave.frag
mkdir -p $out/bin
makeWrapper ${lib.getExe quickshell} $out/bin/nova-shell \
--add-flags "-p $out/share/nova-shell/shell.qml" \
--prefix PATH : ${
lib.makeBinPath [
nova-stats
glib
]
}
runHook postInstall
'';
meta = {
description = "Minimal Quickshell bar for niri";
mainProgram = "nova-shell";
platforms = lib.platforms.linux;
};
}