Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkgs/os-specific/linux/nvidia-x11/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ rec {
url = "https://us.download.nvidia.com/tesla/${version}/NVIDIA-Linux-x86_64-${version}.run";
sha256_64bit = "sha256-8gwy/W7NH3BcbfJ5fAwIQlPs9/9I8sNH+Co5YZiC7OE=";
persistencedSha256 = "sha256-q061VN6om3UzbpWD7+tJJVgU/e2YCJF4IgEv53qx9ZA=";
fabricmanagerSha256 = "sha256-mIFlY4JHPIkTH18mpciU+ueH8Nj6Ts+2g2xv+BfyUEI=";
fabricmanagerSha256 = "sha256-bVOnPmAa2ADGC1FCIz0TAyS9lccNPa3K5pJQhgX45pQ=";
useSettings = false;
usePersistenced = true;
useFabricmanager = true;
Expand Down
21 changes: 21 additions & 0 deletions pkgs/os-specific/linux/nvidia-x11/fabricmanager.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ nvidia_x11: sha256:
patchelf,
zlib,
glibc,
versionCheckHook,
}:

let
Expand All @@ -27,6 +28,8 @@ stdenv.mkDerivation rec {
};

installPhase = ''
runHook preInstall

mkdir -p $out/{bin,share/nvidia-fabricmanager}
for bin in nv{-fabricmanager,switch-audit};do
${patchelf}/bin/patchelf \
Expand All @@ -48,11 +51,29 @@ stdenv.mkDerivation rec {
done
patchShebangs $out/bin

runHook postInstall
'';

doCheck = true;
checkPhase = ''
runHook preCheck

for b in $out/bin/*;do
${ldd} $b | grep -vqz "not found"
done

runHook postCheck
'';

doInstallCheck = true;
nativeInstallCheckInputs = [
versionCheckHook
];

# Default stdenv fixup shrinkings cause undefined symbols when trying to run
# meta.mainProgram
dontFixup = true;

meta = {
homepage = "https://www.nvidia.com/object/unix.html";
description = "Fabricmanager daemon for NVLink intialization and control";
Expand Down
Loading