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