2022-01-25 03:21:06 +00:00
|
|
|
{ recurseIntoAttrs
|
|
|
|
, callPackage
|
2022-09-22 12:36:57 +00:00
|
|
|
, lib
|
2022-01-25 03:21:06 +00:00
|
|
|
}:
|
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
# All versions are taken from `version.json` created by `update.py`, and realised with `generic.nix`.
|
|
|
|
# The `update.py` is a web scraper script that writes the latest versions into `version.json`.
|
2022-01-25 03:21:06 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
# The `versions.json` can be automatically updated and committed with a commit summary.
|
|
|
|
# To do so, change directory to nixpkgs root, and do:
|
|
|
|
# $ nix-shell ./maintainers/scripts/update.nix --argstr package optifinePackages.optifine-latest --argstr commit true
|
2022-01-25 03:21:06 +00:00
|
|
|
|
2022-09-22 12:36:57 +00:00
|
|
|
recurseIntoAttrs (
|
|
|
|
lib.mapAttrs
|
|
|
|
(name: value: callPackage ./generic.nix value)
|
|
|
|
(lib.importJSON ./versions.json)
|
|
|
|
)
|