Skip to content

Commit

Permalink
mesa: make sure $drivers output gets created
Browse files Browse the repository at this point in the history
Not all installs will have a $drivers output, so we just create an
empty one here.
  • Loading branch information
matthewbauer committed Jan 5, 2019
1 parent 9618abe commit d970779
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkgs/development/libraries/mesa/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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* \
Expand Down

0 comments on commit d970779

Please sign in to comment.