Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
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-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 355d39c02c53
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: d0b24f28fa36
Choose a head ref

Commits on Jul 4, 2017

  1. systemd.nspawn: fix missing suffix

    Fix files placed in `/etc/systemd/nspawn/` missing `.nspawn` suffix
    Giumo X. Clanjor (哆啦比猫/兰威举) authored Jul 4, 2017
    Copy the full SHA
    87cbb86 View commit details

Commits on Nov 6, 2017

  1. docs: multiple outputs: now mentions glibc as not having executables …

    …in the first output contrary to the convention
    1pakch committed Nov 6, 2017

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    da3658f View commit details
  2. glibc: comments on bin not being the first output

    The glibc package does not respect a standard convention to put the
    executables in the first output which should be as clear as possible
    to anyone seeking to use such executables (e.g. `ldd`). This commit
    adds a detailed comment a the top of `common.nix` explaining the
    deviation from the convention and how to reference the binaries.
    1pakch committed Nov 6, 2017
    Copy the full SHA
    e4afe8f View commit details

Commits on Apr 6, 2018

  1. hamlib: 1.2.15.3 -> 3.2

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/hamlib/versions.
    
    These checks were done:
    
    - built on NixOS
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigctl -h’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigctl --help’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigctl help’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigctld -h’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigctld --help’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigmem -h’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigmem --help’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigsmtr -h’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigsmtr --help’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigswr -h’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rigswr --help’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rotctl -h’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rotctl --help’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rotctl help’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rotctld -h’ got 0 exit code
    - ran ‘/nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2/bin/rotctld --help’ got 0 exit code
    - found 3.2 with grep in /nix/store/aa53dqx342j0ix0dxhkcmp5sqcjvggnp-hamlib-3.2
    - directory tree listing: https://gist.github.com/af20bb24f2d2a1b901f88663a7966181
    R. RyanTM committed Apr 6, 2018
    Copy the full SHA
    fdbd53e View commit details

Commits on Apr 11, 2018

  1. fox_1_6: 1.6.56 -> 1.6.57

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/fox/versions.
    
    These checks were done:
    
    - built on NixOS
    - ran ‘/nix/store/0d83j376zvh006b5slmgdx86bcm3dxkm-fox-1.6.57/bin/reswrap -h’ got 0 exit code
    - ran ‘/nix/store/0d83j376zvh006b5slmgdx86bcm3dxkm-fox-1.6.57/bin/reswrap --help’ got 0 exit code
    - ran ‘/nix/store/0d83j376zvh006b5slmgdx86bcm3dxkm-fox-1.6.57/bin/fox-config --version’ and found version 1.6.57
    - found 1.6.57 with grep in /nix/store/0d83j376zvh006b5slmgdx86bcm3dxkm-fox-1.6.57
    - directory tree listing: https://gist.github.com/baa2d8696211116ff0be92b664965741
    R. RyanTM committed Apr 11, 2018
    Copy the full SHA
    c03cb44 View commit details
  2. Copy the full SHA
    23a1b12 View commit details

Commits on Apr 13, 2018

  1. asterisk: 14.6.1 -> 15.3.0, 13.17.1 -> 13.20.0

    Tim Digel committed Apr 13, 2018
    Copy the full SHA
    b4ac50a View commit details

Commits on Apr 17, 2018

  1. Revert "nixos/version: fix nixops pre 1.6 compatibility"

    This reverts commit 70c6f65.
    oxij committed Apr 17, 2018
    Copy the full SHA
    4018d44 View commit details
  2. nixos: rename.nix: fix bugs

    Introduced in 286b007 and then
    in 2e6b796.
    
    This a proper fix for what 70c6f65 tried to do.
    Removing the "config" prefix triggers the bug on pure nixos too, not only
    on nixops.
    oxij committed Apr 17, 2018
    Copy the full SHA
    b57a6e9 View commit details

Commits on Apr 18, 2018

  1. Copy the full SHA
    b50e628 View commit details
  2. Copy the full SHA
    9b4b21c View commit details
  3. dust: init at 0.2.3

    infinisil committed Apr 18, 2018
    Copy the full SHA
    6026e43 View commit details

Commits on Apr 19, 2018

  1. et: 0.1 -> 0.1.1

    oxzi committed Apr 19, 2018
    Copy the full SHA
    06a9f14 View commit details
  2. Copy the full SHA
    fa3f620 View commit details
  3. Copy the full SHA
    cd79136 View commit details
  4. zramSwap: default to 1 device

    One device per cpu is only needed for kernel 3.14
    wmertens authored Apr 19, 2018
    Copy the full SHA
    dd5e2a0 View commit details
  5. Copy the full SHA
    8e3a145 View commit details
  6. Copy the full SHA
    754b30e View commit details

