fork/home-manager
git clone https://git.julia.blue/fork/home-manager
3be2abb2
master
1{ 2i18n = { ...} :{ 3config = { 4nmt . script = '' 5hmEnvFile =home-path/etc/profile.d/hm-session-vars.sh 6assertFileExists $ hmEnvFile 7assertFileRegex $ hmEnvFile \ 8'^export LOCALE_ARCHIVE_._..=".*/lib/locale/locale-archive"$' 9 10envFile =home-files/.config/environment.d/10-home-manager.conf 11assertFileExists $ envFile 12assertFileRegex $ envFile \ 13'^LOCALE_ARCHIVE_._..=.*/lib/locale/locale-archive$' 14'' ; 15}; 16}; 17 18i18n-custom-locales = { pkgs , ...} :{ 19config = let stub = pkgs . glibcLocalesCustom ; 20in { 21test . stubs . glibcLocalesCustom = { 22inherit ( pkgs . glibcLocales ) version ; 23outPath = null ; # we need a real path for this stub 24}; 25 26i18n . glibcLocales = stub ; 27 28nmt . script = '' 29hmEnvFile =home-path/etc/profile.d/hm-session-vars.sh 30assertFileExists $ hmEnvFile 31assertFileRegex $ hmEnvFile 'LOCALE_ARCHIVE_.* ${ stub } ' 32 33envFile=home-files/.config/environment.d/10-home-manager.conf 34assertFileExists $envFile 35assertFileRegex $envFile ' LOCALE_ARCHIVE_.* ${ stub } ' 36'' ; 37}; 38}; 39}