Skip to content

Commit

Permalink
packages/nixos: use libnvidia-container-custom
Browse files Browse the repository at this point in the history
Make `libnvidia-container-custom` the default `libnvidia-container` in our NixOS build.
  • Loading branch information
msanft committed Dec 19, 2024
1 parent 8dbb423 commit b11f561
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion packages/by-name/libnvidia-container-custom/package.nix
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright 2024 Edgeless Systems GmbH
# SPDX-License-Identifier: AGPL-3.0-only

# Upstream package from https://github.com/NixOS/nixpkgs/blob/nixos-24.11/pkgs/by-name/li/libnvidia-container/package.nix#L145
# Adapted to use custom paths for binary resolving specialized to the NixOS image we use this in. As this is incompatible with
# non-NixOS deployments, this cannot be upstreamed.
Expand Down Expand Up @@ -50,7 +53,7 @@ stdenv.mkDerivation rec {
patches = [
(replaceVars ./fix-library-resolving.patch {
inherit (addDriverRunpath) driverLink;
binaryPath = (lib.makeBinPath binaryPaths);
binaryPath = lib.makeBinPath binaryPaths;
})

./inline-c-struct.patch
Expand Down
1 change: 1 addition & 0 deletions packages/by-name/mkNixosConfig/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ lib.makeOverridable (
kata-runtime
kata-kernel-uvm
;
libnvidia-container = outerPkgs.libnvidia-container-custom;
})
];

Expand Down

0 comments on commit b11f561

Please sign in to comment.