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: b71fa333282b
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: e283999204ef
Choose a head ref
Loading
Showing with 902 additions and 616 deletions.
  1. +7 −10 doc/stdenv.xml
  2. +1 −1 lib/default.nix
  3. +3 −2 lib/systems/default.nix
  4. +9 −0 lib/systems/doubles.nix
  5. +0 −38 lib/systems/for-meta.nix
  6. +1 −0 lib/systems/inspect.nix
  7. +5 −5 lib/tests/systems.nix
  8. +44 −41 maintainers/scripts/luarocks-packages.csv
  9. +17 −17 maintainers/scripts/update-luarocks-packages
  10. +19 −6 maintainers/scripts/update.nix
  11. +13 −0 nixos/modules/services/desktops/geoclue2.nix
  12. +7 −1 nixos/modules/services/system/localtime.nix
  13. +143 −9 nixos/modules/services/torrent/deluge.nix
  14. +7 −1 nixos/modules/services/x11/redshift.nix
  15. +1 −0 nixos/modules/system/boot/loader/grub/grub.nix
  16. +40 −9 nixos/tests/deluge.nix
  17. +44 −0 pkgs/applications/altcoins/wasabiwallet/default.nix
  18. +2 −2 pkgs/applications/audio/qjackctl/default.nix
  19. +2 −2 pkgs/applications/audio/reaper/default.nix
  20. +2 −2 pkgs/applications/misc/calibre/default.nix
  21. +2 −2 pkgs/applications/misc/lutris/default.nix
  22. +2 −2 pkgs/applications/networking/browsers/opera/default.nix
  23. +1 −1 pkgs/applications/networking/browsers/tor-browser-bundle/default.nix
  24. +2 −2 pkgs/applications/networking/cluster/kubernetes/default.nix
  25. +1 −1 pkgs/applications/networking/dropbox/default.nix
  26. +2 −2 pkgs/applications/networking/instant-messengers/skypeforlinux/default.nix
  27. +4 −4 pkgs/applications/networking/instant-messengers/telegram/tdesktop/default.nix
  28. +7 −3 pkgs/applications/networking/instant-messengers/telegram/tdesktop/generic.nix
  29. +6 −6 pkgs/applications/radio/urh/default.nix
  30. +3 −3 pkgs/applications/science/astronomy/gildas/default.nix
  31. +2 −2 pkgs/applications/science/biology/picard-tools/default.nix
  32. +2 −2 pkgs/applications/science/chemistry/quantum-espresso/default.nix
  33. +2 −2 pkgs/applications/science/electronics/gtkwave/default.nix
  34. +2 −2 pkgs/applications/version-management/git-repo/default.nix
  35. +13 −12 pkgs/applications/window-managers/sway/default.nix
  36. +12 −2 pkgs/build-support/kernel/make-initrd.nix
  37. +9 −13 pkgs/common-updater/scripts/update-source-version
  38. +2 −2 pkgs/data/fonts/public-sans/default.nix
  39. +2 −2 pkgs/desktops/gnome-3/update.nix
  40. +0 −5 pkgs/development/compilers/julia/shared.nix
  41. +28 −0 pkgs/development/libraries/croaring/default.nix
  42. +1 −0 pkgs/development/libraries/geoclue/default.nix
  43. +2 −2 pkgs/development/libraries/libebml/default.nix
  44. +3 −5 pkgs/development/libraries/wlroots/default.nix
  45. +145 −116 pkgs/development/lua-modules/generated-packages.nix
  46. +6 −4 pkgs/development/ocaml-modules/alcotest/default.nix
  47. +27 −0 pkgs/development/python-modules/flask-swagger/default.nix
  48. +15 −15 pkgs/development/python-modules/packet-python/default.nix
  49. +3 −2 pkgs/development/tools/build-managers/qbs/default.nix
  50. +22 −0 pkgs/development/tools/git-repo-updater/default.nix
  51. +2 −2 pkgs/development/tools/ktlint/default.nix
  52. +2 −2 pkgs/development/tools/misc/luarocks/luarocks-nix.nix
  53. +2 −2 pkgs/development/web/nodejs/v12.nix
  54. +2 −2 pkgs/development/web/now-cli/default.nix
  55. +2 −2 pkgs/games/klavaro/default.nix
  56. +2 −2 pkgs/os-specific/linux/irqbalance/default.nix
  57. +3 −10 pkgs/os-specific/linux/trinity/default.nix
  58. +2 −5 pkgs/servers/http/unit/default.nix
  59. +0 −24 pkgs/servers/http/unit/unit-rootless.patch
  60. +2 −2 pkgs/servers/mail/rspamd/default.nix
  61. +2 −2 pkgs/servers/sabnzbd/default.nix
  62. +3 −3 pkgs/servers/sql/cockroachdb/default.nix
  63. +16 −0 pkgs/servers/sql/mariadb/cmake-plugin-includedir.patch
  64. +66 −71 pkgs/servers/sql/mariadb/default.nix
  65. +0 −13 pkgs/servers/sql/mariadb/include-dirs-path.patch
  66. +3 −3 pkgs/servers/x11/xorg/default.nix
  67. +1 −1 pkgs/servers/x11/xorg/tarballs.list
  68. +5 −8 pkgs/stdenv/generic/check-meta.nix
  69. +27 −0 pkgs/tools/bootloaders/refind/0001-toolchain.patch
  70. +7 −1 pkgs/tools/bootloaders/refind/default.nix
  71. +3 −3 pkgs/tools/graphics/wallutils/default.nix
  72. +3 −3 pkgs/tools/misc/jdupes/default.nix
  73. +2 −0 pkgs/tools/misc/kronometer/default.nix
  74. +4 −2 pkgs/tools/misc/websocat/default.nix
  75. +2 −2 pkgs/tools/networking/brook/default.nix
  76. +12 −66 pkgs/tools/networking/brook/deps.nix
  77. +2 −2 pkgs/tools/networking/network-manager/applet.nix
  78. +2 −2 pkgs/tools/security/keybase/default.nix
  79. +3 −3 pkgs/tools/security/keybase/gui.nix
  80. +2 −2 pkgs/tools/system/rsyslog/default.nix
  81. +2 −2 pkgs/tools/text/vale/default.nix
  82. +2 −2 pkgs/tools/virtualization/amazon-ecs-cli/default.nix
  83. +10 −6 pkgs/top-level/all-packages.nix
  84. +2 −2 pkgs/top-level/default.nix
  85. +3 −2 pkgs/top-level/impure.nix
  86. +2 −0 pkgs/top-level/python-packages.nix
  87. +2 −2 pkgs/top-level/unix-tools.nix
