attempt to patch kodi

This commit is contained in:
chaos 2024-09-04 21:44:25 +01:00
parent fa94bee79e
commit 3fe1d2756c
No known key found for this signature in database
5 changed files with 26023 additions and 8 deletions

View file

@ -83,6 +83,13 @@ in {
presets.nixos.serverEncryptedDrive presets.nixos.serverEncryptedDrive
]; ];
nixpkgs.overlays = [
(_final: prev: {
makeModulesClosure = x:
prev.makeModulesClosure (x // {allowMissing = true;});
})
];
services.xserver.videoDrivers = [ services.xserver.videoDrivers = [
"modesetting" "modesetting"
"fbdev" "fbdev"

View file

@ -3,7 +3,23 @@
inputs, inputs,
... ...
}: let }: let
kodiPackage = inputs.nixpkgs-kodi-inputstream-adaptive-fork.legacyPackages.${pkgs.system}.kodi-wayland.withPackages (kodiPkgs: kodiForkPkg = inputs.nixpkgs-kodi-inputstream-adaptive-fork.legacyPackages.${pkgs.system}.kodi;
kodiForkPkgPatched =
(kodiForkPkg.override {
x11Support = true;
waylandSupport = true;
gbmSupport = true;
})
.overrideAttrs (oldAttrs: {
patches =
oldAttrs.patches
++ [
./rbp-000-add-pi-support.patch
];
});
kodiPackage = kodiForkPkgPatched.withPackages (kodiPkgs:
with kodiPkgs; [ with kodiPkgs; [
pvr-iptvsimple pvr-iptvsimple
inputstreamhelper inputstreamhelper
@ -16,6 +32,12 @@
visualization-spectrum visualization-spectrum
]); ]);
in { in {
nixpkgs.overlays = [
(final: _prev: {
ffmpeg = final.ffmpeg-pi;
})
];
environment.systemPackages = [ environment.systemPackages = [
kodiPackage kodiPackage
]; ];

File diff suppressed because it is too large Load diff

View file

@ -6,13 +6,6 @@
inherit (lib.lists) flatten forEach; inherit (lib.lists) flatten forEach;
inherit (lib.modules) mkForce; inherit (lib.modules) mkForce;
in { in {
nixpkgs.overlays = [
(_final: prev: {
makeModulesClosure = x:
prev.makeModulesClosure (x // {allowMissing = true;});
})
];
imports = flatten (with tree; [ imports = flatten (with tree; [
users.root users.root
users.chaos users.chaos

View file

@ -51,6 +51,8 @@ in
inherit (pkgs) kitty-terminfo; inherit (pkgs) kitty-terminfo;
inherit (pkgs) linux_rpi5 raspberrypifw raspberrypiWirelessFirmware raspberrypi-utils; inherit (pkgs) linux_rpi5 raspberrypifw raspberrypiWirelessFirmware raspberrypi-utils;
inherit (pkgs) widevine-aarch64-4k widevine-aarch64-16k; inherit (pkgs) widevine-aarch64-4k widevine-aarch64-16k;
inherit (pkgs) ffmpeg-pi;
inherit (inputs.home-manager-unstable.packages."${system}") home-manager; inherit (inputs.home-manager-unstable.packages."${system}") home-manager;
}; };
} }