3
0
Fork 0
forked from mirrors/nixpkgs

mesa: have all output on /run/opengl-driver{,-32}

Fixes #2242 in a different way (cleaner, I hope).
This commit is contained in:
Vladimír Čunát 2014-04-14 21:02:27 +02:00
parent 557dff54aa
commit 8340454544
2 changed files with 1 additions and 5 deletions

View file

@ -93,6 +93,7 @@ in {
name = "mesa-drivers+txc-${p.mesa_drivers.version}";
paths = [
p.mesa_drivers
p.mesa_noglu # mainly for libGL
(if cfg.s3tcSupport then p.libtxc_dxtn else p.libtxc_dxtn_s2tc)
];
};

View file

@ -151,11 +151,6 @@ stdenv.mkDerivation {
substituteInPlace "$out/lib/pkgconfig/dri.pc" --replace '$(drivers)' "${driverLink}"
'' + /* move vdpau drivers to $drivers/lib, so they are found */ ''
mv "$drivers"/lib/vdpau/* "$drivers"/lib/ && rmdir "$drivers"/lib/vdpau
'' + /* add libGL* links from /run/opengl-driver */ ''
(
cd "$drivers/lib"
cp -s "$out"/lib/*.so .
)
'';
#ToDo: @vcunat isn't sure if drirc will be found when in $out/etc/, but it doesn't seem important ATM