gjs: Fix locale detection

The build was complaining:

	meson.build:660: WARNING: Your libc does not have the C.UTF-8 locale and no other
	suitable UTF-8 fallback locale could be found. You can still build GJS, but
	some tests will fail.

The tests do not actually seem to be affected but still.
This commit is contained in:
Jan Tojnar 2020-06-10 23:13:08 +02:00
parent 6635e78fad
commit 5d39d988dc
No known key found for this signature in database
GPG key ID: 7FAB2A15F7A607A4

View file

@ -17,6 +17,7 @@
, dbus
, gdk-pixbuf
, makeWrapper
, which
, xvfb_run
, nixosTests
}:
@ -42,6 +43,7 @@ in stdenv.mkDerivation rec {
ninja
pkgconfig
makeWrapper
which # for locale detection
libxml2 # for xml-stripblanks
];
@ -77,6 +79,7 @@ in stdenv.mkDerivation rec {
doCheck = true;
postPatch = ''
patchShebangs build/choose-tests-locale.sh
substituteInPlace installed-tests/debugger-test.sh --subst-var-by gjsConsole $out/bin/gjs-console
'';