uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
16
pkgs/os-specific/linux/opengl/xorg-sys/builder.sh
Normal file
16
pkgs/os-specific/linux/opengl/xorg-sys/builder.sh
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
source $stdenv/setup
|
||||
|
||||
mkdir -p $out/lib
|
||||
|
||||
ln -s /usr/lib/libGL.so.1 $out/lib/
|
||||
ln -s /usr/lib/libGLU.so.1 $out/lib/
|
||||
ln -s /usr/lib/libGLcore.so.1 $out/lib/
|
||||
ln -s /usr/lib/tls/libnvidia-tls.so.1 $out/lib/
|
||||
#ln -s /usr/lib/libdrm.so.2 $out/lib/
|
||||
|
||||
for i in $neededLibs; do
|
||||
ln -s $i/lib/*.so* $out/lib/
|
||||
done
|
||||
|
||||
|
||||
|
||||
21
pkgs/os-specific/linux/opengl/xorg-sys/default.nix
Normal file
21
pkgs/os-specific/linux/opengl/xorg-sys/default.nix
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
# 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue