git.iko.soy/typeable/nixpkgs
on master help sign in
mesa: make sure $drivers output gets created

Not all installs will have a $drivers output, so we just create an empty one here.

commitd9707792b5e1af8999ddcb790b8b1b06305dd186 authorMatthew Bauer <mjbauer95@gmail.com> dateFri 4 Jan 2019, 23:25 (8 years ago) parent9618abe
1 file changed+4−1
pkgs/development/libraries/mesa/default.nix+4−1
pkgs/development/libraries/mesa/default.nix+4−1
@@ -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* \