Skip to content
Permalink

Comparing changes

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

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3fb4d69c4494
Choose a base ref
...
head repository: NixOS/nixpkgs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: ea4ed5e1d074
Choose a head ref
Loading
Showing with 397 additions and 259 deletions.
  1. +5 −1 .editorconfig
  2. +1 −1 lib/default.nix
  3. +17 −0 lib/modules.nix
  4. +6 −0 lib/trivial.nix
  5. +1 −1 nixos/modules/security/pam.nix
  6. +9 −9 pkgs/applications/audio/soundkonverter/default.nix
  7. +3 −3 pkgs/applications/editors/vscode/vscode.nix
  8. +7 −13 pkgs/applications/networking/cluster/terraform-providers/default.nix
  9. +1 −1 pkgs/applications/networking/cluster/terraform-providers/keycloak/default.nix
  10. +11 −5 pkgs/applications/networking/cluster/terraform/default.nix
  11. +3 −3 pkgs/applications/networking/gns3/default.nix
  12. +3 −1 pkgs/development/coq-modules/bignums/default.nix
  13. +1 −2 pkgs/development/coq-modules/coq-ext-lib/default.nix
  14. +2 −1 pkgs/development/coq-modules/dpdgraph/default.nix
  15. +47 −0 pkgs/development/interpreters/cyclone/default.nix
  16. +12 −12 pkgs/development/libraries/pangolin/default.nix
  17. +2 −2 pkgs/development/python-modules/beancount/default.nix
  18. +19 −7 pkgs/development/python-modules/pyatmo/default.nix
  19. +5 −2 pkgs/development/python-modules/voluptuous/default.nix
  20. +28 −7 pkgs/development/python-modules/yeelight/default.nix
  21. +3 −5 pkgs/development/tools/bazelisk/default.nix
  22. +0 −12 pkgs/development/tools/bazelisk/gomod.patch
  23. +1 −1 pkgs/development/tools/yarn2nix-moretea/yarn2nix/lib/generateNix.js
  24. +12 −12 pkgs/os-specific/linux/kernel/hardened/patches.json
  25. +23 −46 pkgs/servers/asterisk/default.nix
  26. +2 −2 pkgs/servers/atlassian/confluence.nix
  27. +8 −5 pkgs/servers/home-assistant/component-packages.nix
  28. +93 −40 pkgs/servers/home-assistant/default.nix
  29. +0 −24 pkgs/servers/home-assistant/fix-media-path-test.patch
  30. +2 −2 pkgs/servers/home-assistant/frontend.nix
  31. +0 −21 pkgs/servers/home-assistant/relax-dependencies.patch
  32. +2 −2 pkgs/servers/http/couchdb/2.0.0.nix
  33. +3 −3 pkgs/servers/http/couchdb/3.nix
  34. +2 −2 pkgs/servers/http/couchdb/default.nix
  35. +2 −2 pkgs/servers/mediatomb/default.nix
  36. +2 −2 pkgs/servers/plex/raw.nix
  37. +3 −3 pkgs/shells/zsh/oh-my-zsh/default.nix
  38. +27 −0 pkgs/tools/compression/flips/default.nix
  39. +15 −0 pkgs/tools/compression/flips/use-system-libdivsufsort.patch
  40. +4 −0 pkgs/tools/filesystems/apfs-fuse/default.nix
  41. +2 −2 pkgs/tools/filesystems/fuse-overlayfs/default.nix
  42. +3 −0 pkgs/top-level/aliases.nix
  43. +5 −2 pkgs/top-level/all-packages.nix
6 changes: 5 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -56,6 +56,8 @@ indent_size = unset

