www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 122026d20c1e6a01f1024f92c991b6ce7140f721
parent 701dfc8c6ebb9f3eecb22fd83522d71b7ca2215a
Author: Guillaume Bouchard <guillaume.bouchard@tweag.io>
Date:   Mon, 27 Apr 2020 17:19:35 +0200

Add nixGLDefault

Diffstat:
MnixGL.nix | 11++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/nixGL.nix b/nixGL.nix @@ -157,6 +157,15 @@ in } '' mkdir -p "$out/bin" - cp "${nixGL}/bin/${nixGL.name}" "$out/bin/nixGL"; + # star because nixGLNvidia... have version prefixed name + cp ${nixGL}/bin/* "$out/bin/nixGL"; ''; + + # The output derivation contains nixGL which point either to + # nixGLNvidia or nixGLIntel using an heuristic. + nixGLDefault = + if builtins.pathExists "/proc/driver/nvidia/version" + then nixGLCommon nixGLNvidia + else nixGLCommon nixGLIntel; + }