mesa: fix datadir location

(cherry picked from commit 9bf469e6488b5835ac83ccc5ca7f7f63c1f7a0dd)
This commit is contained in:
ash lea 2021-07-23 14:24:41 -07:00 committed by Jonathan Ringer
parent 7533ec9452
commit af428afe37
1 changed files with 2 additions and 2 deletions

View File

@ -78,9 +78,9 @@ self = stdenv.mkDerivation {
# The drirc.d directory cannot be installed to $drivers as that would cause a cyclic dependency:
substituteInPlace src/util/xmlconfig.c --replace \
'DATADIR "/drirc.d"' '"${placeholder "out"}/drirc.d"'
'DATADIR "/drirc.d"' '"${placeholder "out"}/share/drirc.d"'
substituteInPlace src/util/meson.build --replace \
"get_option('datadir')" "'${placeholder "out"}'"
"get_option('datadir')" "'${placeholder "out"}/share'"
'' + lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
substituteInPlace meson.build --replace \
"find_program('nm')" \