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: 1be338cd48f9
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: 84586a4514dc
Choose a head ref
Loading
Showing with 4,301 additions and 3,405 deletions.
  1. +5 −6 doc/configuration.xml
  2. +4 −1 lib/default.nix
  3. +17 −0 lib/strings.nix
  4. +7 −5 lib/versions.nix
  5. +3 −3 maintainers/scripts/update-discord
  6. +1 −1 maintainers/scripts/update.nix
  7. +2 −1 nixos/modules/programs/adb.nix
  8. +4 −8 nixos/modules/services/databases/mysql.nix
  9. +3 −0 nixos/modules/services/monitoring/prometheus/exporters.nix
  10. +1 −1 nixos/modules/services/networking/dnschain.nix
  11. +11 −2 nixos/modules/services/networking/pdns-recursor.nix
  12. +1 −1 nixos/modules/services/networking/znc/default.nix
  13. +3 −3 nixos/modules/services/x11/hardware/libinput.nix
  14. +2 −2 nixos/modules/system/boot/loader/grub/grub.nix
  15. +1 −1 nixos/modules/system/boot/networkd.nix
  16. +1 −1 nixos/modules/virtualisation/containers.nix
  17. +9 −1 pkgs/applications/audio/mpg321/default.nix
  18. +6 −4 pkgs/applications/audio/strawberry/default.nix
  19. +1 −1 pkgs/applications/editors/kdevelop5/kdevelop.nix
  20. +1 −1 pkgs/applications/kde/fetch.sh
  21. +2 −2 pkgs/applications/kde/spectacle.nix
  22. +868 −868 pkgs/applications/kde/srcs.nix
  23. +20 −17 pkgs/applications/misc/qtpass/default.nix
  24. +6 −8 pkgs/applications/misc/sweethome3d/default.nix
  25. +5 −8 pkgs/applications/misc/sweethome3d/editors.nix
  26. +2 −2 pkgs/applications/misc/tnef/default.nix
  27. +33 −17 pkgs/applications/misc/xpdf/default.nix
  28. +2 −2 pkgs/applications/networking/browsers/chromium/common.nix
  29. +0 −117 pkgs/applications/networking/browsers/chromium/patches/chromium-vaapi.patch
  30. +54 −0 pkgs/applications/networking/browsers/chromium/patches/vaapi-fix.patch
  31. +5 −3 pkgs/applications/networking/browsers/firefox/wrapper.nix
  32. +2 −2 pkgs/applications/networking/feedreaders/rssguard/default.nix
  33. +9 −9 pkgs/applications/networking/instant-messengers/discord/default.nix
  34. +1 −1 pkgs/applications/networking/instant-messengers/slack/update.sh
  35. +1 −1 pkgs/applications/networking/instant-messengers/zoom-us/update.sh
  36. +1 −1 pkgs/applications/version-management/git-and-tools/git/update.sh
  37. +6 −6 pkgs/applications/version-management/gitlab/data.json
  38. +5 −0 pkgs/applications/version-management/gitlab/default.nix
  39. +4 −4 pkgs/applications/version-management/gitlab/gitaly/Gemfile
  40. +16 −15 pkgs/applications/version-management/gitlab/gitaly/Gemfile.lock
  41. +2 −2 pkgs/applications/version-management/gitlab/gitaly/default.nix
  42. +637 −25 pkgs/applications/version-management/gitlab/gitaly/deps.nix
  43. +27 −15 pkgs/applications/version-management/gitlab/gitaly/gemset.nix
  44. +18 −0 pkgs/applications/version-management/gitlab/gitlab-shell/deps.nix
  45. +2 −2 pkgs/applications/version-management/gitlab/gitlab-workhorse/default.nix
  46. +27 −20 pkgs/applications/version-management/gitlab/rubyEnv/Gemfile
  47. +112 −84 pkgs/applications/version-management/gitlab/rubyEnv/Gemfile.lock
  48. +192 −88 pkgs/applications/version-management/gitlab/rubyEnv/gemset.nix
  49. +216 −1,272 pkgs/applications/version-management/gitlab/yarnPkgs.nix
  50. +1 −1 pkgs/applications/version-management/monotone/default.nix
  51. +1 −1 pkgs/applications/video/vdr/wrapper.nix
  52. +1 −1 pkgs/applications/virtualization/OVMF/default.nix
  53. +2 −2 pkgs/applications/virtualization/cntr/default.nix
  54. +3 −3 pkgs/build-support/bintools-wrapper/default.nix
  55. +3 −3 pkgs/build-support/cc-wrapper/default.nix
  56. +2 −2 pkgs/common-updater/scripts/update-source-version
  57. +2 −3 pkgs/desktops/gnome-3/default.nix
  58. +0 −3 pkgs/development/compilers/adoptopenjdk-bin/jdk-darwin-base.nix
  59. +80 −80 pkgs/development/compilers/adoptopenjdk-bin/sources.json
  60. +1 −1 pkgs/development/compilers/chicken/4/eggDerivation.nix
  61. +3 −3 pkgs/development/compilers/gcc/4.8/default.nix
  62. +3 −3 pkgs/development/compilers/gcc/4.9/default.nix
  63. +3 −3 pkgs/development/compilers/gcc/5/default.nix
  64. +3 −3 pkgs/development/compilers/gcc/6/default.nix
  65. +3 −3 pkgs/development/compilers/gcc/7/default.nix
  66. +3 −3 pkgs/development/compilers/gcc/8/default.nix
  67. +3 −3 pkgs/development/compilers/gcc/9/default.nix
  68. +3 −3 pkgs/development/compilers/gcc/snapshot/default.nix
  69. +1 −1 pkgs/development/compilers/ghcjs-ng/configured-ghcjs-src.nix
  70. +2 −2 pkgs/development/em-modules/generic/default.nix
  71. +6 −0 pkgs/development/haskell-modules/configuration-common.nix
  72. +0 −147 pkgs/development/haskell-modules/configuration-hackage2nix.yaml
  73. +24 −0 pkgs/development/haskell-modules/patches/amazonka-Allow-http-client-0.6.patch
  74. +26 −0 pkgs/development/haskell-modules/patches/amazonka-core-Allow-http-client-0.6.patch
  75. +2 −2 pkgs/development/interpreters/clojure/default.nix
  76. +1 −1 pkgs/development/interpreters/lua-5/build-lua-package.nix
  77. +2 −2 pkgs/development/interpreters/python/hooks/default.nix
  78. +1 −1 pkgs/development/interpreters/python/hooks/pip-build-hook.sh
  79. +13 −2 pkgs/development/libraries/ilmbase/default.nix
  80. +1 −0 pkgs/development/libraries/kde-frameworks/kio/default.nix
  81. +0 −73 pkgs/development/libraries/libmad/001-mips_removal_h_constraint.patch
  82. +43 −13 pkgs/development/libraries/libmad/default.nix
  83. +0 −77 pkgs/development/libraries/libmad/optimize.diff
  84. +0 −117 pkgs/development/libraries/libmad/pkgconfig.patch
  85. +5 −13 pkgs/development/libraries/libpcap/default.nix
  86. +21 −19 pkgs/development/libraries/libvncserver/default.nix
  87. +5 −0 pkgs/development/libraries/libxslt/default.nix
  88. +8 −1 pkgs/development/libraries/openexr/default.nix
  89. +34 −7 pkgs/development/libraries/rocksdb/default.nix
  90. +1 −1 pkgs/development/libraries/science/math/caffe2/default.nix
  91. +1 −1 pkgs/development/libraries/snappy/default.nix
  92. +1 −1 pkgs/development/lisp-modules/openssl-lib-marked.nix
  93. +3 −3 pkgs/development/perl-modules/generic/default.nix
  94. +9 −1 pkgs/development/python-modules/PyLD/default.nix
  95. +5 −0 pkgs/development/python-modules/azure-cosmos/default.nix
  96. +30 −0 pkgs/development/python-modules/azure-functions-devops-build/default.nix
  97. +6 −0 pkgs/development/python-modules/azure-keyvault/default.nix
  98. +7 −1 pkgs/development/python-modules/azure-loganalytics/default.nix
  99. +31 −0 pkgs/development/python-modules/azure-mgmt-apimanagement/default.nix
  100. +31 −0 pkgs/development/python-modules/azure-mgmt-appconfiguration/default.nix
  101. +6 −0 pkgs/development/python-modules/azure-mgmt-applicationinsights/default.nix
  102. +5 −0 pkgs/development/python-modules/azure-mgmt-batchai/default.nix
  103. +17 −11 pkgs/development/python-modules/azure-mgmt-billing/default.nix
  104. +31 −0 pkgs/development/python-modules/azure-mgmt-botservice/default.nix
  105. +7 −0 pkgs/development/python-modules/azure-mgmt-consumption/default.nix
  106. +31 −0 pkgs/development/python-modules/azure-mgmt-containerregistry/default.nix
  107. +8 −0 pkgs/development/python-modules/azure-mgmt-datalake-analytics/default.nix
  108. +9 −1 pkgs/development/python-modules/azure-mgmt-datalake-store/default.nix
  109. +8 −2 pkgs/development/python-modules/azure-mgmt-datamigration/default.nix
  110. +31 −0 pkgs/development/python-modules/azure-mgmt-deploymentmanager/default.nix
  111. +8 −2 pkgs/development/python-modules/azure-mgmt-devtestlabs/default.nix
  112. +8 −3 pkgs/development/python-modules/azure-mgmt-dns/default.nix
  113. +31 −0 pkgs/development/python-modules/azure-mgmt-hdinsight/default.nix
  114. +31 −0 pkgs/development/python-modules/azure-mgmt-imagebuilder/default.nix
  115. +8 −1 pkgs/development/python-modules/azure-mgmt-iothubprovisioningservices/default.nix
  116. +8 −1 pkgs/development/python-modules/azure-mgmt-keyvault/default.nix
  117. +31 −0 pkgs/development/python-modules/azure-mgmt-kusto/azure-mgmt-apimanagement/default.nix
  118. +31 −0 pkgs/development/python-modules/azure-mgmt-kusto/default.nix
  119. +7 −0 pkgs/development/python-modules/azure-mgmt-loganalytics/default.nix
  120. +31 −0 pkgs/development/python-modules/azure-mgmt-managedservices/default.nix
  121. +7 −0 pkgs/development/python-modules/azure-mgmt-maps/default.nix
  122. +7 −1 pkgs/development/python-modules/azure-mgmt-monitor/default.nix
  123. +7 −0 pkgs/development/python-modules/azure-mgmt-msi/default.nix
  124. +31 −0 pkgs/development/python-modules/azure-mgmt-netapp/default.nix
  125. +31 −0 pkgs/development/python-modules/azure-mgmt-privatedns/default.nix
  126. +7 −0 pkgs/development/python-modules/azure-mgmt-relay/default.nix
  127. +31 −0 pkgs/development/python-modules/azure-mgmt-security/default.nix
  128. +7 −0 pkgs/development/python-modules/azure-mgmt-servicefabric/default.nix
  129. +31 −0 pkgs/development/python-modules/azure-mgmt-sqlvirtualmachine/default.nix
  130. +36 −0 pkgs/development/python-modules/azure-multiapi-storage/default.nix
  131. +9 −0 pkgs/development/python-modules/blist/default.nix
  132. +1 −1 pkgs/development/python-modules/cherrypy/17.nix
  133. +32 −0 pkgs/development/python-modules/javaproperties/default.nix
  134. +2 −2 pkgs/development/python-modules/msrest/default.nix
  135. +2 −2 pkgs/development/python-modules/msrestazure/default.nix
  136. +2 −2 pkgs/development/python-modules/portalocker/default.nix
  137. +31 −0 pkgs/development/python-modules/secure/default.nix
  138. +31 −0 pkgs/development/python-modules/sshtunnel/default.nix
  139. +2 −1 pkgs/development/python-modules/trezor_agent/default.nix
  140. +28 −0 pkgs/development/python-modules/vsts-cd-manager/default.nix
  141. +1 −1 pkgs/development/tools/analysis/radare2/update.py
  142. +1 −1 pkgs/development/tools/chefdk/default.nix
  143. +1 −1 pkgs/development/tools/continuous-integration/jenkins/update.sh
  144. +3 −4 pkgs/development/tools/documentation/antora/default.nix
  145. +3 −3 pkgs/development/tools/selenium/chromedriver/default.nix
  146. +18 −7 pkgs/games/chessx/default.nix
  147. +2 −2 pkgs/misc/emulators/cdemu/analyzer.nix
  148. +2 −2 pkgs/misc/emulators/cdemu/client.nix
  149. +2 −2 pkgs/misc/emulators/cdemu/daemon.nix
  150. +2 −2 pkgs/misc/emulators/cdemu/gui.nix
  151. +2 −2 pkgs/misc/emulators/cdemu/libmirage.nix
  152. +2 −2 pkgs/misc/emulators/cdemu/vhba.nix
  153. +2 −8 pkgs/misc/emulators/retroarch/wrapper.nix
  154. +1 −1 pkgs/misc/emulators/wine/staging.nix
  155. +1 −1 pkgs/misc/tmux-plugins/default.nix
  156. +1 −1 pkgs/misc/vim-plugins/build-vim-plugin.nix
  157. +23 −2 pkgs/os-specific/darwin/swift-corelibs/corefoundation.nix
  158. +2 −2 pkgs/os-specific/linux/kernel/linux-4.14.nix
  159. +2 −2 pkgs/os-specific/linux/kernel/linux-4.19.nix
  160. +2 −2 pkgs/os-specific/linux/kernel/linux-4.4.nix
  161. +2 −2 pkgs/os-specific/linux/kernel/linux-4.9.nix
  162. +4 −4 pkgs/os-specific/linux/kernel/{linux-5.3.nix → linux-5.4.nix}
  163. +2 −2 pkgs/os-specific/linux/microcode/intel.nix
  164. +8 −8 pkgs/os-specific/linux/nvidia-x11/default.nix
  165. +2 −2 pkgs/os-specific/linux/prl-tools/default.nix
  166. +3 −3 pkgs/servers/monitoring/grafana/default.nix
  167. +3 −3 pkgs/servers/rainloop/default.nix
  168. +2 −2 pkgs/servers/search/solr/8.x.nix
  169. +3 −2 pkgs/servers/sql/mysql/8.0.x.nix
  170. +2 −8 pkgs/servers/web-apps/codimd/default.nix
  171. +2 −2 pkgs/servers/x11/xorg/overrides.nix
  172. +1 −1 pkgs/shells/zsh/oh-my-zsh/update.sh
  173. +5 −5 pkgs/shells/zsh/zsh-powerlevel9k/default.nix
  174. +250 −0 pkgs/tools/admin/azure-cli/default.nix
  175. +268 −0 pkgs/tools/admin/azure-cli/python-packages.nix
  176. +18 −0 pkgs/tools/admin/tightvnc/1.3.10-CVE-2019-15678.patch
  177. +19 −0 pkgs/tools/admin/tightvnc/1.3.10-CVE-2019-15679.patch
  178. +16 −0 pkgs/tools/admin/tightvnc/1.3.10-CVE-2019-15680.patch
  179. +14 −0 pkgs/tools/admin/tightvnc/1.3.10-CVE-2019-8287.patch
  180. +7 −0 pkgs/tools/admin/tightvnc/default.nix
  181. +1 −1 pkgs/tools/audio/acoustid-fingerprinter/default.nix
  182. +14 −3 pkgs/tools/compression/lz4/default.nix
  183. +26 −4 pkgs/tools/compression/zstd/default.nix
  184. +13 −0 pkgs/tools/compression/zstd/mcfgthreads-no-pthread.patch
  185. +1 −1 pkgs/tools/inputmethods/ibus/wrapper.nix
  186. +2 −2 pkgs/tools/networking/haproxy/default.nix
  187. +1 −1 pkgs/tools/networking/iperf/3.nix
  188. +4 −11 pkgs/tools/networking/tcpdump/default.nix
  189. +4 −3 pkgs/tools/networking/wireguard-tools/default.nix
  190. +1 −1 pkgs/tools/security/afl/libdislocator.nix
  191. +2 −2 pkgs/tools/security/clamav/default.nix
  192. +9 −9 pkgs/top-level/all-packages.nix
  193. +1 −1 pkgs/top-level/lua-packages.nix
  194. +38 −0 pkgs/top-level/python-packages.nix
