Files
nixos/overlays/pkgs.nix
T
oqyude ef0dbd59ba
nixos flake checks / invariant-checks (push) Failing after 12s
test-runner / smoke (push) Successful in 1s
nix flake update
2026-11-09 22:37:17 +03:00

41 lines
2.1 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;
# mcat 0.6.7 — та же поломка: hook ставит AWS_LC_SYS_USE_SYSTEM=1, а пакет
# не тянет системный AWS-LC -> aws-lc-sys падает на этапе build. В 0.6.5
# (nixpkgs-fresh) этой зависимости нет. Убрать вместе с fresh-editor.
mcat = inputs.nixpkgs-fresh.legacyPackages.${super.stdenv.hostPlatform.system}.mcat;
# 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
'';
});
}