Files
nixos/overlays/pkgs.nix
T
oqyude 67988e66ab
nixos flake checks / invariant-checks (push) Failing after 6s
test-runner / smoke (push) Successful in 1s
nix flake update
2026-11-09 22:15:18 +03:00

36 lines
1.8 KiB
Nix
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{
inputs,
...
}:
self: super: {
rovr = inputs.self.packages.x86_64-linux.rovr;
pcbu-desktop = inputs.self.packages.x86_64-linux.pcbu-desktop;
# fresh-editor 0.5.4 (nixpkgs f4a03c0) не собирается: cargo-setup-hook
# безусловно экспортирует RUSTONIG_SYSTEM_LIBONIG=1, а пакет не тянет
# oniguruma, и onig_sys падает на `pkg-config --libs oniguruma`. В nixpkgs
# master на 2026-11-09 не исправлено. Поэтому берём пакет из
# inputs.nixpkgs-fresh (последний rev nixos-unstable с fresh-editor 0.5.3;
# он уже собран на sapphira). Убрать вместе с inputs.nixpkgs-fresh, когда
# пин nixpkgs получит исправленный пакет.
fresh-editor = inputs.nixpkgs-fresh.legacyPackages.${super.stdenv.hostPlatform.system}.fresh-editor;
# The SDDM themes shipped by whitesur-kde (2024-11-18) are forks of the
# breeze greeter theme and still instantiate `VirtualKeyboardLoader`, a type
# that plasma-workspace >= 6.6 removed from org.kde.breeze.components in
# favour of the KWin virtual-keyboard integration. sddm-greeter-qt6 refuses
# to load such a theme and silently falls back to the plain embedded one:
# Main.qml:316:9: VirtualKeyboardLoader is not a type
# Fallback to embedded theme
# (seen on rydiwo). Rewrite the loader to the API the current breeze theme
# uses; see overlays/patch-whitesur-sddm.pl.
whitesur-kde = super.whitesur-kde.overrideAttrs (old: {
nativeBuildInputs = (old.nativeBuildInputs or [ ]) ++ [ super.perl ];
postPatch = (old.postPatch or "") + ''
for f in sddm/*/Main.qml; do
${super.perl}/bin/perl ${./patch-whitesur-sddm.pl} "$f"
done
'';
});
}