commit df9d0ecc162f397628eb04dd24978e77972a70e3 parent 21764c99266189434caadc1b94f1a457ff3329b9 Author: Guillaume Bouchard <guillaume.bouchard@tweag.io> Date: Sat, 30 Jun 2018 13:10:42 +0200 Add nixGLCommon Diffstat:
| M | README.md | | | 9 | +++++++++ |
| M | default.nix | | | 9 | +++++++++ |
2 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/README.md b/README.md @@ -180,3 +180,12 @@ If by any chance it does not work, you need to install nixGL using the same nixp ```bash NIX_PATH=nixpkgs=https://github.com/nixos/nixpkgs/archive/94d80eb72474bf8243b841058ce45eac2b163943.tar.gz nix build -f ./default.nix nixGLIntel ``` + +# `nixGLCommon` + +`nixGLCommon nixGLXXX` can be used to get `nixGL` executable which fallsback to `nixGLXXX`. It is a shorter name for people with only one OpenGL configuration. + +For example: + +``` +nix-build -E "with import ./default.nix {}; nixGLCommon nixGLIntel" diff --git a/default.nix b/default.nix @@ -103,4 +103,13 @@ rec { chmod u+x "$out/bin/nixVulkanIntel" ${shellcheck}/bin/shellcheck "$out/bin/nixVulkanIntel" ''; + + nixGLCommon = nixGL: + runCommand "nixGLCommon" { + buildInuts = [nixGL]; + } + '' + mkdir -p "$out/bin" + cp "${nixGL}/bin/${nixGL.name}" "$out/bin/nixGL"; + ''; }