Commits on Apr 20, 2018

  1. python27Packages.youtube-dl: 2018.03.26.1 -> 2018.04.16

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/youtube-dl/versions.
    
    These checks were done:
    
    - built on NixOS
    - ran ‘/nix/store/3dkc0vhb4v2fyagm0p33r54f6j89sjb0-youtube-dl-2018.04.16/bin/.youtube-dl-wrapped -h’ got 0 exit code
    - ran ‘/nix/store/3dkc0vhb4v2fyagm0p33r54f6j89sjb0-youtube-dl-2018.04.16/bin/.youtube-dl-wrapped --help’ got 0 exit code
    - ran ‘/nix/store/3dkc0vhb4v2fyagm0p33r54f6j89sjb0-youtube-dl-2018.04.16/bin/.youtube-dl-wrapped --version’ and found version 2018.04.16
    - ran ‘/nix/store/3dkc0vhb4v2fyagm0p33r54f6j89sjb0-youtube-dl-2018.04.16/bin/youtube-dl -h’ got 0 exit code
    - ran ‘/nix/store/3dkc0vhb4v2fyagm0p33r54f6j89sjb0-youtube-dl-2018.04.16/bin/youtube-dl --help’ got 0 exit code
    - ran ‘/nix/store/3dkc0vhb4v2fyagm0p33r54f6j89sjb0-youtube-dl-2018.04.16/bin/youtube-dl --version’ and found version 2018.04.16
    - found 2018.04.16 with grep in /nix/store/3dkc0vhb4v2fyagm0p33r54f6j89sjb0-youtube-dl-2018.04.16
    - directory tree listing: https://gist.github.com/359ce5add8ebf04a1dfe79aecb499137
    R. RyanTM committed Apr 20, 2018
    Copy the full SHA
    65d5a82 View commit details
  2. supercollider: 3.9.2 -> 3.9.3

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/supercollider/versions.
    
    These checks were done:
    
    - built on NixOS
    - ran ‘/nix/store/4azhvz3aw8jkcs3vib2aaii15yq5rr8k-supercollider-3.9.3/bin/supernova -h’ got 0 exit code
    - ran ‘/nix/store/4azhvz3aw8jkcs3vib2aaii15yq5rr8k-supercollider-3.9.3/bin/supernova --help’ got 0 exit code
    - ran ‘/nix/store/4azhvz3aw8jkcs3vib2aaii15yq5rr8k-supercollider-3.9.3/bin/sclang -h’ got 0 exit code
    - found 3.9.3 with grep in /nix/store/4azhvz3aw8jkcs3vib2aaii15yq5rr8k-supercollider-3.9.3
    - directory tree listing: https://gist.github.com/1dcdb0888d56e74baf1a827e371acad1
    R. RyanTM committed Apr 20, 2018
    Copy the full SHA
    5257f8e View commit details
  3. leatherman: 1.4.0 -> 1.4.1

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/leatherman/versions.
    
    These checks were done:
    
    - built on NixOS
    - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
    - found 1.4.1 with grep in /nix/store/9wbh0aq3a46hkm7ybz7mi5ns2s1hwsp9-leatherman-1.4.1
    - directory tree listing: https://gist.github.com/478abe4c1470eb6b45919b8e1eca9538
    R. RyanTM committed Apr 20, 2018
    Copy the full SHA
    8a28784 View commit details
  4. ibus-engines.libpinyin: 1.9.3 -> 1.10.0

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/ibus-libpinyin/versions.
    
    These checks were done:
    
    - built on NixOS
    - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
    - found 1.10.0 with grep in /nix/store/4ya0a61mnwzvlphi2a39q3wz8srak0g5-ibus-libpinyin-1.10.0
    - directory tree listing: https://gist.github.com/920acb2f5a3bfd5b8d50bff07772754e
    R. RyanTM committed Apr 20, 2018
    Copy the full SHA
    8539dec View commit details
  5. gzdoom: 3.3.0 -> 3.3.2

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/gzdoom/versions.
    
    These checks were done:
    
    - built on NixOS
    - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.)
    - found 3.3.2 with grep in /nix/store/zv856axqy6bna0vpgramgaglz02nb8rh-gzdoom-3.3.2
    - directory tree listing: https://gist.github.com/66372cbd8e865e89ab9749a99b308ea7
    R. RyanTM committed Apr 20, 2018
    Copy the full SHA
    412476a View commit details
  6. vim: idiomatic nix filetype plugin

    * Never modify tabstop. This causes incompatibilities with other
      utilities that expect tabs to always be 8 spaces.
    * Add standard boilerplate for system-level filetype plugins.
    chreekat committed Apr 20, 2018
    Copy the full SHA
    94fd34a View commit details
  7. Copy the full SHA
    16bfd5a View commit details