[deps.nix]
insert_final_newline = unset
[pkgs/tools/networking/dd-agent/*-deps.nix]
insert_final_newline = unset

[eggs.nix]
trim_trailing_whitespace = unset
@@ -65,6 +67,8 @@ insert_final_newline = unset

[node-{composition,packages}.nix]
insert_final_newline = unset
[node-packages-generated.nix]
insert_final_newline = unset

[nixos/modules/services/networking/ircd-hybrid/*.{conf,in}]
trim_trailing_whitespace = unset
@@ -98,7 +102,7 @@ trim_trailing_whitespace = unset
[pkgs/development/mobile/androidenv/generated/{addons,packages}.nix]
trim_trailing_whitespace = unset

[pkgs/development/node-packages/node-packages.nix]
[pkgs/development/node-packages/composition.nix]
insert_final_newline = unset

[pkgs/servers/dict/wordnet_structures.py]
2 changes: 1 addition & 1 deletion lib/default.nix
Original file line number Diff line number Diff line change
@@ -66,7 +66,7 @@ let
stringLength sub substring tail;
inherit (trivial) id const pipe concat or and bitAnd bitOr bitXor
bitNot boolToString mergeAttrs flip mapNullable inNixShell min max
importJSON warn info showWarnings nixpkgsVersion version mod compare
importJSON importTOML warn info showWarnings nixpkgsVersion version mod compare
splitByAndCompare functionArgs setFunctionArgs isFunction toHexString toBaseDigits;
inherit (fixedPoints) fix fix' converge extends composeExtensions
makeExtensible makeExtensibleWithCustomName;
17 changes: 17 additions & 0 deletions lib/modules.nix
Original file line number Diff line number Diff line change
@@ -875,4 +875,21 @@ rec {
];
};

/* Use this function to import a JSON file as NixOS configuration.
importJSON -> path -> attrs
*/
importJSON = file: {
_file = file;
config = lib.importJSON file;
};

/* Use this function to import a TOML file as NixOS configuration.
importTOML -> path -> attrs
*/
importTOML = file: {
_file = file;
config = lib.importTOML file;
};
}
6 changes: 6 additions & 0 deletions lib/trivial.nix
Original file line number Diff line number Diff line change
@@ -281,6 +281,12 @@ rec {
importJSON = path:
builtins.fromJSON (builtins.readFile path);

/* Reads a TOML file.
Type :: path -> any
*/
importTOML = path:
builtins.fromTOML (builtins.readFile path);

## Warnings

2 changes: 1 addition & 1 deletion nixos/modules/security/pam.nix
Original file line number Diff line number Diff line change
@@ -653,7 +653,7 @@ in
xlink:href="https://developers.yubico.com/pam-u2f/">here</link>.
'';
};

