Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
33 lines
657 B
Nix
33 lines
657 B
Nix
# This is a very dirty hack to allow hardware acceleration of OpenGL
|
|
# applications for most (?) users. It will use the driver that your
|
|
# Linux distribution installed in /usr/lib/libGL.so.1. Hopefully,
|
|
# this driver uses hardware acceleration.
|
|
#
|
|
# Of course, use of the driver in /usr/lib is highly impure. But it
|
|
# might actually work ;-)
|
|
|
|
{
|
|
lib,
|
|
stdenv,
|
|
xorg,
|
|
expat,
|
|
libdrm,
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "xorg-sys-opengl";
|
|
version = "3";
|
|
builder = ./builder.sh;
|
|
neededLibs = map (p: p.out) [
|
|
xorg.libXxf86vm
|
|
xorg.libXext
|
|
expat
|
|
libdrm
|
|
stdenv.cc.cc
|
|
];
|
|
|
|
meta = {
|
|
platforms = lib.platforms.linux;
|
|
};
|
|
}
|