Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
base: 64d855d214ff
Choose a base ref
...
head repository: NixOS/nixpkgs
compare: 27296cc5c572
Choose a head ref
  • 5 commits
  • 5 files changed
  • 1 contributor

Commits on Jul 20, 2020

  1. lib: add the toHex and toBase utility functions

    `toHex` converts the given positive integer to a string of the hexadecimal
    representation of that integer. For example:
    
    ```
    toHex 0 => "0"
    
    toHex 16 => "10"
    
    toHex 250 => "FA"
    ```
    
    `toBase base i` converts the positive integer `i` to a list of it
    digits in the given `base`. For example:
    
    ```
    toBase 10 123 => [ 1 2 3 ]
    
    toBase 2 6 => [ 1 1 0 ]
    
    toBase 16 250 => [ 15 10 ]
    ```
    basvandijk committed Jul 20, 2020
    Copy the full SHA
    00022fb View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    0410f5d View commit details
    Browse the repository at this point in the history
  3. nixos/tests/networking.nix: test the services.dhcpd4.machines option

    This modifies the `router` to not give out a range of IP addresses but
    only give out a fixed address based on the MAC address using the
    `services.dhcpd4.machines` option.
    
    To get access to the MAC address the `qemuNicMac` function is defined
    and exported from `qemu-flags.nix`.
    basvandijk committed Jul 20, 2020
    Copy the full SHA
    e15815e View commit details
    Browse the repository at this point in the history
  4. lib: toHex -> toHexString & toBase -> toBaseDigits

    This makes the type of these functions more apparent from the name.
    basvandijk committed Jul 20, 2020
    Copy the full SHA
    6e7822b View commit details
    Browse the repository at this point in the history
  5. Merge pull request #85635 from basvandijk/support-bigger-nixos-tests

    Support more than 99 nodes in NixOS tests & export toHex and toBase
    basvandijk committed Jul 20, 2020
    Copy the full SHA
    27296cc View commit details
    Browse the repository at this point in the history