nova-shell/nix/package.nix
2026-04-10 10:49:48 +02:00

35 lines
662 B
Nix

{
lib,
stdenvNoCC,
makeWrapper,
quickshell,
}:
stdenvNoCC.mkDerivation {
pname = "nova-shell";
version = "0.1.0";
src = lib.cleanSource ../.;
nativeBuildInputs = [ makeWrapper ];
dontBuild = true;
installPhase = ''
runHook preInstall
mkdir -p $out/share/nova-shell
cp -r shell.qml modules $out/share/nova-shell/
mkdir -p $out/bin
makeWrapper ${lib.getExe quickshell} $out/bin/nova-shell \
--add-flags "-p $out/share/nova-shell/shell.qml"
runHook postInstall
'';
meta = {
description = "Minimal Quickshell bar for niri";
mainProgram = "nova-shell";
platforms = lib.platforms.linux;
};
}