Commits on Apr 21, 2018

  1. asciidoctor: remove mathematical from wrapper, fixes #39098

    because it does not exist in the original derivation, breaking
    installation with `nix-env`. Should asciidoctor-mathematical exist?
    FRidh committed Apr 21, 2018
    Copy the full SHA
    ddcdc0f View commit details
  2. Copy the full SHA
    3ce3708 View commit details
  3. gphoto2: 2.5.15 -> 2.5.17

    markus1189 committed Apr 21, 2018
    Copy the full SHA
    294f823 View commit details
  4. Copy the full SHA
    f7fe612 View commit details
  5. gegl_0_3: 0.3.30 -> 0.3.34 (#39241)

    Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools.
    
    This update was made based on information from https://repology.org/metapackage/gegl/versions.
    
    These checks were done:
    
    - built on NixOS
    - ran ‘/nix/store/2w7m19f387zkwhxbv6k2p8nrrlwqimpn-gegl-0.3.34/bin/gegl -h’ got 0 exit code
    - ran ‘/nix/store/2w7m19f387zkwhxbv6k2p8nrrlwqimpn-gegl-0.3.34/bin/gegl --help’ got 0 exit code
    - found 0.3.34 with grep in /nix/store/2w7m19f387zkwhxbv6k2p8nrrlwqimpn-gegl-0.3.34
    - directory tree listing: https://gist.github.com/96c792a5cd60943effce7884fc50cc3a
    r-ryantm authored and jtojnar committed Apr 21, 2018
    Copy the full SHA
    c6e575c View commit details
  6. Merge pull request #39260 from chreekat/idiomatic-vim-ft-plugin

    vim: idiomatic nix filetype plugin
    LnL7 authored Apr 21, 2018
    Copy the full SHA
    313b5fc View commit details

Commits on Apr 22, 2018

  1. lcalc: init at 1.23 (#38796)

    timokau authored and matthewbauer committed Apr 22, 2018
    Copy the full SHA
    10124a4 View commit details
  2. Copy the full SHA
    1cf1b1e View commit details
  3. Copy the full SHA
    9897e95 View commit details
  4. cypari2: init at 1.1.4

    timokau authored and matthewbauer committed Apr 22, 2018
    Copy the full SHA
    a037da9 View commit details
  5. pynac: init at 0.7.19

    timokau authored and matthewbauer committed Apr 22, 2018
    Copy the full SHA
    7dc6b2e View commit details
  6. palp: init at 2.1

    timokau authored and matthewbauer committed Apr 22, 2018
    Copy the full SHA
    be0b8f2 View commit details
  7. jmol: init at 14.29.12

    timokau authored and matthewbauer committed Apr 22, 2018
    Copy the full SHA
    b93e1fb View commit details
  8. rubiks: init at 20070917

    timokau authored and matthewbauer committed Apr 22, 2018
    Copy the full SHA
    d0d7894 View commit details
  9. flintqs: init at 1.0

    timokau authored and matthewbauer committed Apr 22, 2018
    Copy the full SHA
    b74e884 View commit details
  10. Merge pull request #38801 from worldofpeace/wire-desktop

    wire-desktop: init at 3.0.2816
    matthewbauer authored Apr 22, 2018
    Copy the full SHA
    c8e5811 View commit details
  11. Merge pull request #38889 from DerTim1/asterisk-update

    asterisk: 14.6.1 -> 15.3.0, 13.17.1 -> 13.20.0
    matthewbauer authored Apr 22, 2018
    Copy the full SHA
    f4de9e0 View commit details
  12. Merge pull request #39097 from smashedtoatoms/bitwigstudio2-to-2.3.2

    bitwigstudio2: 2.3.1 -> 2.3.2
    matthewbauer authored Apr 22, 2018
    Copy the full SHA
    b4baad5 View commit details
  13. nix-pin: 0.1.2 -> 0.2.2

    timbertson committed Apr 22, 2018
    Copy the full SHA
    92f083a View commit details
  14. Copy the full SHA
    4bf61fa View commit details
  15. Copy the full SHA
    0eab059 View commit details
  16. Copy the full SHA
    b52f5db View commit details
  17. Copy the full SHA
    ad5b090 View commit details
  18. Copy the full SHA
    146dabd View commit details
  19. Merge pull request #39293 from FRidh/asciidoctor

    asciidoctor: remove mathematical from wrapper, fixes #39098
    FRidh authored Apr 22, 2018
    Copy the full SHA
    b25c04d View commit details
Showing with 1,390 additions and 375 deletions.
  1. +8 −2 doc/multiple-output.xml
  2. +10 −0 maintainers/maintainer-list.nix
  3. +4 −4 nixos/modules/config/zram.nix
  4. +1 −1 nixos/modules/installer/cd-dvd/iso-image.nix
  5. +31 −12 nixos/modules/misc/documentation.nix
  6. +0 −15 nixos/modules/misc/version.nix
  7. +9 −11 nixos/modules/rename.nix
  8. +9 −2 nixos/modules/services/hardware/trezord.nix
  9. +51 −50 nixos/modules/services/networking/wireguard.nix
  10. +4 −0 nixos/modules/system/boot/loader/raspberrypi/builder.sh
  11. +34 −0 nixos/modules/system/boot/loader/raspberrypi/builder_uboot.nix
  12. +29 −0 nixos/modules/system/boot/loader/raspberrypi/builder_uboot.sh
  13. +83 −17 nixos/modules/system/boot/loader/raspberrypi/raspberrypi.nix
  14. +1 −1 nixos/modules/system/boot/systemd-nspawn.nix
  15. +6 −4 pkgs/applications/altcoins/bitcoin-unlimited.nix
  16. +5 −3 pkgs/applications/altcoins/bitcoin-xt.nix
  17. +16 −4 pkgs/applications/altcoins/default.nix
  18. +2 −2 pkgs/applications/audio/bitwig-studio/bitwig-studio2.nix
  19. +8 −1 pkgs/applications/editors/vim/ft-nix-support.patch
  20. +2 −2 pkgs/applications/misc/et/default.nix
  21. +2 −2 pkgs/applications/misc/gphoto2/default.nix
  22. +6 −2 pkgs/applications/misc/sent/default.nix
  23. +3 −3 pkgs/applications/misc/slstatus/default.nix
  24. +2 −2 pkgs/applications/misc/urh/default.nix
  25. +3 −1 pkgs/applications/networking/browsers/firefox/wrapper.nix
  26. +14 −1 pkgs/applications/networking/enhanced-ctorrent/default.nix
  27. +104 −0 pkgs/applications/networking/instant-messengers/wire-desktop/default.nix
  28. +2 −2 pkgs/applications/office/todo.txt-cli/default.nix
  29. +44 −0 pkgs/applications/science/chemistry/jmol/default.nix
  30. +2 −2 pkgs/applications/science/chemistry/octopus/default.nix
  31. +32 −30 pkgs/applications/science/math/calc/default.nix
  32. +67 −0 pkgs/applications/science/math/palp/default.nix
  33. +47 −0 pkgs/applications/science/math/pynac/default.nix
  34. +10 −10 pkgs/applications/video/handbrake/default.nix
  35. +6 −6 pkgs/build-support/vm/default.nix
  36. +2 −2 pkgs/data/fonts/dejavu-fonts/default.nix
  37. +1 −2 pkgs/development/compilers/as31/default.nix
  38. +3 −0 pkgs/development/compilers/mono/4.0.nix
  39. +5 −3 pkgs/development/compilers/mono/generic.nix
  40. +12 −11 pkgs/development/interpreters/eff/default.nix
  41. +2 −2 pkgs/development/interpreters/supercollider/default.nix
  42. +9 −3 pkgs/development/libraries/arb/default.nix
  43. +31 −8 pkgs/development/libraries/eclib/default.nix
  44. +5 −1 pkgs/development/libraries/farbfeld/default.nix
  45. +2 −2 pkgs/development/libraries/fox/fox-1.6.nix
  46. +2 −2 pkgs/development/libraries/gegl/3.0.nix
  47. +17 −1 pkgs/development/libraries/glibc/common.nix
  48. +3 −3 pkgs/development/libraries/gmime/3.nix
  49. +2 −2 pkgs/development/libraries/hamlib/default.nix
  50. +2 −2 pkgs/development/libraries/leatherman/default.nix
  51. +3 −3 pkgs/development/libraries/libgphoto2/default.nix
  52. +2 −1 pkgs/development/libraries/libimobiledevice/default.nix
  53. +2 −1 pkgs/development/libraries/libusbmuxd/default.nix
  54. +2 −2 pkgs/development/libraries/openmpi/default.nix
  55. +40 −0 pkgs/development/libraries/science/math/flintqs/default.nix
  56. +78 −0 pkgs/development/libraries/science/math/lcalc/default.nix
  57. +113 −0 pkgs/development/libraries/science/math/lcalc/makefile.patch
  58. +82 −0 pkgs/development/libraries/science/math/rubiks/default.nix
  59. +55 −0 pkgs/development/python-modules/cypari2/default.nix
  60. +44 −0 pkgs/development/python-modules/flask-babel/default.nix
  61. +26 −0 pkgs/development/python-modules/flask-silk/default.nix
  62. +2 −2 pkgs/development/python-modules/html5-parser/default.nix
  63. +3 −1 pkgs/development/python-modules/xdot/default.nix
  64. +0 −16 pkgs/development/tools/build-managers/gup/build.nix
  65. +34 −17 pkgs/development/tools/build-managers/gup/default.nix
  66. +2 −0 pkgs/development/tools/misc/hydra/default.nix
  67. +2 −2 pkgs/games/gzdoom/default.nix
  68. +1 −1 pkgs/os-specific/linux/zfs/default.nix
  69. +9 −13 pkgs/servers/asterisk/default.nix
  70. +2 −2 pkgs/servers/dns/knot-resolver/default.nix
  71. +23 −11 pkgs/servers/ftp/bftpd/default.nix
  72. +3 −3 pkgs/shells/xonsh/default.nix
  73. +1 −1 pkgs/tools/backup/diskrsync/default.nix
  74. +7 −6 pkgs/tools/graphics/maim/default.nix
  75. +2 −2 pkgs/tools/inputmethods/ibus-engines/ibus-libpinyin/default.nix
  76. +25 −0 pkgs/tools/misc/dust/default.nix
  77. +7 −29 pkgs/tools/misc/memtest86+/default.nix
  78. +5 −3 pkgs/tools/misc/slop/default.nix
  79. +2 −2 pkgs/tools/misc/youtube-dl/default.nix
  80. +24 −9 pkgs/tools/package-management/nix-pin/default.nix
  81. +2 −2 pkgs/tools/package-management/nix-review/default.nix
  82. +7 −4 pkgs/tools/package-management/nix-update-source/default.nix
  83. +0 −1 pkgs/tools/typesetting/asciidoctor/default.nix
  84. +19 −3 pkgs/top-level/all-packages.nix
  85. +0 −2 pkgs/top-level/ocaml-packages.nix
  86. +6 −0 pkgs/top-level/python-packages.nix
10 changes: 8 additions & 2 deletions doc/multiple-output.xml
Original file line number Diff line number Diff line change
@@ -36,10 +36,16 @@
<para>Here you find how to write a derivation that produces multiple outputs.</para>
<para>In nixpkgs there is a framework supporting multiple-output derivations. It tries to cover most cases by default behavior. You can find the source separated in &lt;<filename>nixpkgs/pkgs/build-support/setup-hooks/multiple-outputs.sh</filename>&gt;; it's relatively well-readable. The whole machinery is triggered by defining the <varname>outputs</varname> attribute to contain the list of desired output names (strings).</para>
<programlisting>outputs = [ "bin" "dev" "out" "doc" ];</programlisting>
<para>Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. By convention, the first output should contain the executable programs provided by the package as that output is used by Nix in string conversions, allowing references to binaries like <literal>${pkgs.perl}/bin/perl</literal> to always work. Typically you also want to have the main <varname>out</varname> output, as it catches any files that didn't get elsewhere.</para>

<para>Often such a single line is enough. For each output an equally named environment variable is passed to the builder and contains the path in nix store for that output. Typically you also want to have the main <varname>out</varname> output, as it catches any files that didn't get elsewhere.</para>
<note><para>There is a special handling of the <varname>debug</varname> output, described at <xref linkend="stdenv-separateDebugInfo" />.</para></note>

<section xml:id="multiple-output-file-binaries-first-convention">
<title><quote>Binaries first</quote></title>
<para>A commonly adopted convention in <literal>nixpkgs</literal> is that executables provided by the package are contained within its first output. This convention allows the dependent packages to reference the executables provided by packages in a uniform manner. For instance, provided with the knowledge that the <literal>perl</literal> package contains a <literal>perl</literal> executable it can be referenced as <literal>${pkgs.perl}/bin/perl</literal> within a Nix derivation that needs to execute a Perl script.</para>
<para>The <literal>glibc</literal> package is a deliberate single exception to the <quote>binaries first</quote> convention. The <literal>glibc</literal> has <literal>libs</literal> as its first output allowing the libraries provided by <literal>glibc</literal> to be referenced directly (e.g. <literal>${stdenv.glibc}/lib/ld-linux-x86-64.so.2</literal>). The executables provided by <literal>glibc</literal> can be accessed via its <literal>bin</literal> attribute (e.g. <literal>${stdenv.glibc.bin}/bin/ldd</literal>).</para>
<para>The reason for why <literal>glibc</literal> deviates from the convention is because referencing a library provided by <literal>glibc</literal> is a very common operation among Nix packages. For instance, third-party executables packaged by Nix are typically patched and relinked with the relevant version of <literal>glibc</literal> libraries from Nix packages (please see the documentation on <link xlink:href="https://nixos.org/patchelf.html">patchelf</link> for more details).</para>
</section>

<section xml:id="multiple-output-file-type-groups">
<title>File type groups</title>
<para>The support code currently recognizes some particular kinds of outputs and either instructs the build system of the package to put files into their desired outputs or it moves the files during the fixup phase. Each group of file types has an <varname>outputFoo</varname> variable specifying the output name where they should go. If that variable isn't defined by the derivation writer, it is guessed &ndash; a default output name is defined, falling back to other possibilities if the output isn't defined.</para>
10 changes: 10 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -28,6 +28,11 @@
github = "AndersonTorres";
name = "Anderson Torres";
};
Anton-Latukha = {
email = "anton.latuka+nixpkgs@gmail.com";
github = "Anton-Latukha";
name = "Anton Latukha";
};
Baughn = {
email = "sveina@gmail.com";
github = "Baughn";
@@ -3996,6 +4001,11 @@
github = "womfoo";
name = "Kranium Gikos Mendoza";
};
worldofpeace = {
email = "worldofpeace@users.noreply.github.com";
github = "worldofpeace";
name = "Worldofpeace";
};
wscott = {
email = "wsc9tt@gmail.com";
github = "wscott";
8 changes: 4 additions & 4 deletions nixos/modules/config/zram.nix
Original file line number Diff line number Diff line change
@@ -25,16 +25,16 @@ in
type = types.bool;
description = ''
Enable in-memory compressed swap space provided by the zram kernel
module. It is recommended to enable only for kernel 3.14 or higher.
module.
See https://www.kernel.org/doc/Documentation/blockdev/zram.txt
'';
};

numDevices = mkOption {
default = 4;
default = 1;
type = types.int;
description = ''
Number of zram swap devices to create. It should be equal to the
number of CPU cores your system has.
Number of zram swap devices to create.
'';
};

2 changes: 1 addition & 1 deletion nixos/modules/installer/cd-dvd/iso-image.nix
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ let
INITRD /boot/${config.system.boot.loader.initrdFile}
# A variant to boot with verbose logging to the console
LABEL boot-nomodeset
LABEL boot-debug
MENU LABEL NixOS ${config.system.nixos.label}${config.isoImage.appendToMenuLabel} (debug)
LINUX /boot/${config.system.boot.loader.kernelFile}
APPEND init=${config.system.build.toplevel}/init ${toString config.boot.kernelParams} loglevel=7
43 changes: 31 additions & 12 deletions nixos/modules/misc/documentation.nix
Original file line number Diff line number Diff line change
@@ -16,7 +16,10 @@ let cfg = config.documentation; in
description = ''
Whether to install documentation of packages from
<option>environment.systemPackages</option> into the generated system path.
See "Multiple-output packages" chapter in the nixpkgs manual for more info.
'';
# which is at ../../../doc/multiple-output.xml
};

