Skip to content

Commit b11f561

Browse files
committed
packages/nixos: use libnvidia-container-custom
Make `libnvidia-container-custom` the default `libnvidia-container` in our NixOS build.
1 parent 8dbb423 commit b11f561

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

packages/by-name/libnvidia-container-custom/package.nix

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Copyright 2024 Edgeless Systems GmbH
2+
# SPDX-License-Identifier: AGPL-3.0-only
3+
14
# Upstream package from https://github.com/NixOS/nixpkgs/blob/nixos-24.11/pkgs/by-name/li/libnvidia-container/package.nix#L145
25
# Adapted to use custom paths for binary resolving specialized to the NixOS image we use this in. As this is incompatible with
36
# non-NixOS deployments, this cannot be upstreamed.
@@ -50,7 +53,7 @@ stdenv.mkDerivation rec {
5053
patches = [
5154
(replaceVars ./fix-library-resolving.patch {
5255
inherit (addDriverRunpath) driverLink;
53-
binaryPath = (lib.makeBinPath binaryPaths);
56+
binaryPath = lib.makeBinPath binaryPaths;
5457
})
5558

5659
./inline-c-struct.patch

packages/by-name/mkNixosConfig/package.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ lib.makeOverridable (
4949
kata-runtime
5050
kata-kernel-uvm
5151
;
52+
libnvidia-container = outerPkgs.libnvidia-container-custom;
5253
})
5354
];
5455

0 commit comments

Comments
 (0)