summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYureka <yuka@yuka.dev>2022-11-27 13:44:47 +0100
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2022-11-27 18:17:26 +0000
commitd66c3f242f49a6b9cb2d2527fda0faff67bc083a (patch)
tree06f8e54e54feae1e26aa09516ab956c6216fb34e
parentMerge pull request #203176 from NixOS/backport-201382-to-release-22.11 (diff)
downloadnixpkgs-origin/backport-203248-to-release-22.11.tar.gz
(cherry picked from commit d00730bd373c850a33507094951b6cdbbaf16f0e)
-rw-r--r--pkgs/development/libraries/gjs/default.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gjs/default.nix b/pkgs/development/libraries/gjs/default.nix
index 540fe842c5a7..8b15bbf608d5 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 = ''