man.enable = mkOption {
@@ -28,6 +31,15 @@ let cfg = config.documentation; in
'';
};

info.enable = mkOption {
type = types.bool;
default = true;
description = ''
Whether to install info pages and the <command>info</command> command.
This also includes "info" outputs.
'';
};

doc.enable = mkOption {
type = types.bool;
default = true;
@@ -38,12 +50,19 @@ let cfg = config.documentation; in
'';
};

info.enable = mkOption {
dev.enable = mkOption {
type = types.bool;
default = true;
default = false;
description = ''
Whether to install info pages and the <command>info</command> command.
This also includes "info" outputs.
Whether to install documentation targeted at developers.
<itemizedlist>
<listitem><para>This includes man pages targeted at developers if <option>man.enable</option> is
set (this also includes "devman" outputs).</para></listitem>
<listitem><para>This includes info pages targeted at developers if <option>info.enable</option>
is set (this also includes "devinfo" outputs).</para></listitem>
<listitem><para>This includes other pages targeted at developers if <option>doc.enable</option>
is set (this also includes "devdoc" outputs).</para></listitem>
</itemizedlist>
'';
};

@@ -56,20 +75,20 @@ let cfg = config.documentation; in
(mkIf cfg.man.enable {
environment.systemPackages = [ pkgs.man-db ];
environment.pathsToLink = [ "/share/man" ];
environment.extraOutputsToInstall = [ "man" ];
environment.extraOutputsToInstall = [ "man" ] ++ optional cfg.dev.enable [ "devman" ];
})

(mkIf cfg.info.enable {
environment.systemPackages = [ pkgs.texinfoInteractive ];
environment.pathsToLink = [ "/share/info" ];
environment.extraOutputsToInstall = [ "info" ] ++ optional cfg.dev.enable [ "devinfo" ];
})

(mkIf cfg.doc.enable {
# TODO(@oxij): put it here and remove from profiles?
# environment.systemPackages = [ pkgs.w3m ]; # w3m-nox?
environment.pathsToLink = [ "/share/doc" ];
environment.extraOutputsToInstall = [ "doc" ];
})

(mkIf cfg.info.enable {
environment.systemPackages = [ pkgs.texinfoInteractive ];
environment.pathsToLink = [ "/share/info" ];
environment.extraOutputsToInstall = [ "info" ];
environment.extraOutputsToInstall = [ "doc" ] ++ optional cfg.dev.enable [ "devdoc" ];
})

]);
15 changes: 0 additions & 15 deletions nixos/modules/misc/version.nix
Original file line number Diff line number Diff line change
@@ -16,21 +16,6 @@ in

