Files
Michael Daniels 2bb3216d1c maintainers/scripts/update.nix: allow true for boolean args along w/ "true"
I intend to add a deprecation warning when a string is provided once I've
updated some downstream users.
2026-06-07 15:53:01 -04:00

16 lines
604 B
Nix

{
callPackage,
lib,
}:
# 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`.
# 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 --arg commit true
lib.recurseIntoAttrs (
lib.mapAttrs (name: value: callPackage ./generic.nix value) (lib.importJSON ./versions.json)
)