Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ofborg/src/maintainers.nix: look up files pointed by "pos" attribute #669

Merged
merged 1 commit into from
Jan 16, 2024
Merged

ofborg/src/maintainers.nix: look up files pointed by "pos" attribute #669

merged 1 commit into from
Jan 16, 2024

Commits on Dec 26, 2023

  1. ofborg/src/maintainers.nix: look up files pointed by "pos" attribute

    Sometimes most of attributes for a package are defined outside the file
    that defines it. Examples are `openjdk` and `nix`.
    
    At least `openjdk` defined `pos` attribute to guide `nix edit` to open
    the right file. Let's extend `ofborg` to do the same.
    
    Before the change (with `pos` applied to `nix_2_3`):
    
        $ printf '[["nix_2_3"]]' > attrs.json; \
          printf '["pkgs/tools/package-management/nix/default.nix"]' > paths.json; \
          nix-instantiate --eval maintainers.nix --arg changedattrsjson ./attrs.json --arg changedpathsjson ./paths.json
        { }
    
    After the change:
    
        $ printf '[["nix_2_3"]]' > attrs.json; \
          printf '["pkgs/tools/package-management/nix/default.nix"]' > paths.json; \
          nix-instantiate --eval maintainers.nix --arg changedattrsjson ./attrs.json --arg changedpathsjson ./paths.json
        { flokli = <CODE>; raitobezarius = <CODE>; }
    trofi committed Dec 26, 2023
    Configuration menu
    Copy the full SHA
    ea507a7 View commit details
    Browse the repository at this point in the history