17 changes: 7 additions & 10 deletions doc/stdenv.xml
Original file line number Diff line number Diff line change
@@ -709,19 +709,16 @@ passthru.updateScript = writeScript "update-zoom-us" ''
<programlisting>
passthru.updateScript = [ ../../update.sh pname "--requested-release=unstable" ];
</programlisting>
Note that the update scripts will be run in parallel by default; you
should avoid running <command>git commit</command> or any other commands
that cannot handle that.
</para>
<para>
The script will be usually run from the root of the Nixpkgs repository
but you should not rely on that. Also note that the update scripts will
be run in parallel by default; you should avoid running <command>git
commit</command> or any other commands that cannot handle that.
</para>
<para>
For information about how to run the updates, execute
<cmdsynopsis>
<command>nix-shell</command>
<arg>
maintainers/scripts/update.nix
</arg>
</cmdsynopsis>
.
<command>nix-shell maintainers/scripts/update.nix</command>.
</para>
</listitem>
</varlistentry>
2 changes: 1 addition & 1 deletion lib/default.nix
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ let
filesystem = callLibs ./filesystem.nix;

# back-compat aliases
platforms = systems.forMeta;
platforms = systems.doubles;

inherit (builtins) add addErrorContext attrNames concatLists
deepSeq elem elemAt filter genericClosure genList getAttr
5 changes: 3 additions & 2 deletions lib/systems/default.nix
Original file line number Diff line number Diff line change
@@ -3,7 +3,6 @@

