pkgsMusl.gjs: fix build (#203312)

(cherry picked from commit d00730bd37)

Co-authored-by: Yureka <yuka@yuka.dev>
This commit is contained in:
github-actions[bot]
2022-12-07 15:28:45 +01:00
committed by GitHub
parent 799e7055b3
commit ea985defef

View File

@@ -79,7 +79,7 @@ in stdenv.mkDerivation rec {
mesonFlags = [
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
] ++ lib.optionals (!stdenv.isLinux) [
] ++ lib.optionals (!stdenv.isLinux || stdenv.hostPlatform.isMusl) [
"-Dprofiler=disabled"
];
@@ -88,6 +88,9 @@ in stdenv.mkDerivation rec {
postPatch = ''
patchShebangs build/choose-tests-locale.sh
substituteInPlace installed-tests/debugger-test.sh --subst-var-by gjsConsole $out/bin/gjs-console
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
substituteInPlace installed-tests/js/meson.build \
--replace "'Encoding'," "#'Encoding',"
'';
preCheck = ''