cleverca22
3/14/2017 - 12:12 AM

gistfile1.nix

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 ]; }