rec {
doubles = import ./doubles.nix { inherit lib; };
forMeta = import ./for-meta.nix { inherit lib; };
parse = import ./parse.nix { inherit lib; };
inspect = import ./inspect.nix { inherit lib; };
platforms = import ./platforms.nix { inherit lib; };
@@ -15,7 +14,9 @@ rec {
# `parsed` is inferred from args, both because there are two options with one
# clearly prefered, and to prevent cycles. A simpler fixed point where the RHS
# always just used `final.*` would fail on both counts.
elaborate = args: let
elaborate = args': let
args = if lib.isString args' then { system = args'; }
else args';
final = {
# Prefer to parse `config` as it is strictly more informative.
parsed = parse.mkSystemFromString (if args ? config then args.config else args.system);
9 changes: 9 additions & 0 deletions lib/systems/doubles.nix
Original file line number Diff line number Diff line change
@@ -19,6 +19,12 @@ let
"x86_64-windows" "i686-windows"

"wasm64-wasi" "wasm32-wasi"

"powerpc64le-linux"

"riscv32-linux" "riscv64-linux"

"aarch64-none" "avr-none" "arm-none" "i686-none" "x86_64-none" "powerpc-none" "msp430-none"
];

allParsed = map parse.mkSystemFromString all;
@@ -36,6 +42,7 @@ in rec {
i686 = filterDoubles predicates.isi686;
x86_64 = filterDoubles predicates.isx86_64;
mips = filterDoubles predicates.isMips;
riscv = filterDoubles predicates.isRiscV;

cygwin = filterDoubles predicates.isCygwin;
darwin = filterDoubles predicates.isDarwin;
@@ -50,5 +57,7 @@ in rec {
wasi = filterDoubles predicates.isWasi;
windows = filterDoubles predicates.isWindows;

embedded = filterDoubles predicates.isNone;

mesaPlatforms = ["i686-linux" "x86_64-linux" "x86_64-darwin" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "armv7a-linux" "aarch64-linux" "powerpc64le-linux"];
}
38 changes: 0 additions & 38 deletions lib/systems/for-meta.nix

This file was deleted.

1 change: 1 addition & 0 deletions lib/systems/inspect.nix
Original file line number Diff line number Diff line change
@@ -44,6 +44,7 @@ rec {
isCygwin = { kernel = kernels.windows; abi = abis.cygnus; };
isMinGW = { kernel = kernels.windows; abi = abis.gnu; };
isWasi = { kernel = kernels.wasi; };
isNone = { kernel = kernels.none; };

isAndroid = [ { abi = abis.android; } { abi = abis.androideabi; } ];
isMusl = with abis; map (a: { abi = a; }) [ musl musleabi musleabihf ];
10 changes: 5 additions & 5 deletions lib/tests/systems.nix
Original file line number Diff line number Diff line change
@@ -12,19 +12,19 @@ let
expected = lib.sort lib.lessThan y;
};
in with lib.systems.doubles; lib.runTests {
testall = mseteq all (linux ++ darwin ++ freebsd ++ openbsd ++ netbsd ++ illumos ++ wasi ++ windows);
testall = mseteq all (linux ++ darwin ++ freebsd ++ openbsd ++ netbsd ++ illumos ++ wasi ++ windows ++ embedded);

testarm = mseteq arm [ "armv5tel-linux" "armv6l-linux" "armv7l-linux" ];
testi686 = mseteq i686 [ "i686-linux" "i686-freebsd" "i686-netbsd" "i686-openbsd" "i686-cygwin" "i686-windows" ];
testarm = mseteq arm [ "armv5tel-linux" "armv6l-linux" "armv7l-linux" "arm-none" ];
testi686 = mseteq i686 [ "i686-linux" "i686-freebsd" "i686-netbsd" "i686-openbsd" "i686-cygwin" "i686-windows" "i686-none" ];
testmips = mseteq mips [ "mipsel-linux" ];
testx86_64 = mseteq x86_64 [ "x86_64-linux" "x86_64-darwin" "x86_64-freebsd" "x86_64-openbsd" "x86_64-netbsd" "x86_64-cygwin" "x86_64-solaris" "x86_64-windows" ];
testx86_64 = mseteq x86_64 [ "x86_64-linux" "x86_64-darwin" "x86_64-freebsd" "x86_64-openbsd" "x86_64-netbsd" "x86_64-cygwin" "x86_64-solaris" "x86_64-windows" "x86_64-none" ];

testcygwin = mseteq cygwin [ "i686-cygwin" "x86_64-cygwin" ];
testdarwin = mseteq darwin [ "x86_64-darwin" ];
testfreebsd = mseteq freebsd [ "i686-freebsd" "x86_64-freebsd" ];
testgnu = mseteq gnu (linux /* ++ kfreebsd ++ ... */);
testillumos = mseteq illumos [ "x86_64-solaris" ];
testlinux = mseteq linux [ "i686-linux" "x86_64-linux" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "aarch64-linux" "mipsel-linux" ];
testlinux = mseteq linux [ "aarch64-linux" "armv5tel-linux" "armv6l-linux" "armv7l-linux" "i686-linux" "mipsel-linux" "riscv32-linux" "riscv64-linux" "x86_64-linux" "powerpc64le-linux" ];
testnetbsd = mseteq netbsd [ "i686-netbsd" "x86_64-netbsd" ];
testopenbsd = mseteq openbsd [ "i686-openbsd" "x86_64-openbsd" ];
testwindows = mseteq windows [ "i686-cygwin" "x86_64-cygwin" "i686-windows" "x86_64-windows" ];
85 changes: 44 additions & 41 deletions maintainers/scripts/luarocks-packages.csv
Original file line number Diff line number Diff line change
@@ -1,41 +1,44 @@
# nix name, luarocks name, server, version/additionnal args
ansicolors,
argparse,
basexx,
binaryheap,
dkjson
fifo
http
inspect
ldoc
lgi
lpeg_patterns
lpty
lrexlib-gnu,
lrexlib-posix,
ltermbox,
lua-cmsgpack,
lua_cliargs,
lua-iconv,
lua-messagepack,
lua-term,
lua-toml,
luabitop,
luaevent,
luacheck
luaffi,,http://luarocks.org/dev,
luuid,
markdown,
penlight,
rapidjson,
say,
std__debug,std._debug,
std_normalize,std.normalize,
luv,
luasystem,
mediator_lua,,http://luarocks.org/manifests/teto
mpack,,http://luarocks.org/manifests/teto
nvim-client,,http://luarocks.org/manifests/teto
busted,,http://luarocks.org/manifests/teto
luassert,,http://luarocks.org/manifests/teto
coxpcall,,https://luarocks.org/manifests/hisham,1.17.0-1
# nix name, luarocks name, server, version,luaversion
ansicolors,,,,
argparse,,,,
basexx,,,,
binaryheap,,,,
digestif,,http://luarocks.org/dev,,lua5_3
dkjson,,,,
fifo,,,,
http,,,,
inspect,,,,
ldoc,,,,
lgi,,,,
lpeg_patterns,,,,
lpeglabel,,,,
lpty,,,,
lrexlib-gnu,,,,
lrexlib-posix,,,,
ltermbox,,,,
lua-cmsgpack,,,,
lua_cliargs,,,,
lua-iconv,,,,
lua-lsp,,http://luarocks.org/dev,,
lua-messagepack,,,,
lua-term,,,,
lua-toml,,,,
luabitop,,,,
luaevent,,,,
luacheck,,,,
luaffi,,http://luarocks.org/dev,,
luuid,,,,
markdown,,,,
penlight,,,,
rapidjson,,,,
say,,,,
std__debug,std._debug,,,
std_normalize,std.normalize,,,
luv,,,,
luasystem,,,,
mediator_lua,,http://luarocks.org/manifests/teto,,
mpack,,http://luarocks.org/manifests/teto,,
nvim-client,,,,
busted,,http://luarocks.org/manifests/teto,,
luassert,,,,
coxpcall,,https://luarocks.org/manifests/hisham,1.17.0-1,
34 changes: 17 additions & 17 deletions maintainers/scripts/update-luarocks-packages
Original file line number Diff line number Diff line change
@@ -12,11 +12,6 @@
# stop the script upon C-C
set -eu -o pipefail

if [ $# -lt 1 ]; then
print_help
exit 1
fi

CSV_FILE="maintainers/scripts/luarocks-packages.csv"
TMP_FILE="$(mktemp)"

@@ -25,16 +20,21 @@ exit_trap()
local lc="$BASH_COMMAND" rc=$?
test $rc -eq 0 || echo -e "*** error $rc: $lc.\nGenerated temporary file in $TMP_FILE" >&2
}
trap exit_trap EXIT

print_help() {
echo "Usage: $0 <GENERATED_FILE>"
echo "(most likely pkgs/development/lua-modules/generated-packages.nix)"
echo ""
echo " -c <CSV_FILE> to set the list of luarocks package to generate"
exit 1
echo ""
echo " -c <CSV_FILE> to set the list of luarocks package to generate"
exit 1
}

if [ $# -lt 1 ]; then
print_help
exit 1
fi

trap exit_trap EXIT

while getopts ":hc:" opt; do
case $opt in
@@ -76,15 +76,16 @@ FOOTER="
function convert_pkg () {
nix_pkg_name="$1"
lua_pkg_name="$2"
server="${3:+--server=$3}"
version="${4:-}"
server="${3:+--only-server=$3}"
pkg_version="${4:-}"
lua_version="${5:+--lua-dir=$(nix path-info nixpkgs.$5)/bin}"

echo "looking at $lua_pkg_name (version $version) from server [$server]" >&2
cmd="luarocks nix $server $lua_pkg_name $version"
echo "looking at $lua_pkg_name (version $pkg_version) from server [$server]" >&2
cmd="luarocks nix $server $lua_version $lua_pkg_name $pkg_version"
echo "Running $cmd" >&2
drv="$nix_pkg_name = $($cmd)"
if [ $? -ne 0 ]; then
echo "Failed to convert $pkg" >&2
echo "$drv" >&2
else
echo "$drv" | tee -a "$TMP_FILE"
fi
@@ -94,8 +95,7 @@ function convert_pkg () {
echo "$HEADER" | tee "$TMP_FILE"

# list of packages with format
# name,server,version
while IFS=, read -r nix_pkg_name lua_pkg_name server version
while IFS=, read -r nix_pkg_name lua_pkg_name server pkg_version luaversion
do
if [ "${nix_pkg_name:0:1}" == "#" ]; then
echo "Skipping comment ${nix_pkg_name}" >&2
@@ -105,7 +105,7 @@ do
echo "Using nix_name as lua_pkg_name" >&2
lua_pkg_name="$nix_pkg_name"
fi
convert_pkg "$nix_pkg_name" "$lua_pkg_name" "$server" "$version"
convert_pkg "$nix_pkg_name" "$lua_pkg_name" "$server" "$pkg_version" "$luaversion"
done < "$CSV_FILE"

# close the set
25 changes: 19 additions & 6 deletions maintainers/scripts/update.nix
Original file line number Diff line number Diff line change
@@ -20,7 +20,9 @@ let
in
[x] ++ nubOn f xs;

pkgs = import ./../../default.nix { };
pkgs = import ./../../default.nix {
overlays = [];
};

packagesWith = cond: return: set:
nubOn (pkg: pkg.updateScript)
@@ -67,9 +69,12 @@ let
let
attrSet = pkgs.lib.attrByPath (pkgs.lib.splitString "." path) null pkgs;
in
packagesWith (name: pkg: builtins.hasAttr "updateScript" pkg)
(name: pkg: pkg)
attrSet;
if attrSet == null then
builtins.throw "Attribute path `${path}` does not exists."
else
packagesWith (name: pkg: builtins.hasAttr "updateScript" pkg)
(name: pkg: pkg)
attrSet;

packageByName = name:
let
@@ -122,9 +127,17 @@ let
packageData = package: {
name = package.name;
pname = (builtins.parseDrvName package.name).name;
updateScript = pkgs.lib.toList package.updateScript;
updateScript = map builtins.toString (pkgs.lib.toList package.updateScript);
};

packagesJson = pkgs.writeText "packages.json" (builtins.toJSON (map packageData packages));

optionalArgs =
pkgs.lib.optional (max-workers != null) "--max-workers=${max-workers}"
++ pkgs.lib.optional (keep-going == "true") "--keep-going";

args = [ packagesJson ] ++ optionalArgs;

in pkgs.stdenv.mkDerivation {
name = "nixpkgs-update-script";
buildCommand = ''
@@ -139,6 +152,6 @@ in pkgs.stdenv.mkDerivation {
'';
shellHook = ''
unset shellHook # do not contaminate nested shells
exec ${pkgs.python3.interpreter} ${./update.py} ${pkgs.writeText "packages.json" (builtins.toJSON (map packageData packages))}${pkgs.lib.optionalString (max-workers != null) " --max-workers=${max-workers}"}${pkgs.lib.optionalString (keep-going == "true") " --keep-going"}
exec ${pkgs.python3.interpreter} ${./update.py} ${builtins.concatStringsSep " " args}
'';
}
13 changes: 13 additions & 0 deletions nixos/modules/services/desktops/geoclue2.nix
Original file line number Diff line number Diff line change
@@ -188,6 +188,19 @@ in

systemd.packages = [ package ];

users.users.geoclue = {
isSystemUser = true;
home = "/var/lib/geoclue";
group = "geoclue";
description = "Geoinformation service";
};

users.groups.geoclue = {};

systemd.tmpfiles.rules = [
"d /var/lib/geoclue 0755 geoclue geoclue"
];

# restart geoclue service when the configuration changes
systemd.services."geoclue".restartTriggers = [
config.environment.etc."geoclue/geoclue.conf".source
Loading