Merge master into staging-next

authored by

github-actions[bot] and committed by
GitHub
ce14b50f 77db03ce

+121 -104
+43
nixos/modules/hardware/i2c.nix
··· 1 + { config, lib, ... }: 2 + 3 + with lib; 4 + 5 + let 6 + cfg = config.hardware.i2c; 7 + in 8 + 9 + { 10 + options.hardware.i2c = { 11 + enable = mkEnableOption '' 12 + i2c devices support. By default access is granted to users in the "i2c" 13 + group (will be created if non-existent) and any user with a seat, meaning 14 + logged on the computer locally. 15 + ''; 16 + 17 + group = mkOption { 18 + type = types.str; 19 + default = "i2c"; 20 + description = '' 21 + Grant access to i2c devices (/dev/i2c-*) to users in this group. 22 + ''; 23 + }; 24 + }; 25 + 26 + config = mkIf cfg.enable { 27 + 28 + boot.kernelModules = [ "i2c-dev" ]; 29 + 30 + users.groups = mkIf (cfg.group == "i2c") { 31 + i2c = { }; 32 + }; 33 + 34 + services.udev.extraRules = '' 35 + # allow group ${cfg.group} and users with a seat use of i2c devices 36 + ACTION=="add", KERNEL=="i2c-[0-9]*", TAG+="uaccess", GROUP="${cfg.group}", MODE="660" 37 + ''; 38 + 39 + }; 40 + 41 + meta.maintainers = [ maintainers.rnhmjoj ]; 42 + 43 + }
+1
nixos/modules/module-list.nix
··· 46 46 ./hardware/cpu/intel-microcode.nix 47 47 ./hardware/digitalbitbox.nix 48 48 ./hardware/device-tree.nix 49 + ./hardware/i2c.nix 49 50 ./hardware/sensor/hddtemp.nix 50 51 ./hardware/sensor/iio.nix 51 52 ./hardware/keyboard/zsa.nix
+10 -19
pkgs/applications/audio/vorbis-tools/default.nix
··· 1 - { lib, stdenv, fetchurl, fetchzip, libogg, libvorbis, libao, pkg-config, curl 2 - , speex, flac }: 1 + { lib, stdenv, fetchurl, libogg, libvorbis, libao, pkg-config, curl 2 + , speex, flac 3 + , autoreconfHook }: 4 + 5 + stdenv.mkDerivation rec { 6 + pname = "vorbis-tools"; 7 + version = "1.4.2"; 3 8 4 - let 5 - debPatch = fetchzip { 6 - url = "mirror://debian/pool/main/v/vorbis-tools/vorbis-tools_1.4.0-11.debian.tar.xz"; 7 - sha256 = "0kvmd5nslyqplkdb7pnmqj47ir3y5lmaxd12wmrnqh679a8jhcyi"; 8 - }; 9 - in 10 - stdenv.mkDerivation { 11 - name = "vorbis-tools-1.4.0"; 12 9 src = fetchurl { 13 - url = "http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz"; 14 - sha256 = "1g12bnh5ah08v529y72kfdz5lhvy75iaz7f9jskyby23m9dkk2d3"; 10 + url = "http://downloads.xiph.org/releases/vorbis/vorbis-tools-${version}.tar.gz"; 11 + sha256 = "1c7h4ivgfdyygz2hyh6nfibxlkz8kdk868a576qkkjgj5gn78xyv"; 15 12 }; 16 13 17 - postPatch = '' 18 - for patch in $(ls "${debPatch}"/patches/*.{diff,patch} | grep -v debian_subdir) 19 - do patch -p1 < "$patch" 20 - done 21 - ''; 22 - 23 - nativeBuildInputs = [ pkg-config ]; 14 + nativeBuildInputs = [ autoreconfHook pkg-config ]; 24 15 buildInputs = [ libogg libvorbis libao curl speex flac ]; 25 16 26 17 meta = with lib; {
+1
pkgs/applications/misc/multibootusb/default.nix
··· 110 110 homepage = "http://multibootusb.org/"; 111 111 license = licenses.gpl2; 112 112 maintainers = []; # Looking for a maintainer! 113 + broken = true; # "name 'config' is not defined", added 2021-02-06 113 114 }; 114 115 }
+4 -11
pkgs/applications/misc/tootle/default.nix
··· 16 16 , json-glib 17 17 , glib 18 18 , glib-networking 19 + , libhandy 19 20 }: 20 21 21 22 stdenv.mkDerivation rec { 22 23 pname = "tootle"; 23 - version = "0.2.0"; 24 + version = "1.0"; 24 25 25 26 src = fetchFromGitHub { 26 27 owner = "bleakgrey"; 27 28 repo = pname; 28 29 rev = version; 29 - sha256 = "1z3wyx316nns6gi7vlvcfmalhvxncmvcmmlgclbv6b6hwl5x2ysi"; 30 + sha256 = "NRM7GiJA8c5z9AvXpGXtMl4ZaYN2GauEIbjBmoY4pdo="; 30 31 }; 31 32 32 33 nativeBuildInputs = [ ··· 47 48 json-glib 48 49 libgee 49 50 pantheon.granite 50 - ]; 51 - 52 - patches = [ 53 - # Fix build with Vala 0.46 54 - # https://github.com/bleakgrey/tootle/pull/164 55 - (fetchpatch { 56 - url = "https://github.com/worldofpeace/tootle/commit/0a88bdad6d969ead1e4058b1a19675c9d6857b16.patch"; 57 - sha256 = "0xyx00pgswnhxxbsxngsm6khvlbfcl6ic5wv5n64x7klk8rzh6cm"; 58 - }) 51 + libhandy 59 52 ]; 60 53 61 54 postPatch = ''
+2 -2
pkgs/development/python-modules/databricks-connect/default.nix
··· 2 2 3 3 buildPythonPackage rec { 4 4 pname = "databricks-connect"; 5 - version = "7.3.7"; 5 + version = "7.3.8"; 6 6 7 7 src = fetchPypi { 8 8 inherit pname version; 9 - sha256 = "35ead50a0550e65a7d6fd78e2c8e54095b53514fba85180768a2dbcdd3f2cf0b"; 9 + sha256 = "0c0f036cf30e00fdc47c983875c72d16a3073ae9be9bcf39371514280f00a82d"; 10 10 }; 11 11 12 12 sourceRoot = ".";
+2 -2
pkgs/development/python-modules/rx/default.nix
··· 2 2 3 3 buildPythonPackage rec { 4 4 pname = "rx"; 5 - version = "3.1.0"; 5 + version = "3.1.1"; 6 6 disabled = pythonOlder "3.6"; 7 7 8 8 # There are no tests on the pypi source ··· 10 10 owner = "ReactiveX"; 11 11 repo = "rxpy"; 12 12 rev = "v${version}"; 13 - sha256 = "0rcwa8001il9p7s096b9gc5yld8cyxvrsmwh1gpc9b87j172z6ax"; 13 + sha256 = "0p0cs67l40npkvwgn5sb18l1b6df1b9fg6rzlqkwk2aa0v3cpvhf"; 14 14 }; 15 15 16 16 checkInputs = [ nose ];
+2 -2
pkgs/development/tools/analysis/flow/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "flow"; 5 - version = "0.143.1"; 5 + version = "0.144.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "facebook"; 9 9 repo = "flow"; 10 10 rev = "refs/tags/v${version}"; 11 - sha256 = "sha256-x7+hLbfccyJLc84246R8xay0FJlK/3JgNc6pqeowl9Q="; 11 + sha256 = "sha256-Qr/fizCV+t6SbETEqns72Xv24ucLcqi1JRXF8SAtQRU="; 12 12 }; 13 13 14 14 installPhase = ''
+3 -3
pkgs/development/tools/rust/cargo-generate/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "cargo-generate"; 5 - version = "0.5.1"; 5 + version = "0.5.2"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "ashleygwilliams"; 9 9 repo = "cargo-generate"; 10 10 rev = "v${version}"; 11 - sha256 = "0rq0anz0cawrgsinqyjh8wb3dgha09wx3ydrd3m9nfxs5dd3ij3k"; 11 + sha256 = "sha256-/tZUYJaNvJ7H3xAc9ygcJD6meK1Em87VYqqYqY1l4zE="; 12 12 }; 13 13 14 - cargoSha256 = "1vngn9gbiv59wrq230qk2mv00bsbdfk2mi1iqpr736c5wj1caqld"; 14 + cargoSha256 = "sha256-/6nr+UNQPa8+cEnAMgyjuCV1JjfqXcNLfuqi4/kgmk0="; 15 15 16 16 nativeBuildInputs = [ pkg-config ]; 17 17
+2 -2
pkgs/servers/pg_tileserv/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "pg_tileserv"; 5 - version = "1.0.5"; 5 + version = "1.0.6"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "CrunchyData"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-62cJ0j/UfPW/ujKr0iA7Be8wZYlZ68mpJX8v1tAVREc="; 11 + sha256 = "sha256-6KFYTZq126uvxQ5IOrMN+hpnAk/WtmS1Dam7w6Oif1M="; 12 12 }; 13 13 14 14 vendorSha256 = "sha256-qdlh9H039GwKTxOhx+dzyUHkzJbaOeuguKnBOyAPe/E=";
+3 -3
pkgs/tools/graphics/gifski/default.nix
··· 2 2 3 3 rustPlatform.buildRustPackage rec { 4 4 pname = "gifski"; 5 - version = "1.3.1"; 5 + version = "1.3.3"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "ImageOptim"; 9 9 repo = "gifski"; 10 10 rev = version; 11 - sha256 = "sha256-sB8W5n3FvRAB9ygFg63NecSZgUw8FGk4pzviIbRF2vk="; 11 + sha256 = "sha256-dBgDIS6U2iKzyo5nO0NOD488zfEbaZJH7luJN6khrnc="; 12 12 }; 13 13 14 - cargoSha256 = "sha256-0cFk1GnEJxMfY9GvQTdI5tkgtxGkH3ZQFTloo4/C+sY="; 14 + cargoSha256 = "sha256-/i5ZBCWFlhoheHsCI5f9yJ7sa6l/DB4AJckq5orinwI="; 15 15 16 16 nativeBuildInputs = [ pkg-config ]; 17 17
+39 -53
pkgs/tools/graphics/luxcorerender/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, boost165, pkg-config, python36 2 - , tbb, openimageio, libjpeg, libpng, zlib, libtiff, ilmbase 3 - , freetype, openexr, libXdmcp, libxkbcommon, epoxy, at-spi2-core 4 - , dbus, doxygen, qt5, c-blosc, libGLU, gnome3, dconf, gtk3, pcre 5 - , bison, flex, libpthreadstubs, libX11 6 - , embree2, makeWrapper, gsettings-desktop-schemas, glib 7 - , withOpenCL ? true , opencl-headers, ocl-icd, opencl-clhpp, rocm-opencl-runtime 8 - }: 1 + { lib, config, stdenv, fetchFromGitHub, symlinkJoin, wrapGAppsHook, cmake, boost172 2 + , pkg-config, flex, bison, libpng, libtiff, zlib, python3, embree, openexr 3 + , openimagedenoise, openimageio, tbb, c-blosc, gtk3, pcre, doxygen 4 + # OpenCL Support 5 + , withOpenCL ? true, ocl-icd 6 + # Cuda Support 7 + , withCuda ? config.cudaSupport or false, cudatoolkit }: 9 8 10 9 let 11 - python = python36; 12 - 13 - boost_static = boost165.override { 14 - inherit python; 15 - enableStatic = true; 16 - enablePython = true; 17 - }; 10 + boostWithPython = boost172.override { 11 + enablePython = true; 12 + enableNumpy = true; 13 + python = python3; 14 + }; 18 15 19 - version = "2.0"; 20 - sha256 = "15nn39ybsfjf3cw3xgkbarvxn4a9ymfd579ankm7yjxkw5gcif38"; 16 + # Requires a version number like "<MAJOR><MINOR>" 17 + pythonVersion = (lib.versions.major python3.version) 18 + + (lib.versions.minor python3.version); 21 19 22 - in stdenv.mkDerivation { 20 + in stdenv.mkDerivation rec { 23 21 pname = "luxcorerender"; 24 - inherit version; 22 + version = "2.4"; 25 23 26 24 src = fetchFromGitHub { 27 25 owner = "LuxCoreRender"; 28 26 repo = "LuxCore"; 29 27 rev = "luxcorerender_v${version}"; 30 - inherit sha256; 28 + sha256 = "0xvivw79719fa1q762b76nyvzawfd3hmp8y5j04bax8a7f8mfa9k"; 31 29 }; 32 30 33 - nativeBuildInputs = [ cmake flex bison doxygen makeWrapper pkg-config ]; 31 + nativeBuildInputs = [ pkg-config cmake flex bison doxygen wrapGAppsHook ]; 32 + 34 33 buildInputs = [ 35 - embree2 zlib boost_static libjpeg 36 - libtiff libpng ilmbase freetype openexr openimageio 37 - tbb qt5.full c-blosc libGLU pcre 38 - libX11 libpthreadstubs python libXdmcp libxkbcommon 39 - epoxy at-spi2-core dbus 40 - # needed for GSETTINGS_SCHEMAS_PATH 41 - gsettings-desktop-schemas glib gtk3 42 - # needed for XDG_ICON_DIRS 43 - gnome3.adwaita-icon-theme 44 - (lib.getLib dconf) 45 - ] ++ lib.optionals withOpenCL [ opencl-headers ocl-icd opencl-clhpp rocm-opencl-runtime ]; 34 + libpng 35 + libtiff 36 + zlib 37 + boostWithPython.dev 38 + python3 39 + embree 40 + openexr 41 + openimagedenoise 42 + tbb 43 + c-blosc 44 + gtk3 45 + pcre 46 + openimageio.dev 47 + openimageio.out 48 + ] ++ lib.optionals withOpenCL [ ocl-icd ] 49 + ++ lib.optionals withCuda [ cudatoolkit ]; 46 50 47 - cmakeFlags = [ 48 - "-DOpenEXR_Iex_INCLUDE_DIR=${openexr.dev}/include/OpenEXR" 49 - "-DOpenEXR_IlmThread_INCLUDE_DIR=${ilmbase.dev}/include/OpenEXR" 50 - "-DOpenEXR_Imath_INCLUDE_DIR=${openexr.dev}/include/OpenEXR" 51 - "-DOpenEXR_half_INCLUDE_DIR=${ilmbase.dev}/include" 52 - "-DPYTHON_LIBRARY=${python}/lib/libpython3.so" 53 - "-DPYTHON_INCLUDE_DIR=${python}/include/python${python.pythonVersion}" 54 - "-DEMBREE_INCLUDE_PATH=${embree2}/include" 55 - "-DEMBREE_LIBRARY=${embree2}/lib/libembree.so" 56 - "-DBoost_PYTHON_LIBRARY_RELEASE=${boost_static}/lib/libboost_python3-mt.so" 57 - ] ++ lib.optional withOpenCL 58 - "-DOPENCL_INCLUDE_DIR=${opencl-headers}/include"; 51 + cmakeFlags = [ "-DPYTHON_V=${pythonVersion}" ] 52 + ++ lib.optional (!withOpenCL) "-DLUXRAYS_DISABLE_OPENCL=1" 53 + ++ lib.optional (!withCuda) "-DLUXRAYS_DISABLE_CUDA=1"; 59 54 60 55 preConfigure = '' 61 - NIX_CFLAGS_COMPILE+=" -isystem ${python}/include/python${python.pythonVersion}" 62 56 NIX_LDFLAGS+=" -lpython3" 63 57 ''; 64 58 ··· 69 63 cp -va lib/* $out/lib 70 64 ''; 71 65 72 - preFixup = '' 73 - wrapProgram "$out/bin/luxcoreui" \ 74 - --prefix XDG_DATA_DIRS : "$GSETTINGS_SCHEMAS_PATH" \ 75 - --suffix XDG_DATA_DIRS : '${gnome3.adwaita-icon-theme}/share' \ 76 - --prefix GIO_EXTRA_MODULES : "${lib.getLib dconf}/lib/gio/modules" 77 - ''; 78 - 79 66 meta = with lib; { 80 67 description = "Open source, physically based, unbiased rendering engine"; 81 68 homepage = "https://luxcorerender.org/"; ··· 84 71 platforms = platforms.linux; 85 72 }; 86 73 } 87 - 88 74 89 75 # TODO (might not be necessary): 90 76 #
+2 -2
pkgs/tools/misc/phoronix-test-suite/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "phoronix-test-suite"; 5 - version = "10.2.0"; 5 + version = "10.2.1"; 6 6 7 7 src = fetchurl { 8 8 url = "https://phoronix-test-suite.com/releases/${pname}-${version}.tar.gz"; 9 - sha256 = "sha256-eoKHgbSyOEkwzki5wWuZlOAmZljxOMXcztA/g8TtutQ="; 9 + sha256 = "sha256-2HB4TPbyG+cTY6O1k0tRPrnKyg41SYnVM919Hii3gpg="; 10 10 }; 11 11 12 12 buildInputs = [ php ];
+3 -3
pkgs/tools/system/gotop/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "gotop"; 5 - version = "4.1.0"; 5 + version = "4.1.1"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "xxxserxxx"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "09cs97fjjxcjxzsl2kh8j607cs5zy2hnrh1pb21pggzhg7dzsz0w"; 11 + sha256 = "sha256-3t6I4ah9gUmPlIBRL86BdgiUaMNiKNEeoUSRMASz1Yc="; 12 12 }; 13 13 14 14 runVend = true; 15 - vendorSha256 = "1mbjl7b49naaqkr2j658j17z9ryf5g3x6q34gvmrm7n9y082ggnz"; 15 + vendorSha256 = "sha256-GcIaUIuTiSY1aKxRtclfl7hMNaZZx4uoVG7ahjF/4Hs="; 16 16 17 17 preCheck = '' 18 18 export HOME=$(mktemp -d)
+4 -2
pkgs/top-level/all-packages.nix
··· 6052 6052 6053 6053 lzip = callPackage ../tools/compression/lzip { }; 6054 6054 6055 - luxcorerender = callPackage ../tools/graphics/luxcorerender { qt5 = qt514; }; 6055 + luxcorerender = callPackage ../tools/graphics/luxcorerender { }; 6056 6056 6057 6057 xz = callPackage ../tools/compression/xz { }; 6058 6058 lzma = xz; # TODO: move to aliases.nix ··· 25529 25529 25530 25530 volnoti = callPackage ../applications/misc/volnoti { }; 25531 25531 25532 - vorbis-tools = callPackage ../applications/audio/vorbis-tools { }; 25532 + vorbis-tools = callPackage ../applications/audio/vorbis-tools { 25533 + autoreconfHook = buildPackages.autoreconfHook269; 25534 + }; 25533 25535 25534 25536 vscode = callPackage ../applications/editors/vscode/vscode.nix { }; 25535 25537