Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,10 @@
++ optionalQt6 pkgs "qtwayland";

qmlDeps = pkgs:
optionalKde pkgs "kirigami"
# kirigami-wrapped ships no QML files, use the unwrapped version
(lib.optional
(builtins.hasAttr "kdePackages" pkgs && builtins.hasAttr "kirigami" pkgs.kdePackages)
pkgs.kdePackages.kirigami.passthru.unwrapped)
++ optionalKde pkgs "syntax-highlighting"
++ optionalQt6 pkgs "qt5compat"
++ optionalQt6 pkgs "qtdeclarative"
Expand All @@ -131,6 +134,16 @@

nativeBuildInputs = [ pkgs.makeWrapper ];

# Prevent patchShebangs from attempting to rewrite Python scripts;
# non-executable files are skipped during fixupPhase.
preFixup = ''
find "$out/share/quickshell/inir" -type f -name '*.py' -exec chmod -x {} +
'';

postFixup = ''
find "$out/share/quickshell/inir" -type f -name '*.py' -exec chmod +x {} +
'';

installPhase =
let
deps = runtimeDeps pkgs;
Expand All @@ -152,6 +165,13 @@
cp -R "$dir" "$runtime/$dir"
done < sdata/runtime-payload-dirs.txt

# Copy root-level QML entry points (shell.qml, settings.qml, etc.)
# which aren't listed in runtime-root-files.txt.
for f in *.qml; do
[ -f "$f" ] || continue
install -Dm644 "$f" "$runtime/$f"
done

chmod +x "$runtime/setup" "$runtime/scripts/inir"
find "$runtime/scripts" -type f \( -name '*.sh' -o -name '*.fish' -o -name '*.py' \) -exec chmod +x {} \;

Expand Down