options.system = {

# XXX: Reintroduce old options to make nixops before 1.6 able to evaluate configurations
# XXX: Remove after nixops has been bumped to a compatible version
nixosVersion = mkOption {
readOnly = true;
internal = true;
type = types.str;
default = config.system.nixos.version;
};
nixosVersionSuffix = mkOption {
readOnly = true;
internal = true;
type = types.str;
default = config.system.nixos.versionSuffix;
};

nixos.version = mkOption {
internal = true;
type = types.str;
20 changes: 9 additions & 11 deletions nixos/modules/rename.nix
Original file line number Diff line number Diff line change
@@ -189,22 +189,20 @@ with lib;
(mkRenamedOptionModule [ "services" "xserver" "desktopManager" "kde5" ] [ "services" "xserver" "desktopManager" "plasma5" ])

# Fontconfig
(mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "allowBitmaps" ] [ "config" "fonts" "fontconfig" "allowBitmaps" ])
(mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "allowType1" ] [ "config" "fonts" "fontconfig" "allowType1" ])
(mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "useEmbeddedBitmaps" ] [ "config" "fonts" "fontconfig" "useEmbeddedBitmaps" ])
(mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "forceAutohint" ] [ "config" "fonts" "fontconfig" "forceAutohint" ])
(mkRenamedOptionModule [ "config" "fonts" "fontconfig" "ultimate" "renderMonoTTFAsBitmap" ] [ "config" "fonts" "fontconfig" "renderMonoTTFAsBitmap" ])
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "allowBitmaps" ] [ "fonts" "fontconfig" "allowBitmaps" ])
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "allowType1" ] [ "fonts" "fontconfig" "allowType1" ])
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "useEmbeddedBitmaps" ] [ "fonts" "fontconfig" "useEmbeddedBitmaps" ])
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "forceAutohint" ] [ "fonts" "fontconfig" "forceAutohint" ])
(mkRenamedOptionModule [ "fonts" "fontconfig" "ultimate" "renderMonoTTFAsBitmap" ] [ "fonts" "fontconfig" "renderMonoTTFAsBitmap" ])

