Merge #1083: Add nixGL to gui/shell.nix
9aa0b990a36716954ff30149982d1b5928cc3e57 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 9aa0b990a36716954ff30149982d1b5928cc3e57 Tree-SHA512: 08e6c00412038129d482d61eaddaed6e1c237feba373baa16c7e408c6f95cff0ec510b890bd08c37d275fa1b37dc580388fbdd8a01fbbab25afb0a9be8eb2912
This commit is contained in:
commit
577dce2f1e
@ -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 =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user