diff options
author | Mitsuhiro Nakamura <m.nacamura@gmail.com> | 2018-01-18 01:50:24 +0900 |
---|---|---|
committer | Mitsuhiro Nakamura <m.nacamura@gmail.com> | 2018-01-19 21:42:52 +0900 |
commit | 1ed47cf21424ff450ed2ce9059b5ce1a2c7e052a (patch) | |
tree | 7df3af68518d80ed1fee352834b012b32146f504 /pkgs/applications/science/math/mathematica/l10ns.nix | |
parent | d4dbe03be59dd6e1419275e34c0bab48555f7aa0 (diff) | |
download | nixlib-1ed47cf21424ff450ed2ce9059b5ce1a2c7e052a.tar nixlib-1ed47cf21424ff450ed2ce9059b5ce1a2c7e052a.tar.gz nixlib-1ed47cf21424ff450ed2ce9059b5ce1a2c7e052a.tar.bz2 nixlib-1ed47cf21424ff450ed2ce9059b5ce1a2c7e052a.tar.lz nixlib-1ed47cf21424ff450ed2ce9059b5ce1a2c7e052a.tar.xz nixlib-1ed47cf21424ff450ed2ce9059b5ce1a2c7e052a.tar.zst nixlib-1ed47cf21424ff450ed2ce9059b5ce1a2c7e052a.zip |
mathematica: enable installation of localized editions
For now English (default) and Japanese editions only. Fill out information in `l10ns.nix` to add the other localized editions. Example usage: `mathematica.override { lang = "ja"; }` derives Japanese edition.
Diffstat (limited to 'pkgs/applications/science/math/mathematica/l10ns.nix')
-rw-r--r-- | pkgs/applications/science/math/mathematica/l10ns.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/applications/science/math/mathematica/l10ns.nix b/pkgs/applications/science/math/mathematica/l10ns.nix new file mode 100644 index 000000000000..2158021c7548 --- /dev/null +++ b/pkgs/applications/science/math/mathematica/l10ns.nix @@ -0,0 +1,33 @@ +{ lib, requireFile }: + +with lib; +{ + l10ns = flip map + [ + { + version = "11.2.0"; + lang = "en"; + language = "English"; + sha256 = "4a1293cc1c404303aa1cab1bd273c7be151d37ac5ed928fbbb18e9c5ab2d8df9"; + } + { + version = "11.2.0"; + lang = "ja"; + language = "Japanese"; + sha256 = "916392edd32bed8622238df435dd8e86426bb043038a3336f30df10d819b49b1"; + } + ] + ({ version, lang, language, sha256 }: { + inherit version lang; + name = "mathematica-${version}" + optionalString (lang != "en") "-${lang}"; + src = requireFile rec { + name = "Mathematica_${version}" + optionalString (lang != "en") "_${language}" + "_LINUX.sh"; + message = '' + This nix expression requires that ${name} is + already part of the store. Find the file on your Mathematica CD + and add it to the nix store with nix-store --add-fixed sha256 <FILE>. + ''; + inherit sha256; + }; + }); +} |