35 lines
662 B
Nix
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;
|
|
};
|
|
}
|