Skip to content

Commit 2a7809a

Browse files
committed
devenv: Provide locale archive
Without this, the Iconv tests on CI started to fail in `setLocale` invocation: 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 976d0f4 commit 2a7809a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: flake.nix

+4
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)