appId = mkOption {
default = null;
type = with types; nullOr str;
18 changes: 9 additions & 9 deletions pkgs/applications/audio/soundkonverter/default.nix
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
mkDerivation, fetchFromGitHub, fetchpatch, lib, makeWrapper,
cmake, extra-cmake-modules, pkgconfig,
libkcddb, kconfig, kconfigwidgets, ki18n, kdelibs4support, kio, solid, kwidgetsaddons, kxmlgui,
qtbase, phonon,
qtbase, phonon,
taglib,
# optional backends
withCD ? true, cdparanoia,
@@ -43,7 +43,7 @@ let runtimeDeps = []
++ lib.optionals withMp3 [ lame mp3gain ]
++ lib.optionals withAac [ faad2 aacgain ];

in
in
mkDerivation rec {
name = "soundkonverter";
version = "3.0.1";
@@ -67,7 +67,7 @@ mkDerivation rec {
propagatedBuildInputs = [ libkcddb kconfig kconfigwidgets ki18n kdelibs4support kio solid kwidgetsaddons kxmlgui qtbase phonon];
buildInputs = [ taglib ] ++ runtimeDeps;
# encoder plugins go to ${out}/lib so they're found by kbuildsycoca5
cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=$out" ];
cmakeFlags = [ "-DCMAKE_INSTALL_PREFIX=$out" ];
sourceRoot = "source/src";
# add runt-time deps to PATH
postInstall = ''
@@ -79,26 +79,26 @@ mkDerivation rec {
description = "Audio file converter, CD ripper and Replay Gain tool";
longDescription = ''
soundKonverter is a frontend to various audio converters.
The key features are:
- Audio file conversion
- Replay Gain calculation
- CD ripping
soundKonverter supports reading and writing tags and covers for many formats, so they are preserved when converting files.
It is extendable by plugins and supports many backends including:
- Audio file conversion
Backends: faac, faad, ffmpeg, flac, lame, mplayer, neroaac, timidity, fluidsynth, vorbistools, opustools, sox, twolame,
flake, mac, shorten, wavpack and speex
Formats: ogg vorbis, mp3, flac, wma, aac, ac3, opus, alac, mp2, als, amr nb, amr wb, ape, speex, m4a, mp1, musepack shorten,
tta, wavpack, ra, midi, mod, 3gp, rm, avi, mkv, ogv, mpeg, mov, mp4, flv, wmv and rv
- Replay Gain calculation
Backends: aacgain, metaflac, mp3gain, vorbisgain, wvgain, mpcgain
Formats: aac, mp3, flac, ogg vorbis, wavpack, musepack
- CD ripping
Backends: cdparanoia
'';
6 changes: 3 additions & 3 deletions pkgs/applications/editors/vscode/vscode.nix
Original file line number Diff line number Diff line change
@@ -11,8 +11,8 @@ let
archive_fmt = if system == "x86_64-darwin" then "zip" else "tar.gz";

sha256 = {
x86_64-linux = "103p0daf13zsqz2481pw6zpr6n0vaf57dq89i4djcm449i9c959i";
x86_64-darwin = "0bxggvi0wzsy801iylszqp8rv6kij6j2v05b6qyf6af7j3cmd1qf";
x86_64-linux = "12nrv037an4f6h8hrbmysc0lk5wm492hywa7lp64n4d308zg5567";
x86_64-darwin = "1z22hn2ngx2x5l9h6zsblpyzr85lyjzv2ayplscbgaa9ff52l429";
}.${system};
in
callPackage ./generic.nix rec {
@@ -21,7 +21,7 @@ in

# Please backport all compatible updates to the stable release.
# This is important for the extension ecosystem.
version = "1.49.3";
version = "1.50.0";
pname = "vscode";

executableName = "code" + lib.optionalString isInsiders "-insiders";
Original file line number Diff line number Diff line change
@@ -8,24 +8,18 @@ let
list = lib.importJSON ./providers.json;

toDrv = name: data:
let
fallbackProviderSourceAddress = "nixpkgs/${data.owner}/${name}";
providerSourceAddress = data.provider-source-address or fallbackProviderSourceAddress;
in
buildGoPackage rec {
inherit (data) owner repo rev version sha256;
name = "${repo}-${version}";
goPackagePath = "github.com/${owner}/${repo}";
buildGoPackage {
pname = data.repo;
version = data.version;
goPackagePath = "github.com/${data.owner}/${data.repo}";
subPackages = [ "." ];
src = fetchFromGitHub {
inherit owner repo rev sha256;
inherit (data) owner repo rev sha256;
};
# Terraform allow checking the provider versions, but this breaks
# if the versions are not provided via file paths.
postBuild = "mv $NIX_BUILD_TOP/go/bin/${repo}{,_v${version}}";
passthru = {
inherit providerSourceAddress;
};
postBuild = "mv $NIX_BUILD_TOP/go/bin/${data.repo}{,_v${data.version}}";
passthru = data;
};

# Google is now using the vendored go modules, which works a bit differently
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@
}:

buildGoModule rec {
name = "terraform-provider-keycloak-${version}";
pname = "terraform-provider-keycloak";
version = "1.20.0";

src = fetchFromGitHub {
16 changes: 11 additions & 5 deletions pkgs/applications/networking/cluster/terraform/default.nix
Original file line number Diff line number Diff line change
@@ -62,21 +62,27 @@ let

# Make providers available in Terraform 0.13 and 0.12 search paths.
pluginDir = lib.concatMapStrings (pl: let
inherit (pl) repo version GOOS GOARCH;
inherit (pl.passthru) providerSourceAddress;
inherit (pl) version GOOS GOARCH;

pname = pl.pname or (throw "${pl.name} is missing a pname attribute");

# This is just the name, without the terraform-provider- prefix
plugin_name = lib.removePrefix "terraform-provider-" pname;

slug = pl.passthru.provider-source-address or "registry.terraform.io/nixpkgs/${plugin_name}";

shim = writeText "shim" ''
#!${runtimeShell}
exec ${pl}/bin/${repo}_v${version} \$@
exec ${pl}/bin/${pname}_v${version} "$@"
'';
in ''
TF_0_13_PROVIDER_PATH=$out/plugins/${providerSourceAddress}/${version}/${GOOS}_${GOARCH}/${repo}_v${version}
TF_0_13_PROVIDER_PATH=$out/plugins/${slug}/${version}/${GOOS}_${GOARCH}/${pname}_v${version}
mkdir -p "$(dirname $TF_0_13_PROVIDER_PATH)"
cp ${shim} "$TF_0_13_PROVIDER_PATH"
chmod +x "$TF_0_13_PROVIDER_PATH"
TF_0_12_PROVIDER_PATH=$out/plugins/${repo}_v${version}
TF_0_12_PROVIDER_PATH=$out/plugins/${pname}_v${version}
cp ${shim} "$TF_0_12_PROVIDER_PATH"
chmod +x "$TF_0_12_PROVIDER_PATH"
6 changes: 3 additions & 3 deletions pkgs/applications/networking/gns3/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{ callPackage, libsForQt5 }:

let
stableVersion = "2.2.14";
stableVersion = "2.2.15";
previewVersion = stableVersion;
addVersion = args:
let version = if args.stable then stableVersion else previewVersion;
@@ -26,8 +26,8 @@ let
};
mkGui = args: libsForQt5.callPackage (import ./gui.nix (addVersion args // extraArgs)) { };
mkServer = args: callPackage (import ./server.nix (addVersion args // extraArgs)) { };
guiSrcHash = "0y0dkyky2vw8ixm8nx4qhsj5b6hk0lv2cayrj4879icmp8zc4dy3";
serverSrcHash = "1vpsvvisw0sivlbjwawskkyiavl092qxaqxi13khkimz5fk0d3rc";
guiSrcHash = "149yphmxc47bhc2f942lp4bx354qj3cyrpn10s1xabkn2hwrsm0d";
serverSrcHash = "03cfg48xzgz362ra5x853k8r244dgbrmszcprs2lg70i3m722345";
in {
guiStable = mkGui {
stable = true;
4 changes: 3 additions & 1 deletion pkgs/development/coq-modules/bignums/default.nix
Original file line number Diff line number Diff line change
@@ -43,7 +43,9 @@ stdenv.mkDerivation {
inherit (param) rev sha256;
};

buildInputs = with coq.ocamlPackages; [ ocaml camlp5 findlib coq ];
buildInputs = with coq.ocamlPackages; [ ocaml findlib coq ]
++ stdenv.lib.optional (!stdenv.lib.versionAtLeast coq.coq-version "8.10") camlp5
;

installFlags = [ "COQLIB=$(out)/lib/coq/${coq.coq-version}/" ];

3 changes: 1 addition & 2 deletions pkgs/development/coq-modules/coq-ext-lib/default.nix
Original file line number Diff line number Diff line change
@@ -26,8 +26,7 @@ stdenv.mkDerivation rec {
inherit (param) sha256;
};

buildInputs = with coq.ocamlPackages; [ ocaml camlp5 ];
propagatedBuildInputs = [ coq ];
buildInputs = [ coq ];

enableParallelBuilding = true;

3 changes: 2 additions & 1 deletion pkgs/development/coq-modules/dpdgraph/default.nix
Original file line number Diff line number Diff line change
@@ -53,7 +53,8 @@ stdenv.mkDerivation {

nativeBuildInputs = [ autoreconfHook ];
buildInputs = [ coq ]
++ (with coq.ocamlPackages; [ ocaml camlp5 findlib ocamlgraph ]);
++ (with coq.ocamlPackages; [ ocaml findlib ocamlgraph ]
++ stdenv.lib.optional (!stdenv.lib.versionAtLeast coq.coq-version "8.10") camlp5);

# dpd_compute.ml uses deprecated Pervasives.compare
# Versions prior to 0.6.5 do not have the WARN_ERR build flag
47 changes: 47 additions & 0 deletions pkgs/development/interpreters/cyclone/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{ stdenv, fetchFromGitHub, libck, darwin }:

let
version = "0.21";
bootstrap = stdenv.mkDerivation {
pname = "cyclone-bootstrap";
inherit version;

src = fetchFromGitHub {
owner = "justinethier";
repo = "cyclone-bootstrap";
rev = "v${version}";
sha256 = "0bb3a7x7vzmdyhm4nilm8bcn4q50pwqryggnxz21n16v6xakwjmr";
};

nativeBuildInputs = stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools ];

buildInputs = [ libck ];

makeFlags = [ "PREFIX=${placeholder "out"}" ];
};
in
stdenv.mkDerivation {
pname = "cyclone";
inherit version;

src = fetchFromGitHub {
owner = "justinethier";
repo = "cyclone";
rev = "v${version}";
sha256 = "1vb4yaprs2bwbxmxx2zkqvysxx8r9qww2q1nqkz8yps3ji715jw7";
};

nativeBuildInputs = [ bootstrap ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.cctools ];

buildInputs = [ libck ];

makeFlags = [ "PREFIX=${placeholder "out"}" ];

meta = with stdenv.lib; {
homepage = "https://justinethier.github.io/cyclone/";
description = "A brand-new compiler that allows practical application development using R7RS Scheme";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
};
}
24 changes: 12 additions & 12 deletions pkgs/development/libraries/pangolin/default.nix
Original file line number Diff line number Diff line change
@@ -15,18 +15,18 @@ stdenv.mkDerivation {
sha256 = "0pfbaarlsw7f7cmsppm7m13nz0k530wwwyczy2l9k448p3v7x9j0";
};

nativeBuildInputs = [ cmake pkgconfig doxygen ];

buildInputs = [
libGL
glew
xorg.libX11
ffmpeg_3
python3
libjpeg
libpng
libtiff
eigen
nativeBuildInputs = [ cmake pkgconfig doxygen ];

buildInputs = [
libGL
glew
xorg.libX11
ffmpeg_3
python3
libjpeg
libpng
libtiff
eigen
]
++ lib.optionals stdenv.isDarwin [ Carbon Cocoa ];

4 changes: 2 additions & 2 deletions pkgs/development/python-modules/beancount/default.nix
Original file line number Diff line number Diff line change
@@ -4,14 +4,14 @@
, ply, python_magic, pytest, requests }:

buildPythonPackage rec {
version = "2.3.1";
version = "2.3.2";
pname = "beancount";

disabled = !isPy3k;

src = fetchPypi {
inherit pname version;
sha256 = "e12abfe0a6b38ce3525adb471ca5b8e3fa4056ff712108de48da53405c518a11";
sha256 = "1wfpf2b0sha84rz0qgkanc82wharjqr2nr7xxg1rngrci2h0aqhd";
};

# Tests require files not included in the PyPI archive.
Loading