11 changes: 5 additions & 6 deletions doc/configuration.xml
Original file line number Diff line number Diff line change
@@ -141,11 +141,10 @@
For a more useful example, try the following. This configuration only allows unfree packages named flash player and visual studio code:
<programlisting>
{
allowUnfreePredicate = (pkg: builtins.elem
(builtins.parseDrvName pkg.name).name [
"flashplayer"
"vscode"
]);
allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [
"flashplayer"
"vscode"
];
}
</programlisting>
</para>
@@ -217,7 +216,7 @@
The following configuration example only allows insecure packages with very short names:
<programlisting>
{
allowInsecurePredicate = (pkg: (builtins.stringLength (builtins.parseDrvName pkg.name).name) &lt;= 5);
allowInsecurePredicate = pkg: builtins.stringLength (lib.getName pkg) &lt;= 5;
}
</programlisting>
</para>
5 changes: 4 additions & 1 deletion lib/default.nix
Original file line number Diff line number Diff line change
@@ -84,7 +84,8 @@ let
hasInfix hasPrefix hasSuffix stringToCharacters stringAsChars escape
escapeShellArg escapeShellArgs replaceChars lowerChars
upperChars toLower toUpper addContextFrom splitString
removePrefix removeSuffix versionOlder versionAtLeast getVersion
removePrefix removeSuffix versionOlder versionAtLeast
getName getVersion
nameFromURL enableFeature enableFeatureAs withFeature
withFeatureAs fixedWidthString fixedWidthNumber isStorePath
toInt readPathsFromFile fileContents;
@@ -134,5 +135,7 @@ let
mergeAttrsByFuncDefaultsClean mergeAttrBy
fakeSha256 fakeSha512
nixType imap;
inherit (versions)
splitVersion;
});
in lib
17 changes: 17 additions & 0 deletions lib/strings.nix
Original file line number Diff line number Diff line change
@@ -472,6 +472,23 @@ rec {
*/
versionAtLeast = v1: v2: !versionOlder v1 v2;

/* This function takes an argument that's either a derivation or a
derivation's "name" attribute and extracts the name part from that
argument.
Example:
getName "youtube-dl-2016.01.01"
=> "youtube-dl"
getName pkgs.youtube-dl
=> "youtube-dl"
*/
getName = x:
let
parse = drv: (builtins.parseDrvName drv).name;
in if isString x
then parse x
else x.pname or (parse x.name);

/* This function takes an argument that's either a derivation or a
derivation's "name" attribute and extracts the version part from that
argument.
12 changes: 7 additions & 5 deletions lib/versions.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
/* Version string functions. */
{ lib }:

let
rec {

splitVersion = builtins.splitVersion or (lib.splitString ".");

in
/* Break a version string into its component parts.
{
Example:
splitVersion "1.2.3"
=> ["1" "2" "3"]
*/
splitVersion = builtins.splitVersion or (lib.splitString ".");

/* Get the major version string from a string.
6 changes: 3 additions & 3 deletions maintainers/scripts/update-discord
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ exec >${1:?usage: $0 <output-file>}

cat <<EOF
{ branch ? "stable", pkgs }:
# Generated by /maintainers/scripts/update-discord
let
inherit (pkgs) callPackage fetchurl;
in {
@@ -16,7 +16,7 @@ for branch in "" ptb canary; do
url=$(curl -sI "https://discordapp.com/api/download${branch:+/}${branch}?platform=linux&format=tar.gz" | grep -oP 'location: \K\S+')
version=${url##https://dl*.discordapp.net/apps/linux/}
version=${version%%/*.tar.gz}
echo " ${branch:-stable} = callPackage ./base.nix {"
echo " ${branch:-stable} = callPackage ./base.nix rec {"
echo " pname = \"discord${branch:+-}${branch}\";"
case $branch in
"") suffix="" ;;
@@ -27,7 +27,7 @@ for branch in "" ptb canary; do
echo " desktopName = \"Discord${suffix:+ }${suffix}\";"
echo " version = \"${version}\";"
echo " src = fetchurl {"
echo " url = \"${url}\";"
echo " url = \"${url//${version}/\$\{version\}}\";"
echo " sha256 = \"$(nix-prefetch-url "$url")\";"
echo " };"
echo " };"
2 changes: 1 addition & 1 deletion maintainers/scripts/update.nix
Original file line number Diff line number Diff line change
@@ -126,7 +126,7 @@ let

packageData = package: {
name = package.name;
pname = (builtins.parseDrvName package.name).name;
pname = pkgs.lib.getName package;
updateScript = map builtins.toString (pkgs.lib.toList package.updateScript);
};

3 changes: 2 additions & 1 deletion nixos/modules/programs/adb.nix
Original file line number Diff line number Diff line change
@@ -23,7 +23,8 @@ with lib;
###### implementation
config = mkIf config.programs.adb.enable {
services.udev.packages = [ pkgs.android-udev-rules ];
environment.systemPackages = [ pkgs.androidenv.androidPkgs_9_0.platform-tools ];
# Give platform-tools lower priority so mke2fs+friends are taken from other packages first
environment.systemPackages = [ (lowPrio pkgs.androidenv.androidPkgs_9_0.platform-tools) ];
users.groups.adbusers = {};
};
}
12 changes: 4 additions & 8 deletions nixos/modules/services/databases/mysql.nix
Original file line number Diff line number Diff line change
@@ -8,15 +8,11 @@ let

mysql = cfg.package;

isMariaDB =
let
pName = _p: (builtins.parseDrvName (_p.name)).name;
in pName mysql == pName pkgs.mariadb;
isMariaDB = lib.getName mysql == lib.getName pkgs.mariadb;

isMysqlAtLeast57 =
let
pName = _p: (builtins.parseDrvName (_p.name)).name;
in (pName mysql == pName pkgs.mysql57)
&& ((builtins.compareVersions mysql.version "5.7") >= 0);
(lib.getName mysql == lib.getName pkgs.mysql57)
&& (builtins.compareVersions mysql.version "5.7" >= 0);

mysqldOptions =
"--user=${cfg.user} --datadir=${cfg.dataDir} --basedir=${mysql}";
3 changes: 3 additions & 0 deletions nixos/modules/services/monitoring/prometheus/exporters.nix
Original file line number Diff line number Diff line change
@@ -196,6 +196,9 @@ in
services.prometheus.exporters.minio.minioAccessSecret = mkDefault config.services.minio.secretKey;
})] ++ [(mkIf config.services.rspamd.enable {
services.prometheus.exporters.rspamd.url = mkDefault "http://localhost:11334/stat";
})] ++ [(mkIf config.services.nginx.enable {
systemd.services.prometheus-nginx-exporter.after = [ "nginx.service" ];
systemd.services.prometheus-nginx-exporter.requires = [ "nginx.service" ];
})] ++ (mapAttrsToList (name: conf:
mkExporterConf {
inherit name;
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/dnschain.nix
Original file line number Diff line number Diff line change
@@ -137,7 +137,7 @@ in
];

services.pdns-recursor = mkIf cfgs.pdns-recursor.resolveDNSChainQueries {
forwardZones =
forwardZonesRecurse =
{ bit = "127.0.0.1:${toString cfg.dns.port}";
dns = "127.0.0.1:${toString cfg.dns.port}";
};
13 changes: 11 additions & 2 deletions nixos/modules/services/networking/pdns-recursor.nix
Original file line number Diff line number Diff line change
@@ -90,11 +90,19 @@ in {
};

forwardZones = mkOption {
type = types.attrs;
default = {};
description = ''
DNS zones to be forwarded to other authoritative servers.
'';
};

forwardZonesRecurse = mkOption {
type = types.attrs;
example = { eth = "127.0.0.1:5353"; };
default = {};
description = ''
DNS zones to be forwarded to other servers.
DNS zones to be forwarded to other recursive servers.
'';
};

@@ -158,7 +166,8 @@ in {
webserver-port = cfg.api.port;
webserver-allow-from = cfg.api.allowFrom;

forward-zones = mapAttrsToList (zone: uri: "${zone}.=${uri}") cfg.forwardZones;
forward-zones = mapAttrsToList (zone: uri: "${zone}.=${uri}") cfg.forwardZones;
forward-zones-recurse = mapAttrsToList (zone: uri: "${zone}.=${uri}") cfg.forwardZonesRecurse;
export-etc-hosts = cfg.exportHosts;
dnssec = cfg.dnssecValidation;
serve-rfc1918 = cfg.serveRFC1918;
2 changes: 1 addition & 1 deletion nixos/modules/services/networking/znc/default.nix
Original file line number Diff line number Diff line change
@@ -239,7 +239,7 @@ in
services.znc = {
configFile = mkDefault (pkgs.writeText "znc-generated.conf" semanticString);
config = {
Version = (builtins.parseDrvName pkgs.znc.name).version;
Version = lib.getVersion pkgs.znc;
Listener.l.Port = mkDefault 5000;
Listener.l.SSL = mkDefault true;
};
6 changes: 3 additions & 3 deletions nixos/modules/services/x11/hardware/libinput.nix
Original file line number Diff line number Diff line change
@@ -209,12 +209,12 @@ in {

services.xserver.config =
''
# Automatically enable the libinput driver for all touchpads.
# General libinput configuration.
# See CONFIGURATION DETAILS section of man:libinput(4).
Section "InputClass"
Identifier "libinputConfiguration"
MatchIsTouchpad "on"
MatchDriver "libinput"
${optionalString (cfg.dev != null) ''MatchDevicePath "${cfg.dev}"''}
Driver "libinput"
Option "AccelProfile" "${cfg.accelProfile}"
${optionalString (cfg.accelSpeed != null) ''Option "AccelSpeed" "${cfg.accelSpeed}"''}
${optionalString (cfg.buttonMapping != null) ''Option "ButtonMapping" "${cfg.buttonMapping}"''}
4 changes: 2 additions & 2 deletions nixos/modules/system/boot/loader/grub/grub.nix
Original file line number Diff line number Diff line change
@@ -47,8 +47,8 @@ let
grub = f grub;
grubTarget = f (grub.grubTarget or "");
shell = "${pkgs.runtimeShell}";
fullName = (builtins.parseDrvName realGrub.name).name;
fullVersion = (builtins.parseDrvName realGrub.name).version;
fullName = lib.getName realGrub;
fullVersion = lib.getVersion realGrub;
grubEfi = f grubEfi;
grubTargetEfi = if cfg.efiSupport && (cfg.version == 2) then f (grubEfi.grubTarget or "") else "";
bootPath = args.path;
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/networkd.nix
Original file line number Diff line number Diff line change
@@ -201,7 +201,7 @@ let
(assertValueOneOf "IPv6AcceptRA" boolValues)
(assertValueOneOf "IPv4ProxyARP" boolValues)
(assertValueOneOf "IPv6ProxyNDP" boolValues)
(assertValueOneOf "IPv6PrefixDelegation" boolValues)
(assertValueOneOf "IPv6PrefixDelegation" (boolValues ++ [ "dhcpv6" "static" ]))
(assertValueOneOf "ActiveSlave" boolValues)
(assertValueOneOf "PrimarySlave" boolValues)
(assertValueOneOf "ConfigureWithoutCarrier" boolValues)
2 changes: 1 addition & 1 deletion nixos/modules/virtualisation/containers.nix
Original file line number Diff line number Diff line change
@@ -149,7 +149,7 @@ let
--setenv PATH="$PATH" \
${optionalString cfg.ephemeral "--ephemeral"} \
${if cfg.additionalCapabilities != null && cfg.additionalCapabilities != [] then
''--capability="${concatStringsSep " " cfg.additionalCapabilities}"'' else ""
''--capability="${concatStringsSep "," cfg.additionalCapabilities}"'' else ""
} \
${if cfg.tmpfs != null && cfg.tmpfs != [] then
''--tmpfs=${concatStringsSep " --tmpfs=" cfg.tmpfs}'' else ""
10 changes: 9 additions & 1 deletion pkgs/applications/audio/mpg321/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{stdenv, fetchurl, libao, libmad, libid3tag, zlib, alsaLib
{stdenv, fetchurl, fetchpatch, libao, libmad, libid3tag, zlib, alsaLib
# Specify default libao output plugin to use (e.g. "alsa", "pulse" …).
# If null, it will use the libao system default.
, defaultAudio ? null
@@ -13,6 +13,14 @@ stdenv.mkDerivation rec {
sha256 = "0ki8mh76bbmdh77qsiw682dvi8y468yhbdabqwg05igmwc1wqvq5";
};

patches = [
(fetchpatch {
name = "CVE-2018-7263.patch";
url = "https://sources.debian.org/data/main/m/mpg321/0.3.2-3/debian/patches/handle_illegal_bitrate_value.patch";
sha256 = "15simp5fjvm9b024ryfh441rkh2d5bcrizqkzlrh07n9sm7fkw6x";
})
];

hardeningDisable = [ "format" ];

configureFlags =
10 changes: 6 additions & 4 deletions pkgs/applications/audio/strawberry/default.nix
Original file line number Diff line number Diff line change
@@ -35,13 +35,13 @@

mkDerivation rec {
pname = "strawberry";
version = "0.6.3";
version = "0.6.7";

src = fetchFromGitHub {
owner = "jonaski";
repo = pname;
rev = version;
sha256 = "01j5jzzicy895kg9sjy46lbcm5kvf3642d3q5wwb2fyvyq1fbcv0";
sha256 = "14bw4hmysrbl4havz03s3wl8bv76380wddf5zzrjvfjjpwn333r6";
};

buildInputs = [
@@ -89,9 +89,11 @@ mkDerivation rec {

meta = with lib; {
description = "Music player and music collection organizer";
license = licenses.gpl2;
homepage = "https://www.strawberrymusicplayer.org/";
changelog = "https://raw.githubusercontent.com/jonaski/strawberry/${version}/Changelog";
license = licenses.gpl3;
maintainers = with maintainers; [ peterhoeg ];
# upstream says darwin should work but they lack maintainers as of 0.6.3
# upstream says darwin should work but they lack maintainers as of 0.6.6
platforms = platforms.linux;
};
}
2 changes: 1 addition & 1 deletion pkgs/applications/editors/kdevelop5/kdevelop.nix
Original file line number Diff line number Diff line change
@@ -36,7 +36,7 @@ mkDerivation rec {
# https://cgit.kde.org/kdevelop.git/commit/?id=716372ae2e8dff9c51e94d33443536786e4bd85b
# required as nixos seems to be unable to find CLANG_BUILTIN_DIR
cmakeFlags = [
"-DCLANG_BUILTIN_DIR=${llvmPackages.clang-unwrapped}/lib/clang/${(builtins.parseDrvName llvmPackages.clang.name).version}/include"
"-DCLANG_BUILTIN_DIR=${llvmPackages.clang-unwrapped}/lib/clang/${lib.getVersion llvmPackages.clang}/include"
];

dontWrapQtApps = true;
2 changes: 1 addition & 1 deletion pkgs/applications/kde/fetch.sh
Original file line number Diff line number Diff line change
@@ -1 +1 @@
WGET_ARGS=( https://download.kde.org/stable/applications/19.08.1/ )
WGET_ARGS=( https://download.kde.org/stable/applications/19.08.2/ )
4 changes: 2 additions & 2 deletions pkgs/applications/kde/spectacle.nix
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
ki18n, xcb-util-cursor,
kconfig, kcoreaddons, kdbusaddons, kdeclarative, kio, kipi-plugins,
knotifications, kscreen, kwidgetsaddons, kwindowsystem, kxmlgui, libkipi,
qtx11extras, knewstuff, qttools
qtx11extras, knewstuff, kwayland, qttools
}:

mkDerivation {
@@ -14,7 +14,7 @@ mkDerivation {
buildInputs = [
kconfig kcoreaddons kdbusaddons kdeclarative ki18n kio knotifications
kscreen kwidgetsaddons kwindowsystem kxmlgui libkipi qtx11extras xcb-util-cursor
knewstuff
knewstuff kwayland
];
postPatch = ''
substituteInPlace desktop/org.kde.spectacle.desktop \
Loading