mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
mesa: fixup with multiple outputs
This commit is contained in:
parent
2323d70d88
commit
7434b8c29f
|
@ -125,29 +125,18 @@ stdenv.mkDerivation {
|
|||
$out/lib/libXvMC* \
|
||||
$out/lib/d3d \
|
||||
$out/lib/vdpau \
|
||||
$out/lib/{bellagio,d3d} \
|
||||
$out/lib/libxatracker*
|
||||
|
||||
mv -t "$drivers/lib/dri/" \
|
||||
"$out"/lib/dri/*
|
||||
rmdir "$out/lib/dri"
|
||||
|
||||
mkdir -p {$osmesa,$drivers}/lib/pkgconfig
|
||||
mkdir -p {$osmesa,$drivers}/lib/
|
||||
mv -t $osmesa/lib/ \
|
||||
$out/lib/libOSMesa*
|
||||
|
||||
mv -t $drivers/lib/pkgconfig/ \
|
||||
$out/lib/pkgconfig/xatracker.pc
|
||||
|
||||
mv -t $osmesa/lib/pkgconfig/ \
|
||||
$out/lib/pkgconfig/osmesa.pc
|
||||
|
||||
'' + /* now fix references in .la files */ ''
|
||||
sed "/^libdir=/s,$out,$osmesa," -i \
|
||||
$osmesa/lib/libOSMesa*.la
|
||||
|
||||
'' + /* set the default search path for DRI drivers; used e.g. by X server */ ''
|
||||
substituteInPlace "$out/lib/pkgconfig/dri.pc" --replace '$(drivers)' "${driverLink}"
|
||||
substituteInPlace "$dev/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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue