Unverified Commit 3e7f9bc9 authored by Doron Behar's avatar Doron Behar Committed by GitHub
Browse files

linuxPackages.nvidiaPackages.dc_5{3,7}5.fabricmanager: dontFixup (#495862)

parents a420da5e e11b3852
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,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;
+21 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@ nvidia_x11: sha256:
  patchelf,
  zlib,
  glibc,
  versionCheckHook,
}:

let
@@ -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 \
@@ -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";