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

[RFC 0110] Add "inherit-as-list" syntax construct to the Nix language #110

Draft
wants to merge 14 commits into
base: master
Choose a base branch
from

Commits on Oct 18, 2021

  1. Configuration menu
    Copy the full SHA
    1cbffdb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7886f94 View commit details
    Browse the repository at this point in the history
  3. Fix code examples syntax

    r-burns committed Oct 18, 2021
    Configuration menu
    Copy the full SHA
    de1c4d2 View commit details
    Browse the repository at this point in the history

Commits on Oct 19, 2021

  1. Configuration menu
    Copy the full SHA
    1d1ffeb View commit details
    Browse the repository at this point in the history
  2. Remove Nix syntax highlighting from proposed syntax snippets

    They are highlighted incorrectly as they are not currently valid Nix
    code
    r-burns committed Oct 19, 2021
    Configuration menu
    Copy the full SHA
    2a6bbb4 View commit details
    Browse the repository at this point in the history

Commits on Oct 20, 2021

  1. Simplify desugared form

    Before:
    ```
    [ inherit (attrs) a b c; ] := builtins.attrValues { inherit (attrs) a b c; }
    ```
    
    After:
    ```
    [ inherit (attrs) a b c; ] := [ attrs.a attrs.b attrs.c ];
    ```
    
    The previous desugaring has some potentially nice properties such as
    non-significant ordering and no-duplicate enforcement, but was
    ultimately deemed unintuitive and too surprising in practical use.
    r-burns committed Oct 20, 2021
    Configuration menu
    Copy the full SHA
    ad09702 View commit details
    Browse the repository at this point in the history

Commits on Jan 12, 2022

  1. Add shepherds

    Co-authored-by: Jörg Thalheim <[email protected]>
    edolstra and Mic92 authored Jan 12, 2022
    Configuration menu
    Copy the full SHA
    75cd80e View commit details
    Browse the repository at this point in the history

Commits on Jul 6, 2022

  1. Update shepherd team + leader

    Co-authored-by: Kevin Cox <[email protected]>
    r-burns and kevincox authored Jul 6, 2022
    Configuration menu
    Copy the full SHA
    63ea2a1 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2022

  1. Revise to list-like syntax proposed by Synthetica9

    The new syntax is
    
    ```
    attrs.[ a b c ]
    ```
    
    as sugar for
    
    ```
    [ attrs.a attrs.b attrs.c ]
    ```
    r-burns committed Jul 31, 2022
    Configuration menu
    Copy the full SHA
    f7730ef View commit details
    Browse the repository at this point in the history

Commits on Nov 6, 2022

  1. Configuration menu
    Copy the full SHA
    35da03c View commit details
    Browse the repository at this point in the history

Commits on Nov 7, 2022

  1. Configuration menu
    Copy the full SHA
    1676024 View commit details
    Browse the repository at this point in the history

Commits on Jun 11, 2023

  1. Add tables of alternatives discussed in this RFC

    An overview of alternatives and their drawbacks (including drawbacks to
    the syntax currently proposed) are provided in tables in the
    Alternatives section, as requested by the Nix team.
    
    These tables are intended to be an overview of some of the discussion in
    this RFC and will be updated as discussion continues.
    r-burns committed Jun 11, 2023
    Configuration menu
    Copy the full SHA
    d67d442 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d869514 View commit details
    Browse the repository at this point in the history
  3. Update nix.dev links

    Linked content has moved to recipes/best-practices
    r-burns committed Jun 11, 2023
    Configuration menu
    Copy the full SHA
    7dbdd8e View commit details
    Browse the repository at this point in the history