diff options
author | Yureka <yuka@yuka.dev> | 2022-11-27 19:10:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-27 19:10:33 +0100 |
commit | 1106312d84546ba65e3c51fdca79cd0cc97ff46a (patch) | |
tree | b2062655e20c2e6a479ee4900f436857a27e7c7c /pkgs/development/libraries/gjs | |
parent | adddfe7932c5f54ae860595461fa379073a8e773 (diff) |
pkgsMusl.gjs: fix build (#203248)
Diffstat (limited to 'pkgs/development/libraries/gjs')
-rw-r--r-- | pkgs/development/libraries/gjs/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gjs/default.nix b/pkgs/development/libraries/gjs/default.nix index 540fe842c5a77..8b15bbf608d53 100644 --- a/pkgs/development/libraries/gjs/default.nix +++ b/pkgs/development/libraries/gjs/default.nix @@ -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 = '' |