anchor.diff:    nativeBuildInputs = [ addOpenGLRunpath ];
   
     installPhase = ''
  +    runHook preInstall
  +
       function fixRunPath {
         p=$(patchelf --print-rpath $1)
         patchelf --set-rpath "''${p:+$p:}${lib.makeLibraryPath [ stdenv.cc.cc ]}:\$ORIGIN/" $1
  
positive.code: , cudatoolkit
  , fetchurl
  , addOpenGLRunpath
  }:
  
  stdenv.mkDerivation {
  
negative.code:     mkdir -p $out
      cp -a include $out/include
      cp -a lib64 $out/lib64
    '' + lib.optionalString removeStatic ''
      rm -f $out/lib64/*.a
    '' + ''
      runHook postInstall
    '';
  
    # Set RUNPATH so that libcuda in /run/opengl-driver(-32)/lib can be found.
  