From ee8a72746ad0c595ac809d0393cc31ddd3bd7c6a Mon Sep 17 00:00:00 2001 From: Saturn745 Date: Mon, 26 May 2025 19:53:27 -0700 Subject: [PATCH] lxc: fix nvidia runtime hook Fixes the NVIDIA runtime hook by including https://github.com/lxc/lxc/pull/4536 --- pkgs/by-name/lx/lxc/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/lx/lxc/package.nix b/pkgs/by-name/lx/lxc/package.nix index 5c14f5f64172..14b13e73527d 100644 --- a/pkgs/by-name/lx/lxc/package.nix +++ b/pkgs/by-name/lx/lxc/package.nix @@ -17,6 +17,7 @@ pkg-config, systemd, + fetchpatch, nix-update-script, }: @@ -57,6 +58,13 @@ stdenv.mkDerivation (finalAttrs: { # Fix hardcoded path of lxc-user-nic # This is needed to use unprivileged containers ./user-nic.diff + + # Fixes https://github.com/zabbly/incus/issues/81 + (fetchpatch { + name = "4536.patch"; + url = "https://patch-diff.githubusercontent.com/raw/lxc/lxc/pull/4536.patch"; + hash = "sha256-yEqK9deO2MhfPROPfBw44Z752Mc5bR8DBKl1KrGC+5c="; + }) ]; mesonFlags = [