# Profile splitting
(mkRenamedOptionModule [ "virtualization" "growPartition" ] [ "boot" "growPartition" ])

# misc/version.nix
#(mkRenamedOptionModule [ "config" "system" "nixosVersion" ] [ "config" "system" "nixos" "version" ])
(mkRenamedOptionModule [ "config" "system" "nixosRelease" ] [ "config" "system" "nixos" "release" ])
#(mkRenamedOptionModule [ "config" "system" "nixosVersionSuffix" ] [ "config" "system" "nixos" "versionSuffix" ])
(mkRenamedOptionModule [ "config" "system" "nixosRevision" ] [ "config" "system" "nixos" "revision" ])
(mkRenamedOptionModule [ "config" "system" "nixosCodeName" ] [ "config" "system" "nixos" "codeName" ])
(mkRenamedOptionModule [ "config" "system" "nixosLabel" ] [ "config" "system" "nixos" "label" ])
(mkRenamedOptionModule [ "system" "nixosVersion" ] [ "system" "nixos" "version" ])
(mkRenamedOptionModule [ "system" "nixosVersionSuffix" ] [ "system" "nixos" "versionSuffix" ])
(mkRenamedOptionModule [ "system" "nixosRevision" ] [ "system" "nixos" "revision" ])
(mkRenamedOptionModule [ "system" "nixosLabel" ] [ "system" "nixos" "label" ])

