Skip to content

Commit f9dbaeb

Browse files
committed
devenv: Provide locale archive
Without this, the Iconv tests on CI started to fail in `setLocale` invocation, probably the host no longer ships `C.UTF-8`: PHPUnit\Framework\Exception: The locale functionality is not implemented on your platform, the specified locale does not exist or the category name is invalid. /home/runner/work/transcoder/transcoder/tests/IconvTranscoderTest.php:25
1 parent e0f3e2b commit f9dbaeb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

flake.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,10 @@
5050
phpBase.packages.composer
5151
pkgs.phpactor
5252
];
53+
54+
env = pkgs.lib.optionalAttrs pkgs.stdenv.hostPlatform.isLinux {
55+
LOCALE_ARCHIVE = "${pkgs.glibcLocales}/lib/locale/locale-archive";
56+
};
5357
};
5458
};
5559
}

0 commit comments

Comments
 (0)