Skip to content

Commit

Permalink
Merge #1083: Add nixGL to gui/shell.nix
Browse files Browse the repository at this point in the history
9aa0b99 Add nixGL to gui/shell.nix (edouardparis)

Pull request description:

  Nixos 23.11 comes with libc 2.38, this version of libc may not be compatible with some drivers. For now the hack found is to use a community wrapper that detects the requirements and do the link (https://github.com/guibou/nixGL). usage:
  nixGL cargo run

ACKs for top commit:
  edouardparis:
    Self-ACK 9aa0b99

Tree-SHA512: 08e6c00412038129d482d61eaddaed6e1c237feba373baa16c7e408c6f95cff0ec510b890bd08c37d275fa1b37dc580388fbdd8a01fbbab25afb0a9be8eb2912
  • Loading branch information
edouardparis committed Apr 23, 2024
2 parents 687e6d1 + 9aa0b99 commit 577dce2
Showing 1 changed file with 22 additions and 13 deletions.
35 changes: 22 additions & 13 deletions gui/shell.nix
Original file line number Diff line number Diff line change
@@ -1,18 +1,27 @@
{ pkgs ? import <nixpkgs> {} }:
# Nixos 23.11 comes with libc 2.38, this version of libc may not be compatible
# with some drivers. For now the hack found is to user a community wrapper that
# detects the requirements and do the link (https://github.com/guibou/nixGL).
# usage:
# nixGL cargo run

let
nixgl = import (fetchTarball "https://github.com/guibou/nixGL/archive/master.tar.gz") {};
pkgs = import <nixpkgs> {};
in
pkgs.mkShell rec {
buildInputs = with pkgs; [
expat
fontconfig
freetype
freetype.dev
libGL
pkgconfig
udev
xorg.libX11
xorg.libXcursor
xorg.libXi
xorg.libXrandr
buildInputs = [
pkgs.expat
pkgs.fontconfig
pkgs.freetype
pkgs.freetype.dev
pkgs.libGL
pkgs.pkgconfig
pkgs.udev
pkgs.xorg.libX11
pkgs.xorg.libXcursor
pkgs.xorg.libXi
pkgs.xorg.libXrandr
nixgl.auto.nixGLDefault
];

LD_LIBRARY_PATH =
Expand Down

0 comments on commit 577dce2

Please sign in to comment.