# Users
(mkAliasOptionModule [ "users" "extraUsers" ] [ "users" "users" ])
11 changes: 9 additions & 2 deletions nixos/modules/services/hardware/trezord.nix
Original file line number Diff line number Diff line change
@@ -26,8 +26,15 @@ in {
name = "trezord-udev-rules";
destination = "/etc/udev/rules.d/51-trezor.rules";
text = ''
SUBSYSTEM=="usb", ATTR{idVendor}=="534c", ATTR{idProduct}=="0001", MODE="0666", GROUP="dialout", SYMLINK+="trezor%n"
KERNEL=="hidraw*", ATTRS{idVendor}=="534c", ATTRS{idProduct}=="0001", MODE="0666", GROUP="dialout"
# Trezor 1
SUBSYSTEM=="usb", ATTR{idVendor}=="534c", ATTR{idProduct}=="0001", MODE="0666", GROUP="dialout", SYMLINK+="trezor%n"
KERNEL=="hidraw*", ATTRS{idVendor}=="534c", ATTRS{idProduct}=="0001", MODE="0666", GROUP="dialout"
# Trezor 2 (Model-T)
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="53c0", MODE="0661", GROUP="dialout", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="trezor%n"
SUBSYSTEM=="usb", ATTR{idVendor}=="1209", ATTR{idProduct}=="53c1", MODE="0660", GROUP="dialout", TAG+="uaccess", TAG+="udev-acl", SYMLINK+="trezor%n"
KERNEL=="hidraw*", ATTRS{idVendor}=="1209", ATTRS{idProduct}=="53c1", MODE="0660", GROUP="dialout", TAG+="uaccess", TAG+="udev-acl"
];
'';
});

101 changes: 51 additions & 50 deletions nixos/modules/services/networking/wireguard.nix
Original file line number Diff line number Diff line change
@@ -53,30 +53,30 @@ let
};

preSetup = mkOption {
example = literalExample [''
example = literalExample ''
${pkgs.iproute}/bin/ip netns add foo
''];
default = [];
type = with types; listOf str;
'';
default = "";
type = with types; coercedTo (listOf str) (concatStringsSep "\n") lines;
description = ''
A list of commands called at the start of the interface setup.
Commands called at the start of the interface setup.
'';
};

postSetup = mkOption {
example = literalExample [''
${pkgs.bash} -c 'printf "nameserver 10.200.100.1" | ${pkgs.openresolv}/bin/resolvconf -a wg0 -m 0'
''];
default = [];
type = with types; listOf str;
description = "A list of commands called at the end of the interface setup.";
example = literalExample ''
printf "nameserver 10.200.100.1" | ${pkgs.openresolv}/bin/resolvconf -a wg0 -m 0
'';
default = "";
type = with types; coercedTo (listOf str) (concatStringsSep "\n") lines;
description = "Commands called at the end of the interface setup.";
};

postShutdown = mkOption {
example = literalExample ["${pkgs.openresolv}/bin/resolvconf -d wg0"];
default = [];
type = with types; listOf str;
description = "A list of commands called after shutting down the interface.";
example = literalExample "${pkgs.openresolv}/bin/resolvconf -d wg0";
default = "";
type = with types; coercedTo (listOf str) (concatStringsSep "\n") lines;
description = "Commands called after shutting down the interface.";
};

table = mkOption {
@@ -182,9 +182,6 @@ let

};

ipCommand = "${pkgs.iproute}/bin/ip";
wgCommand = "${pkgs.wireguard}/bin/wg";

generateUnit = name: values:
# exactly one way to specify the private key must be set
assert (values.privateKey != null) != (values.privateKeyFile != null);
@@ -196,49 +193,53 @@ let
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
environment.DEVICE = name;
path = with pkgs; [ kmod iproute wireguard ];

serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
ExecStart = flatten([
values.preSetup
};

script = ''
modprobe wireguard
${values.preSetup}
"-${ipCommand} link del dev ${name}"
"${ipCommand} link add dev ${name} type wireguard"
ip link add dev ${name} type wireguard
(map (ip:
"${ipCommand} address add ${ip} dev ${name}"
) values.ips)
${concatMapStringsSep "\n" (ip:
"ip address add ${ip} dev ${name}"
) values.ips}
("${wgCommand} set ${name} private-key ${privKey}" +
optionalString (values.listenPort != null) " listen-port ${toString values.listenPort}")
wg set ${name} private-key ${privKey} ${
optionalString (values.listenPort != null) " listen-port ${toString values.listenPort}"}
(map (peer:
${concatMapStringsSep "\n" (peer:
assert (peer.presharedKeyFile == null) || (peer.presharedKey == null); # at most one of the two must be set
let psk = if peer.presharedKey != null then pkgs.writeText "wg-psk" peer.presharedKey else peer.presharedKeyFile;
in
"${wgCommand} set ${name} peer ${peer.publicKey}" +
optionalString (psk != null) " preshared-key ${psk}" +
optionalString (peer.endpoint != null) " endpoint ${peer.endpoint}" +
optionalString (peer.persistentKeepalive != null) " persistent-keepalive ${toString peer.persistentKeepalive}" +
optionalString (peer.allowedIPs != []) " allowed-ips ${concatStringsSep "," peer.allowedIPs}"
) values.peers)

"${ipCommand} link set up dev ${name}"

(optionals (values.allowedIPsAsRoutes != false) (map (peer:
(map (allowedIP:
"${ipCommand} route replace ${allowedIP} dev ${name} table ${values.table}"
) peer.allowedIPs)
) values.peers))

values.postSetup
]);
ExecStop = flatten([
"${ipCommand} link del dev ${name}"
values.postShutdown
]);
};
"wg set ${name} peer ${peer.publicKey}" +
optionalString (psk != null) " preshared-key ${psk}" +
optionalString (peer.endpoint != null) " endpoint ${peer.endpoint}" +
optionalString (peer.persistentKeepalive != null) " persistent-keepalive ${toString peer.persistentKeepalive}" +
optionalString (peer.allowedIPs != []) " allowed-ips ${concatStringsSep "," peer.allowedIPs}"
) values.peers}
ip link set up dev ${name}
${optionalString (values.allowedIPsAsRoutes != false) (concatStringsSep "\n" (concatMap (peer:
(map (allowedIP:
"ip route replace ${allowedIP} dev ${name} table ${values.table}"
) peer.allowedIPs)
) values.peers))}
${values.postSetup}
'';

preStop = ''
ip link del dev ${name}
${values.postShutdown}
'';
};

in
4 changes: 4 additions & 0 deletions nixos/modules/system/boot/loader/raspberrypi/builder.sh
Original file line number Diff line number Diff line change
@@ -109,11 +109,15 @@ copyForced $fwdir/bootcode.bin /boot/bootcode.bin
copyForced $fwdir/fixup.dat /boot/fixup.dat
copyForced $fwdir/fixup_cd.dat /boot/fixup_cd.dat
copyForced $fwdir/fixup_db.dat /boot/fixup_db.dat
copyForced $fwdir/fixup_x.dat /boot/fixup_x.dat
copyForced $fwdir/start.elf /boot/start.elf
copyForced $fwdir/start_cd.elf /boot/start_cd.elf
copyForced $fwdir/start_db.elf /boot/start_db.elf
copyForced $fwdir/start_x.elf /boot/start_x.elf

# Add the config.txt
copyForced @configTxt@ /boot/config.txt

# Remove obsolete files from /boot and /boot/old.
for fn in /boot/old/*linux* /boot/old/*initrd-initrd* /boot/bcm*.dtb; do
if ! test "${filesCopied[$fn]}" = 1; then
Loading