mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
109 lines
2.1 KiB
Nix
109 lines
2.1 KiB
Nix
{
|
|
version ? "dirty",
|
|
extraPackages ? [ ],
|
|
runtimeDeps ? [
|
|
brightnessctl
|
|
cava
|
|
cliphist
|
|
ddcutil
|
|
wlsunset
|
|
wl-clipboard
|
|
wlr-randr
|
|
imagemagick
|
|
wget
|
|
(python3.withPackages (pp: lib.optional calendarSupport pp.pygobject3))
|
|
],
|
|
|
|
lib,
|
|
stdenvNoCC,
|
|
# build
|
|
qt6,
|
|
quickshell,
|
|
# runtime deps
|
|
brightnessctl,
|
|
cava,
|
|
cliphist,
|
|
ddcutil,
|
|
wlsunset,
|
|
wl-clipboard,
|
|
wlr-randr,
|
|
imagemagick,
|
|
wget,
|
|
python3,
|
|
wayland-scanner,
|
|
# calendar support
|
|
calendarSupport ? false,
|
|
evolution-data-server,
|
|
libical,
|
|
glib,
|
|
libsoup_3,
|
|
json-glib,
|
|
gobject-introspection,
|
|
}:
|
|
let
|
|
src = lib.cleanSourceWith {
|
|
src = ../.;
|
|
filter =
|
|
path: type:
|
|
!(builtins.any (prefix: lib.path.hasPrefix (../. + prefix) (/. + path)) [
|
|
/.github
|
|
/.gitignore
|
|
/Assets/Screenshots
|
|
/Scripts/dev
|
|
/nix
|
|
/LICENSE
|
|
/README.md
|
|
/flake.nix
|
|
/flake.lock
|
|
/shell.nix
|
|
/lefthook.yml
|
|
/CLAUDE.md
|
|
/CREDITS.md
|
|
]);
|
|
};
|
|
|
|
giTypelibPath = lib.makeSearchPath "lib/girepository-1.0" [
|
|
evolution-data-server
|
|
libical
|
|
glib.out
|
|
libsoup_3
|
|
json-glib
|
|
gobject-introspection
|
|
];
|
|
in
|
|
stdenvNoCC.mkDerivation {
|
|
pname = "noctalia-shell";
|
|
inherit version src;
|
|
|
|
nativeBuildInputs = [
|
|
qt6.wrapQtAppsHook
|
|
];
|
|
|
|
buildInputs = [
|
|
qt6.qtbase
|
|
qt6.qtmultimedia
|
|
];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/share/noctalia-shell $out/bin
|
|
cp -r . $out/share/noctalia-shell
|
|
ln -s ${quickshell}/bin/qs $out/bin/noctalia-shell
|
|
'';
|
|
|
|
preFixup = ''
|
|
qtWrapperArgs+=(
|
|
--prefix PATH : ${lib.makeBinPath (runtimeDeps ++ extraPackages)}
|
|
--prefix XDG_DATA_DIRS : ${wayland-scanner}/share
|
|
--set-default QS_CONFIG_PATH "$out/share/noctalia-shell"
|
|
${lib.optionalString calendarSupport "--prefix GI_TYPELIB_PATH : ${giTypelibPath}"}
|
|
)
|
|
'';
|
|
|
|
meta = {
|
|
description = "A sleek and minimal desktop shell thoughtfully crafted for Wayland, built with Quickshell.";
|
|
homepage = "https://github.com/noctalia-dev/noctalia-shell";
|
|
license = lib.licenses.mit;
|
|
mainProgram = "noctalia-shell";
|
|
};
|
|
}
|