Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cleverca22/0b1465d4828c5ac5195db9e8511d6e38 to your computer and use it in GitHub Desktop.
Save cleverca22/0b1465d4828c5ac5195db9e8511d6e38 to your computer and use it in GitHub Desktop.
with import <nixpkgs> {};
let vendorgl = (linuxPackages.nvidia_x11.override {
libsOnly = true;
kernel = null;
}).overrideAttrs (oldAttrs: rec {
name = "nvidia-x11-367.27-${pkgs.linuxPackages.kernel.version}";
src = fetchurl {
url = "http://download.nvidia.com/XFree86/Linux-x86_64/367.27/NVIDIA-Linux-x86_64-367.27.run";
sha256 = "0000000000000000000000000000000000000000000000000000";
};
});
in buildEnv { name = "opengl-drivers"; paths = [ vendorgl ]; }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment