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: 0260f04fe257
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: aca0bbe791c2
Choose a head ref

Commits on Jun 15, 2020

  1. kmail: add missing dependency (kdepim-addons)

    The `kdepim-addons` dependency is needed in KMail to add many of the
    standard plug-ins, including the "External Editor" plug-in.
    pjones committed Jun 15, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    dc4fb8b View commit details

Commits on Jun 16, 2020

  1. birdtray: fix qttranslations path

    birdtray crashes not finding the translations without this fix
    ymarkus committed Jun 16, 2020

    Verified

    This commit was signed with the committer’s verified signature.
    primeos Michael Weiss
    Copy the full SHA
    fd474c0 View commit details

Commits on Jun 17, 2020

  1. faad2: 2.8.8 -> 2.9.2

    - change upstream to GitHub
    - use autoreconfHook
    
    Fixes: https://nvd.nist.gov/vuln/detail/CVE-2019-6956
    Changelog: https://github.com/knik0/faad2/blob/2_9_2/ChangeLog
    mmilata committed Jun 17, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    3068eb8 View commit details

Commits on Jun 19, 2020

  1. sqlite: 3.32.2 -> 3.32.3

    Luflosi committed Jun 19, 2020
    Copy the full SHA
    5693ae4 View commit details
  2. Copy the full SHA
    263ee09 View commit details

Commits on Jun 20, 2020

  1. Merge staging-next into staging

    FRidh committed Jun 20, 2020
    Copy the full SHA
    1ce06d2 View commit details
  2. Copy the full SHA
    5afd967 View commit details
  3. Copy the full SHA
    bf96533 View commit details
  4. Merge pull request #91156 from primeos/cross-compilation-fixes

    efibootmgr,openldap: Cross compilation fixes
    primeos authored Jun 20, 2020
    Copy the full SHA
    ae3d755 View commit details
  5. Copy the full SHA
    e09a802 View commit details
  6. [cpan2nix] perlPackages.BCOW: 0.002 -> 0.004

    volth committed Jun 20, 2020
    Copy the full SHA
    b6fc3ce View commit details
  7. Copy the full SHA
    2dbf128 View commit details
  8. Copy the full SHA
    9b5f310 View commit details
  9. Copy the full SHA
    4e90248 View commit details
  10. Copy the full SHA
    ef59078 View commit details
  11. Copy the full SHA
    25465a2 View commit details
  12. Copy the full SHA
    6679ba3 View commit details
  13. Copy the full SHA
    6824f1b View commit details
  14. [cpan2nix] perlPackages.CryptECB: 2.21 -> 2.22

    volth committed Jun 20, 2020
    Copy the full SHA
    c982c12 View commit details
  15. [cpan2nix] perlPackages.CryptX: 0.066 -> 0.068

    volth committed Jun 20, 2020
    Copy the full SHA
    a902ff9 View commit details
  16. [cpan2nix] perlPackages.DBI: 1.642 -> 1.643

    volth committed Jun 20, 2020
    Copy the full SHA
    12ebbef View commit details
  17. Copy the full SHA
    ebeaeb6 View commit details
  18. Copy the full SHA
    3c75b33 View commit details
  19. Copy the full SHA
    0d4df48 View commit details
  20. Copy the full SHA
    ff30a6e View commit details
  21. [cpan2nix] perlPackages.Encode: 3.02 -> 3.06

    volth committed Jun 20, 2020
    Copy the full SHA
    47cc3e9 View commit details
  22. Copy the full SHA
    d7e133a View commit details
  23. Copy the full SHA
    57575a6 View commit details
  24. [cpan2nix] perlPackages.GitAutofixup: cleanup

    volth committed Jun 20, 2020
    Copy the full SHA
    38a79f1 View commit details
  25. Copy the full SHA
    eb6e241 View commit details
  26. [cpan2nix] perlPackages.Imager: 1.011 -> 1.012

    volth committed Jun 20, 2020
    Copy the full SHA
    8c81ef0 View commit details
  27. Copy the full SHA
    f67b695 View commit details
  28. [cpan2nix] perlPackages.MCE: 1.865 -> 1.872

    volth committed Jun 20, 2020
    Copy the full SHA
    4a4de14 View commit details
  29. Copy the full SHA
    88eb0a9 View commit details
  30. Copy the full SHA
    b441458 View commit details
  31. Copy the full SHA
    009e63f View commit details
  32. [cpan2nix] perlPackages.NetIPLite: cleanup

    volth committed Jun 20, 2020
    Copy the full SHA
    9d5aeda View commit details
  33. Copy the full SHA
    a311422 View commit details
  34. [cpan2nix] perlPackages.NetPing: 2.72 -> 2.73

    volth committed Jun 20, 2020
    Copy the full SHA
    e75bac6 View commit details
  35. [cpan2nix] perlPackages.Parent: 0.237 -> 0.238

    volth committed Jun 20, 2020
    Copy the full SHA
    3badb3e View commit details
  36. [cpan2nix] perlPackages.ParseYapp: cleanup

    volth committed Jun 20, 2020
    Copy the full SHA
    1c5543a View commit details
  37. Copy the full SHA
    cd43c30 View commit details
  38. Copy the full SHA
    0cfa1d6 View commit details
  39. Copy the full SHA
    540530d View commit details
  40. Copy the full SHA
    8aee137 View commit details
  41. [cpan2nix] perlPackages.SysMmap: 0.19 -> 0.20

    volth committed Jun 20, 2020
    Copy the full SHA
    80e10ed View commit details
  42. Copy the full SHA
    1ed5c63 View commit details
  43. Copy the full SHA
    4b0c040 View commit details
  44. Copy the full SHA
    7be74ab View commit details
  45. [cpan2nix] perlPackages.Testutf8: 1.01 -> 1.02

    volth committed Jun 20, 2020
    Copy the full SHA
    d65afc1 View commit details
Showing with 2,987 additions and 1,933 deletions.
  1. +3 −0 doc/stdenv/stdenv.xml
  2. +6 −0 maintainers/maintainer-list.nix
  3. +6 −0 nixos/doc/manual/release-notes/rl-2009.xml
  4. +55 −0 nixos/modules/config/update-users-groups.pl
  5. +2 −22 nixos/modules/config/users-groups.nix
  6. +10 −1 nixos/modules/services/continuous-integration/buildbot/worker.nix
  7. +9 −29 nixos/modules/virtualisation/containers.nix
  8. +0 −3 nixos/tests/podman.nix
  9. +3 −3 pkgs/applications/audio/gnome-podcasts/default.nix
  10. +70 −0 pkgs/applications/audio/mellowplayer/default.nix
  11. +3 −3 pkgs/applications/blockchains/go-ethereum.nix
  12. +2 −2 pkgs/applications/graphics/ImageMagick/7.0.nix
  13. +0 −2 pkgs/applications/graphics/darktable/default.nix
  14. +2 −2 pkgs/applications/graphics/gscan2pdf/default.nix
  15. +28 −0 pkgs/applications/kde/bovo.nix
  16. +2 −0 pkgs/applications/kde/default.nix
  17. +2 −1 pkgs/applications/kde/kmail.nix
  18. +25 −0 pkgs/applications/kde/picmi.nix
  19. +11 −0 pkgs/applications/misc/birdtray/default.nix
  20. +13 −0 pkgs/applications/misc/birdtray/fix-qttranslations-path.diff
  21. +2 −2 pkgs/applications/misc/urlscan/default.nix
  22. +3 −3 pkgs/applications/misc/wtf/default.nix
  23. +1 −1 pkgs/applications/networking/browsers/firefox/common.nix
  24. +0 −19 pkgs/applications/networking/browsers/firefox/packages.nix
  25. +2 −2 pkgs/applications/networking/cluster/docker-machine/hyperkit.nix
  26. +2 −2 pkgs/applications/networking/cluster/docker-machine/kvm2.nix
  27. +5 −8 pkgs/applications/networking/cluster/minikube/default.nix
  28. +1 −1 pkgs/applications/networking/mailreaders/thunderbird/default.nix
  29. +0 −3 pkgs/applications/networking/p2p/transmission/default.nix
  30. +3 −3 pkgs/applications/science/molecular-dynamics/gromacs/default.nix
  31. +3 −3 pkgs/applications/version-management/gerrit/default.nix
  32. +3 −3 pkgs/applications/version-management/git-and-tools/delta/default.nix
  33. +6 −1 pkgs/applications/video/vdr/default.nix
  34. +15 −0 pkgs/applications/video/vdr/glibc2.31-compat.patch
  35. +45 −41 pkgs/build-support/bintools-wrapper/default.nix
  36. +8 −0 pkgs/build-support/cc-wrapper/add-flags.sh
  37. +1 −1 pkgs/build-support/cc-wrapper/cc-wrapper.sh
  38. +108 −62 pkgs/build-support/cc-wrapper/default.nix
  39. +1 −1 pkgs/build-support/rust/default.nix
  40. +1 −1 pkgs/build-support/setup-hooks/auto-patchelf.sh
  41. +1 −1 pkgs/build-support/setup-hooks/multiple-outputs.sh
  42. +2 −2 pkgs/data/fonts/jetbrains-mono/default.nix
  43. +2 −2 pkgs/desktops/gnome-3/extensions/dash-to-panel/default.nix
  44. +159 −159 pkgs/development/compilers/adoptopenjdk-bin/sources.json
  45. +3 −1 pkgs/development/compilers/emscripten/fastcomp/emscripten-fastcomp.nix
  46. +1 −0 pkgs/development/compilers/gcc/4.9/default.nix
  47. +24 −0 pkgs/development/compilers/gcc/4.9/libsanitizer.patch
  48. +62 −0 pkgs/development/compilers/gcc/6/0001-Fix-build-for-glibc-2.31.patch
  49. +1 −1 pkgs/development/compilers/gcc/6/default.nix
  50. +62 −0 pkgs/development/compilers/gcc/7/0001-Fix-build-for-glibc-2.31.patch
  51. +2 −0 pkgs/development/compilers/gcc/7/default.nix
  52. +0 −4 pkgs/development/compilers/gcc/libstdc++-hook.sh
  53. +3 −0 pkgs/development/compilers/go/1.13.nix
  54. +3 −0 pkgs/development/compilers/go/1.14.nix
  55. +3 −14 pkgs/development/compilers/llvm/10/default.nix
  56. +3 −6 pkgs/development/compilers/llvm/10/libc++/default.nix
  57. +0 −6 pkgs/development/compilers/llvm/10/libc++/setup-hook.sh
  58. +1 −0 pkgs/development/compilers/llvm/5/compiler-rt.nix
  59. +3 −11 pkgs/development/compilers/llvm/5/default.nix
  60. +3 −6 pkgs/development/compilers/llvm/5/libc++/default.nix
  61. +0 −6 pkgs/development/compilers/llvm/5/libc++/setup-hook.sh
  62. +1 −0 pkgs/development/compilers/llvm/6/compiler-rt.nix
  63. +3 −11 pkgs/development/compilers/llvm/6/default.nix
  64. +3 −6 pkgs/development/compilers/llvm/6/libc++/default.nix
  65. +0 −6 pkgs/development/compilers/llvm/6/libc++/setup-hook.sh
  66. +48 −0 pkgs/development/compilers/llvm/7/compiler-rt-glibc.patch
  67. +3 −0 pkgs/development/compilers/llvm/7/compiler-rt.nix
  68. +48 −20 pkgs/development/compilers/llvm/7/default.nix
  69. +3 −6 pkgs/development/compilers/llvm/7/libc++/default.nix
  70. +0 −6 pkgs/development/compilers/llvm/7/libc++/setup-hook.sh
  71. +1 −0 pkgs/development/compilers/llvm/8/compiler-rt.nix
  72. +3 −16 pkgs/development/compilers/llvm/8/default.nix
  73. +3 −6 pkgs/development/compilers/llvm/8/libc++/default.nix
  74. +0 −6 pkgs/development/compilers/llvm/8/libc++/setup-hook.sh
  75. +1 −0 pkgs/development/compilers/llvm/9/compiler-rt.nix
  76. +3 −16 pkgs/development/compilers/llvm/9/default.nix
  77. +3 −6 pkgs/development/compilers/llvm/9/libc++/default.nix
  78. +0 −6 pkgs/development/compilers/llvm/9/libc++/setup-hook.sh
  79. +2 −0 pkgs/development/compilers/mono/generic.nix
  80. +1 −1 pkgs/development/compilers/nextpnr/default.nix
  81. +0 −52 pkgs/development/compilers/rust/0001-Allow-getting-no_std-from-the-config-file.patch
  82. +0 −44 pkgs/development/compilers/rust/1_42.nix
  83. +11 −11 pkgs/development/compilers/rust/{1_43.nix → 1_44.nix}
  84. +5 −0 pkgs/development/compilers/rust/cargo.nix
  85. +4 −1 pkgs/development/compilers/swift/default.nix
  86. +48 −0 pkgs/development/compilers/swift/patches/swift-llvm.patch
  87. +1 −1 pkgs/development/go-modules/generic/default.nix
  88. +33 −0 ...t/interpreters/python/cpython/3.8/0001-On-all-posix-systems-not-just-Darwin-set-LDSHARED-if.patch
  89. +3 −0 pkgs/development/interpreters/python/cpython/default.nix
  90. +3 −1 pkgs/development/interpreters/python/hooks/pip-install-hook.sh
  91. +6 −1 pkgs/development/libraries/SDL2/default.nix
  92. +12 −2 pkgs/development/libraries/avahi/default.nix
  93. +2 −2 pkgs/development/libraries/c-blosc/default.nix
  94. +2 −2 pkgs/development/libraries/check/default.nix
  95. +9 −29 pkgs/development/libraries/faad2/default.nix
  96. +5 −0 pkgs/development/libraries/farstream/default.nix
  97. +0 −18 pkgs/development/libraries/glibc/2.27-CVE-2019-19126.patch
  98. +79 −0 pkgs/development/libraries/glibc/2.31-cve-2020-10029.patch
  99. +3 −3 pkgs/development/libraries/glibc/common.nix
  100. +2 −0 pkgs/development/libraries/gstreamer/legacy/gst-plugins-base/default.nix
  101. +19 −13 pkgs/development/libraries/gtk-sharp/3.0.nix
  102. +46 −0 pkgs/development/libraries/jabcode/default.nix
  103. +2 −2 pkgs/development/libraries/leatherman/default.nix
  104. +3 −1 pkgs/development/libraries/libpcap/default.nix
  105. +2 −2 pkgs/development/libraries/librealsense/default.nix
  106. +2 −15 pkgs/development/libraries/libva/default.nix
  107. +1 −1 pkgs/development/libraries/{libva-utils/default.nix → libva/utils.nix}
  108. +2 −2 pkgs/development/libraries/opencl-headers/default.nix
  109. +4 −3 pkgs/development/libraries/openldap/default.nix
  110. +28 −0 pkgs/development/libraries/pc-ble-driver/default.nix
  111. +3 −2 pkgs/development/libraries/qt-4.x/4.8/default.nix
  112. +2 −2 pkgs/development/libraries/sqlite/analyzer.nix
  113. +2 −2 pkgs/development/libraries/sqlite/default.nix
  114. +2 −2 pkgs/development/libraries/wxwidgets/3.0/default.nix
  115. +2 −2 pkgs/development/libraries/wxwidgets/3.1/default.nix
  116. +2 −1 pkgs/development/libraries/xapian/default.nix
  117. +0 −40 pkgs/development/perl-modules/perl-POE-1.367-pod_linkcheck.patch
  118. +0 −46 pkgs/development/perl-modules/perl-POE-1.367-pod_no404s.patch
  119. +21 −19 pkgs/development/perl-modules/xml-parser-0001-HACK-Assumes-Expat-paths-are-good.patch
  120. +1 −1 pkgs/development/python-modules/batinfo/default.nix
  121. +35 −0 pkgs/development/python-modules/biplist/default.nix
  122. +2 −2 pkgs/development/python-modules/bokeh/default.nix
  123. +2 −2 pkgs/development/python-modules/holoviews/default.nix
  124. +2 −2 pkgs/development/python-modules/ipython/default.nix
  125. +2 −2 pkgs/development/python-modules/jupyter_client/default.nix
  126. +2 −2 pkgs/development/python-modules/llvmlite/default.nix
  127. +31 −0 pkgs/development/python-modules/mac_alias/default.nix
  128. +2 −2 pkgs/development/python-modules/mysql-connector/default.nix
  129. +2 −2 pkgs/development/python-modules/nbformat/default.nix
  130. +2 −2 pkgs/development/python-modules/numba/default.nix
  131. +94 −0 pkgs/development/python-modules/numpy/1.16.nix
  132. +2 −2 pkgs/development/python-modules/numpy/default.nix
  133. +4 −5 pkgs/development/python-modules/numpy/numpy-distutils-C++.patch
  134. +30 −0 pkgs/development/python-modules/numpy/numpy-distutils-C++_1.16.patch
  135. +1 −0 pkgs/development/python-modules/ovito/default.nix
  136. +5 −2 pkgs/development/python-modules/pandas/default.nix
  137. +2 −2 pkgs/development/python-modules/panel/default.nix
  138. +10 −30 pkgs/development/python-modules/pc-ble-driver-py/default.nix
  139. +4 −0 pkgs/development/python-modules/pip/default.nix
  140. +13 −0 pkgs/development/python-modules/pip/reproducible.patch
  141. +41 −0 pkgs/development/python-modules/pkutils/default.nix
  142. +36 −0 pkgs/development/python-modules/pygogo/default.nix
  143. +2 −2 pkgs/development/python-modules/pyopencl/default.nix
  144. +2 −2 pkgs/development/python-modules/qtconsole/default.nix
  145. +2 −2 pkgs/development/python-modules/scipy/default.nix
  146. +2 −2 pkgs/development/python-modules/setuptools/default.nix
  147. +7 −0 pkgs/development/python-modules/supervisor/default.nix
  148. +13 −0 pkgs/development/python-modules/supervisor/glibc-2.31.patch
  149. +37 −0 pkgs/development/python-modules/tornado/4.nix
  150. +37 −0 pkgs/development/python-modules/tornado/5.nix
  151. +4 −27 pkgs/development/python-modules/tornado/default.nix
  152. +2 −2 pkgs/development/python-modules/tqdm/default.nix
  153. +6 −2 pkgs/development/python-modules/twine/default.nix
  154. +1 −1 pkgs/development/python-modules/yamllint/default.nix
  155. +59 −0 pkgs/development/tools/build-managers/gnumake/default.nix
  156. +25 −0 pkgs/development/tools/build-managers/gnumake/impure-dirs.patch
  157. +3 −3 pkgs/development/tools/build-managers/mage/default.nix
  158. +3 −2 pkgs/development/tools/misc/elfutils/default.nix
  159. +5 −8 pkgs/development/tools/misc/nrfutil/default.nix
  160. +2 −2 pkgs/development/tools/misc/strace/default.nix
  161. +7 −7 pkgs/development/tools/rust/racer/default.nix
  162. +3 −1 pkgs/development/tools/rust/rustup/default.nix
  163. +4 −4 pkgs/games/chiaki/default.nix
  164. +5 −1 pkgs/misc/cups/drivers/cups-bjnp/default.nix
  165. +0 −3 pkgs/misc/emulators/retroarch/default.nix
  166. +0 −3 pkgs/misc/ghostscript/default.nix
  167. +0 −2 pkgs/misc/vim-plugins/overrides.nix
  168. +71 −0 pkgs/os-specific/linux/busybox/0001-Fix-build-with-glibc-2.31.patch
  169. +1 −0 pkgs/os-specific/linux/busybox/default.nix
  170. +3 −1 pkgs/os-specific/linux/crda/default.nix
  171. +2 −2 pkgs/os-specific/linux/kernel/linux-testing.nix
  172. +2 −2 pkgs/os-specific/linux/util-linux/default.nix
  173. +5 −0 pkgs/servers/pulseaudio/default.nix
  174. +11 −0 pkgs/shells/zsh/oh-my-zsh/default.nix
  175. +5 −4 pkgs/stdenv/darwin/default.nix
  176. +0 −4 pkgs/tools/filesystems/btrfs-progs/default.nix
  177. +2 −2 pkgs/tools/misc/diffoscope/default.nix
  178. +3 −3 pkgs/tools/misc/ffsend/default.nix
  179. +6 −0 pkgs/tools/misc/file/default.nix
  180. +13 −0 pkgs/tools/misc/file/webassembly-format-fix.patch
  181. +2 −2 pkgs/tools/misc/fsmon/default.nix
  182. +38 −0 pkgs/tools/misc/gammy/default.nix
  183. +3 −3 pkgs/tools/misc/kepubify/default.nix
  184. +5 −5 pkgs/tools/misc/lolcat/Gemfile.lock
  185. +6 −6 pkgs/tools/misc/lolcat/gemset.nix
  186. +3 −3 pkgs/tools/networking/bandwhich/default.nix
  187. +2 −2 pkgs/tools/networking/curl/default.nix
  188. +1 −1 pkgs/tools/networking/dsniff/default.nix
  189. +2 −2 pkgs/tools/networking/fping/default.nix
  190. +26 −0 pkgs/tools/networking/oneshot/default.nix
  191. +2 −2 pkgs/tools/networking/p2p/gtk-gnutella/default.nix
  192. +225 −309 pkgs/tools/security/b3sum/add-cargo-lock.patch
  193. +3 −3 pkgs/tools/security/b3sum/default.nix
  194. +10 −5 pkgs/tools/system/datefudge/default.nix
  195. +1 −1 pkgs/tools/system/efibootmgr/default.nix
  196. +1 −29 pkgs/top-level/aliases.nix
  197. +33 −23 pkgs/top-level/all-packages.nix
  198. +625 −494 pkgs/top-level/perl-packages.nix
  199. +22 −13 pkgs/top-level/python-packages.nix
3 changes: 3 additions & 0 deletions doc/stdenv/stdenv.xml
Original file line number Diff line number Diff line change
@@ -2018,6 +2018,9 @@ addEnvHooks "$hostOffset" myBashFunction
<para>
In certain situations you may want to run the main command (<command>autoPatchelf</command>) of the setup hook on a file or a set of directories instead of unconditionally patching all outputs. This can be done by setting the <varname>dontAutoPatchelf</varname> environment variable to a non-empty value.
</para>
<para>
By default <command>autoPatchelf</command> will fail as soon as any ELF file requires a dependency which cannot be resolved via the given build inputs. In some situations you might prefer to just leave missing dependencies unpatched and continue to patch the rest. This can be achieved by setting the <envar>autoPatchelfIgnoreMissingDeps</envar> environment variable to a non-empty value.
</para>
<para>
The <command>autoPatchelf</command> command also recognizes a <parameter class="command">--no-recurse</parameter> command line flag, which prevents it from recursing into subdirectories.
</para>
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
@@ -3959,6 +3959,12 @@
githubId = 4611077;
name = "Raymond Gauthier";
};
jschievink = {
email = "jonasschievink@gmail.com";
github = "jonas-schievink";
githubId = 1786438;
name = "Jonas Schievink";
};
jtcoolen = {
email = "jtcoolen@pm.me";
name = "Julien Coolen";
6 changes: 6 additions & 0 deletions nixos/doc/manual/release-notes/rl-2009.xml
Original file line number Diff line number Diff line change
@@ -124,6 +124,12 @@ systemd.services.mysql.serviceConfig.ReadWritePaths = [ "/var/data" ];
<varname>services.postfix.sslCACert</varname> was replaced by <varname>services.postfix.tlsTrustedAuthorities</varname> which now defaults to system certifcate authorities.
</para>
</listitem>
<listitem>
<para>
Subordinate GID and UID mappings are now set up automatically for all normal users.
This will make container tools like Podman work as non-root users out of the box.
</para>
</listitem>
</itemizedlist>
</section>

55 changes: 55 additions & 0 deletions nixos/modules/config/update-users-groups.pl
Original file line number Diff line number Diff line change
@@ -281,3 +281,58 @@ sub parseUser {
}

updateFile("/etc/shadow", \@shadowNew, 0600);

# Rewrite /etc/subuid & /etc/subgid to include default container mappings

my $subUidMapFile = "/var/lib/nixos/auto-subuid-map";
my $subUidMap = -e $subUidMapFile ? decode_json(read_file($subUidMapFile)) : {};

my (%subUidsUsed, %subUidsPrevUsed);

$subUidsPrevUsed{$_} = 1 foreach values %{$subUidMap};

sub allocSubUid {
my ($name, @rest) = @_;

# TODO: No upper bounds?
my ($min, $max, $up) = (100000, 100000 * 100, 1);
my $prevId = $subUidMap->{$name};
if (defined $prevId && !defined $subUidsUsed{$prevId}) {
$subUidsUsed{$prevId} = 1;
return $prevId;
}

my $id = allocId(\%subUidsUsed, \%subUidsPrevUsed, $min, $max, $up, sub { my ($uid) = @_; getpwuid($uid) });
my $offset = $id - 100000;
my $count = $offset * 65536;
my $subordinate = 100000 + $count;
return $subordinate;
}

my @subGids;
my @subUids;
foreach my $u (values %usersOut) {
my $name = $u->{name};

foreach my $range (@{$u->{subUidRanges}}) {
my $value = join(":", ($name, $range->{startUid}, $range->{count}));
push @subUids, $value;
}

foreach my $range (@{$u->{subGidRanges}}) {
my $value = join(":", ($name, $range->{startGid}, $range->{count}));
push @subGids, $value;
}

if($u->{isNormalUser}) {
my $subordinate = allocSubUid($name);
$subUidMap->{$name} = $subordinate;
my $value = join(":", ($name, $subordinate, 65536));
push @subUids, $value;
push @subGids, $value;
}
}

updateFile("/etc/subuid", join("\n", @subUids) . "\n");
updateFile("/etc/subgid", join("\n", @subGids) . "\n");
updateFile($subUidMapFile, encode_json($subUidMap) . "\n");
24 changes: 2 additions & 22 deletions nixos/modules/config/users-groups.nix
Original file line number Diff line number Diff line change
@@ -375,18 +375,6 @@ let
};
};

mkSubuidEntry = user: concatStrings (
map (range: "${user.name}:${toString range.startUid}:${toString range.count}\n")
user.subUidRanges);

subuidFile = concatStrings (map mkSubuidEntry (attrValues cfg.users));

mkSubgidEntry = user: concatStrings (
map (range: "${user.name}:${toString range.startGid}:${toString range.count}\n")
user.subGidRanges);

subgidFile = concatStrings (map mkSubgidEntry (attrValues cfg.users));

idsAreUnique = set: idAttr: !(fold (name: args@{ dup, acc }:
let
id = builtins.toString (builtins.getAttr idAttr (builtins.getAttr name set));
@@ -406,6 +394,7 @@ let
{ inherit (u)
name uid group description home createHome isSystemUser
password passwordFile hashedPassword
isNormalUser subUidRanges subGidRanges
initialPassword initialHashedPassword;
shell = utils.toShellPath u.shell;
}) cfg.users;
@@ -567,16 +556,7 @@ in {
# Install all the user shells
environment.systemPackages = systemShells;

environment.etc = {
subuid = {
text = subuidFile;
mode = "0644";
};
subgid = {
text = subgidFile;
mode = "0644";
};
} // (mapAttrs' (name: { packages, ... }: {
environment.etc = (mapAttrs' (name: { packages, ... }: {
name = "profiles/per-user/${name}";
value.source = pkgs.buildEnv {
name = "user-environment";
Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@ let
with open('${cfg.workerPassFile}', 'r', encoding='utf-8') as passwd_file:
passwd = passwd_file.read().strip('\r\n')
keepalive = 600
keepalive = ${toString cfg.keepalive}
umask = None
maxdelay = 300
numcpus = None
@@ -116,6 +116,15 @@ in {
description = "Specifies the Buildbot Worker connection string.";
};

keepalive = mkOption {
default = 600;
type = types.int;
description = "
This is a number that indicates how frequently keepalive messages should be sent
from the worker to the buildmaster, expressed in seconds.
";
};

package = mkOption {
type = types.package;
default = pkgs.python3Packages.buildbot-worker;
38 changes: 9 additions & 29 deletions nixos/modules/virtualisation/containers.nix
Original file line number Diff line number Diff line change
@@ -23,6 +23,15 @@ in
maintainers = [] ++ lib.teams.podman.members;
};


imports = [
(
lib.mkRemovedOptionModule
[ "virtualisation" "containers" "users" ]
"All users with `isNormaUser = true` set now get appropriate subuid/subgid mappings."
)
];

options.virtualisation.containers = {

enable =
@@ -99,15 +108,6 @@ in
'';
};

users = mkOption {
default = [];
type = types.listOf types.str;
description = ''
List of users to set up subuid/subgid mappings for.
This is a requirement for running rootless containers.
'';
};

};

config = lib.mkIf cfg.enable {
@@ -122,26 +122,6 @@ in
registries = lib.mapAttrs (n: v: { registries = v; }) cfg.registries;
};

users.extraUsers = builtins.listToAttrs (
(
builtins.foldl' (
acc: user: {
values = acc.values ++ [
{
name = user;
value = {
subUidRanges = [ { startUid = acc.offset; count = 65536; } ];
subGidRanges = [ { startGid = acc.offset; count = 65536; } ];
};
}
];
offset = acc.offset + 65536;
}
)
{ values = []; offset = 100000; } (lib.unique cfg.users)
).values
);

environment.etc."containers/policy.json".source =
if cfg.policy != {} then pkgs.writeText "policy.json" (builtins.toJSON cfg.policy)
else copyFile "${pkgs.skopeo.src}/default-policy.json";
3 changes: 0 additions & 3 deletions nixos/tests/podman.nix
Original file line number Diff line number Diff line change
@@ -12,9 +12,6 @@ import ./make-test-python.nix (
{ pkgs, ... }:
{
virtualisation.podman.enable = true;
virtualisation.containers.users = [
"alice"
];

users.users.alice = {
isNormalUser = true;
6 changes: 3 additions & 3 deletions pkgs/applications/audio/gnome-podcasts/default.nix
Original file line number Diff line number Diff line change
@@ -20,18 +20,18 @@
}:

rustPlatform.buildRustPackage rec {
version = "0.4.7";
version = "0.4.8";
pname = "gnome-podcasts";

src = fetchFromGitLab {
domain = "gitlab.gnome.org";
owner = "World";
repo = "podcasts";
rev = version;
sha256 = "0vy5i77bv8c22ldhrnr4z6kx22zqnb1lg3s7y8673bqjgd7dppi0";
sha256 = "0y2332zjq7vf1v38wzwz98fs19vpzy9kl7y0xbdzqr303l59hjb1";
};

cargoSha256 = "1dlbdxsf9p2jzrsclm43k95y8m3zcd41qd9ajg1ii3fpnahi58kd";
cargoSha256 = "1jbii9k4bkrivdk1ffr6556q1sgk9j4jbzwnn8vbxmksyl1x328q";

nativeBuildInputs = [
meson
70 changes: 70 additions & 0 deletions pkgs/applications/audio/mellowplayer/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
{ cmake
, fetchFromGitLab
, lib
, libnotify
, mkDerivation
, pkgconfig
, qtbase
, qtdeclarative
, qtgraphicaleffects
, qtquickcontrols2
, qttools
, qtwebengine
}:

mkDerivation rec {
pname = "MellowPlayer";
version = "3.6.4";

src = fetchFromGitLab {
owner = "ColinDuquesnoy";
repo = "MellowPlayer";
rev = version;
sha256 = "1ss7s3kal4vzhz7ld0yy2kvp1rk2w3i6fya0z3xd7nff9p31gqvw";
};

nativeBuildInputs = [ cmake pkgconfig ];

buildInputs = [
libnotify
qtbase
qtdeclarative
qtgraphicaleffects
qtquickcontrols2
qttools
qtwebengine
];

doCheck = true;

cmakeFlags = [ "-DBUILD_TESTS=ON" ];

preCheck = ''
# Running the tests requires a location at the home directory for logging.
export HOME="$NIX_BUILD_TOP/home"
mkdir -p "$HOME/.local/share/MellowPlayer.Tests/MellowPlayer.Tests/Logs"
# Without this, the tests fail because they cannot create the QT Window
export QT_QPA_PLATFORM=offscreen
''
# TODO: The tests are failing because it can't locate QT plugins. Is there a better way to do this?
+ (builtins.concatStringsSep "\n" (lib.lists.flatten (builtins.map
(pkg: [
(lib.optionalString (pkg ? qtPluginPrefix) ''
export QT_PLUGIN_PATH="${pkg}/${pkg.qtPluginPrefix}"''${QT_PLUGIN_PATH:+':'}$QT_PLUGIN_PATH
'')

(lib.optionalString (pkg ? qtQmlPrefix) ''
export QML2_IMPORT_PATH="${pkg}/${pkg.qtQmlPrefix}"''${QML2_IMPORT_PATH:+':'}$QML2_IMPORT_PATH
'')
]) buildInputs)));

meta = with lib; {
inherit (qtbase.meta) platforms;

description = "Cloud music integration for your desktop.";
homepage = "https://gitlab.com/ColinDuquesnoy/MellowPlayer";
license = licenses.gpl2;
maintainers = with maintainers; [ kalbasit ];
};
}
6 changes: 3 additions & 3 deletions pkgs/applications/blockchains/go-ethereum.nix
Original file line number Diff line number Diff line change
@@ -2,13 +2,13 @@

buildGoModule rec {
pname = "go-ethereum";
version = "1.9.15";
version = "1.9.16";

src = fetchFromGitHub {
owner = "ethereum";
repo = pname;
rev = "v${version}";
sha256 = "1c69rfnx9130b87pw9lnaxyrbzwfhqb2dxyl7qyiscq85hqs16f9";
sha256 = "0vycnyz6v39cfrck70h3dbn7jkkh67q0fli240ksw2cp4pqwpwcn";
};

usb = fetchFromGitHub {
@@ -18,7 +18,7 @@ buildGoModule rec {
sha256 = "0asd5fz2rhzkjmd8wjgmla5qmqyz4jaa6qf0n2ycia16jsck6wc2";
};

vendorSha256 = "1pjgcx6sydfipsx8s0kl7n6r3lk61klsfrkd7cg4l934k590q2n7";
vendorSha256 = "0w2214fllw93xbrlxayhl014aqbjsc8zz7mpik7w5b26m60hn5kr";

overrideModAttrs = (_: {
postBuild = ''
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/ImageMagick/7.0.nix
Original file line number Diff line number Diff line change
@@ -13,8 +13,8 @@ let
else throw "ImageMagick is not supported on this platform.";

cfg = {
version = "7.0.10-17";
sha256 = "15cj9qkikx13j6gfqaawi4nh09lnzg3asf5mdcswx6z6yhbf90zx";
version = "7.0.10-19";
sha256 = "12ilfdbxllkaa3bs9z86d2nkklqz5c0l57kqj91l2ixjlvra64w0";
patches = [];
};
in
2 changes: 0 additions & 2 deletions pkgs/applications/graphics/darktable/default.nix
Original file line number Diff line number Diff line change
@@ -34,8 +34,6 @@ stdenv.mkDerivation rec {
"-DUSE_KWALLET=OFF"
];

# Reduce the risk of collisions
postInstall = "rm -r $out/share/doc";

# darktable changed its rpath handling in commit
# 83c70b876af6484506901e6b381304ae0d073d3c and as a result the
4 changes: 2 additions & 2 deletions pkgs/applications/graphics/gscan2pdf/default.nix
Original file line number Diff line number Diff line change
@@ -10,11 +10,11 @@ with stdenv.lib;

perlPackages.buildPerlPackage rec {
pname = "gscan2pdf";
version = "2.8.0";
version = "2.8.1";

src = fetchurl {
url = "mirror://sourceforge/gscan2pdf/${version}/${pname}-${version}.tar.xz";
sha256 = "0rqx41hkppil3lp1dhkxwlhv0kwp8w8fkgzlapryq1yd9pgkx6lw";
sha256 = "00g2vw7lz3yb4nq358x8d3r4mf3hkrq2vw1g9lli27zdp5p6jja1";
};

nativeBuildInputs = [ wrapGAppsHook ];
Loading