mesa: make sure $drivers output gets created

Not all installs will have a $drivers output, so we just create an
empty one here.
This commit is contained in:
Matthew Bauer 2019-01-04 23:25:48 -06:00
parent 9618abe87c
commit d9707792b5

View File

@ -163,7 +163,10 @@ let self = stdenv.mkDerivation {
];
# TODO: probably not all .la files are completely fixed, but it shouldn't matter;
postInstall = optionalString (galliumDrivers != []) ''
postInstall = ''
# Some installs don't have any drivers so this directory is never created.
mkdir -p $drivers
'' + optionalString (galliumDrivers != []) ''
# move gallium-related stuff to $drivers, so $out doesn't depend on LLVM
mv -t "$drivers/lib/" \
$out/lib/libXvMC* \