This repository has been archived on 2026-07-13. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
nova-shell/nix/package.nix
müde 0d0a3fd718 backlight: use brightnessctl instead of removed light binary
nixpkgs 26.05 dropped the 'light' package. Switch BacklightService to brightnessctl and bundle it in the wrapper PATH. Bump flake nixpkgs to nixos-26.05.
2026-06-13 15:47:20 +02:00

67 lines
1.4 KiB
Nix

{
lib,
stdenvNoCC,
symlinkJoin,
makeWrapper,
quickshell,
nova-stats,
nova-shaders,
nova-plugin,
glib,
brightnessctl,
}:
let
shellSrc = lib.cleanSourceWith {
src = lib.cleanSource ../.;
filter = path: _type: !(lib.hasSuffix ".frag" path);
};
shell = stdenvNoCC.mkDerivation {
pname = "nova-shell-qml";
version = "0.1.0";
src = shellSrc;
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/nova-shell
cp -r shell/shell.qml shell/modules shell/services shell/applets shell/dock shell/lock shell/assets $out/share/nova-shell/
mkdir -p $out/share/applications
cp shell/assets/space.darkest.nova-shell.desktop $out/share/applications/
runHook postInstall
'';
};
in
symlinkJoin {
name = "nova-shell-0.1.0";
paths = [
shell
nova-shaders
nova-plugin
];
nativeBuildInputs = [ makeWrapper ];
postBuild = ''
mkdir -p $out/bin
makeWrapper ${lib.getExe quickshell} $out/bin/nova-shell \
--add-flags "-p $out/share/nova-shell/shell.qml" \
--prefix QML_IMPORT_PATH : "$out/lib/qt-6/qml" \
--prefix PATH : ${
lib.makeBinPath [
nova-stats
glib
brightnessctl
]
}
'';
meta = {
description = "Minimal Quickshell bar for niri";
mainProgram = "nova-shell";
platforms = lib.platforms.linux;
};
}