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 ./hardware/cpu/intel-microcode.nix 47 ./hardware/digitalbitbox.nix 48 ./hardware/device-tree.nix 49 ./hardware/sensor/hddtemp.nix 50 ./hardware/sensor/iio.nix 51 ./hardware/keyboard/zsa.nix
··· 46 ./hardware/cpu/intel-microcode.nix 47 ./hardware/digitalbitbox.nix 48 ./hardware/device-tree.nix 49 + ./hardware/i2c.nix 50 ./hardware/sensor/hddtemp.nix 51 ./hardware/sensor/iio.nix 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 }: 3 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 src = fetchurl { 13 - url = "http://downloads.xiph.org/releases/vorbis/vorbis-tools-1.4.0.tar.gz"; 14 - sha256 = "1g12bnh5ah08v529y72kfdz5lhvy75iaz7f9jskyby23m9dkk2d3"; 15 }; 16 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 ]; 24 buildInputs = [ libogg libvorbis libao curl speex flac ]; 25 26 meta = with lib; {
··· 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"; 8 9 src = fetchurl { 10 + url = "http://downloads.xiph.org/releases/vorbis/vorbis-tools-${version}.tar.gz"; 11 + sha256 = "1c7h4ivgfdyygz2hyh6nfibxlkz8kdk868a576qkkjgj5gn78xyv"; 12 }; 13 14 + nativeBuildInputs = [ autoreconfHook pkg-config ]; 15 buildInputs = [ libogg libvorbis libao curl speex flac ]; 16 17 meta = with lib; {
+1
pkgs/applications/misc/multibootusb/default.nix
··· 110 homepage = "http://multibootusb.org/"; 111 license = licenses.gpl2; 112 maintainers = []; # Looking for a maintainer! 113 }; 114 }
··· 110 homepage = "http://multibootusb.org/"; 111 license = licenses.gpl2; 112 maintainers = []; # Looking for a maintainer! 113 + broken = true; # "name 'config' is not defined", added 2021-02-06 114 }; 115 }
+4 -11
pkgs/applications/misc/tootle/default.nix
··· 16 , json-glib 17 , glib 18 , glib-networking 19 }: 20 21 stdenv.mkDerivation rec { 22 pname = "tootle"; 23 - version = "0.2.0"; 24 25 src = fetchFromGitHub { 26 owner = "bleakgrey"; 27 repo = pname; 28 rev = version; 29 - sha256 = "1z3wyx316nns6gi7vlvcfmalhvxncmvcmmlgclbv6b6hwl5x2ysi"; 30 }; 31 32 nativeBuildInputs = [ ··· 47 json-glib 48 libgee 49 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 - }) 59 ]; 60 61 postPatch = ''
··· 16 , json-glib 17 , glib 18 , glib-networking 19 + , libhandy 20 }: 21 22 stdenv.mkDerivation rec { 23 pname = "tootle"; 24 + version = "1.0"; 25 26 src = fetchFromGitHub { 27 owner = "bleakgrey"; 28 repo = pname; 29 rev = version; 30 + sha256 = "NRM7GiJA8c5z9AvXpGXtMl4ZaYN2GauEIbjBmoY4pdo="; 31 }; 32 33 nativeBuildInputs = [ ··· 48 json-glib 49 libgee 50 pantheon.granite 51 + libhandy 52 ]; 53 54 postPatch = ''
+2 -2
pkgs/development/python-modules/databricks-connect/default.nix
··· 2 3 buildPythonPackage rec { 4 pname = "databricks-connect"; 5 - version = "7.3.7"; 6 7 src = fetchPypi { 8 inherit pname version; 9 - sha256 = "35ead50a0550e65a7d6fd78e2c8e54095b53514fba85180768a2dbcdd3f2cf0b"; 10 }; 11 12 sourceRoot = ".";
··· 2 3 buildPythonPackage rec { 4 pname = "databricks-connect"; 5 + version = "7.3.8"; 6 7 src = fetchPypi { 8 inherit pname version; 9 + sha256 = "0c0f036cf30e00fdc47c983875c72d16a3073ae9be9bcf39371514280f00a82d"; 10 }; 11 12 sourceRoot = ".";
+2 -2
pkgs/development/python-modules/rx/default.nix
··· 2 3 buildPythonPackage rec { 4 pname = "rx"; 5 - version = "3.1.0"; 6 disabled = pythonOlder "3.6"; 7 8 # There are no tests on the pypi source ··· 10 owner = "ReactiveX"; 11 repo = "rxpy"; 12 rev = "v${version}"; 13 - sha256 = "0rcwa8001il9p7s096b9gc5yld8cyxvrsmwh1gpc9b87j172z6ax"; 14 }; 15 16 checkInputs = [ nose ];
··· 2 3 buildPythonPackage rec { 4 pname = "rx"; 5 + version = "3.1.1"; 6 disabled = pythonOlder "3.6"; 7 8 # There are no tests on the pypi source ··· 10 owner = "ReactiveX"; 11 repo = "rxpy"; 12 rev = "v${version}"; 13 + sha256 = "0p0cs67l40npkvwgn5sb18l1b6df1b9fg6rzlqkwk2aa0v3cpvhf"; 14 }; 15 16 checkInputs = [ nose ];
+2 -2
pkgs/development/tools/analysis/flow/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "flow"; 5 - version = "0.143.1"; 6 7 src = fetchFromGitHub { 8 owner = "facebook"; 9 repo = "flow"; 10 rev = "refs/tags/v${version}"; 11 - sha256 = "sha256-x7+hLbfccyJLc84246R8xay0FJlK/3JgNc6pqeowl9Q="; 12 }; 13 14 installPhase = ''
··· 2 3 stdenv.mkDerivation rec { 4 pname = "flow"; 5 + version = "0.144.0"; 6 7 src = fetchFromGitHub { 8 owner = "facebook"; 9 repo = "flow"; 10 rev = "refs/tags/v${version}"; 11 + sha256 = "sha256-Qr/fizCV+t6SbETEqns72Xv24ucLcqi1JRXF8SAtQRU="; 12 }; 13 14 installPhase = ''
+3 -3
pkgs/development/tools/rust/cargo-generate/default.nix
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "cargo-generate"; 5 - version = "0.5.1"; 6 7 src = fetchFromGitHub { 8 owner = "ashleygwilliams"; 9 repo = "cargo-generate"; 10 rev = "v${version}"; 11 - sha256 = "0rq0anz0cawrgsinqyjh8wb3dgha09wx3ydrd3m9nfxs5dd3ij3k"; 12 }; 13 14 - cargoSha256 = "1vngn9gbiv59wrq230qk2mv00bsbdfk2mi1iqpr736c5wj1caqld"; 15 16 nativeBuildInputs = [ pkg-config ]; 17
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "cargo-generate"; 5 + version = "0.5.2"; 6 7 src = fetchFromGitHub { 8 owner = "ashleygwilliams"; 9 repo = "cargo-generate"; 10 rev = "v${version}"; 11 + sha256 = "sha256-/tZUYJaNvJ7H3xAc9ygcJD6meK1Em87VYqqYqY1l4zE="; 12 }; 13 14 + cargoSha256 = "sha256-/6nr+UNQPa8+cEnAMgyjuCV1JjfqXcNLfuqi4/kgmk0="; 15 16 nativeBuildInputs = [ pkg-config ]; 17
+2 -2
pkgs/servers/pg_tileserv/default.nix
··· 2 3 buildGoModule rec { 4 pname = "pg_tileserv"; 5 - version = "1.0.5"; 6 7 src = fetchFromGitHub { 8 owner = "CrunchyData"; 9 repo = pname; 10 rev = "v${version}"; 11 - sha256 = "sha256-62cJ0j/UfPW/ujKr0iA7Be8wZYlZ68mpJX8v1tAVREc="; 12 }; 13 14 vendorSha256 = "sha256-qdlh9H039GwKTxOhx+dzyUHkzJbaOeuguKnBOyAPe/E=";
··· 2 3 buildGoModule rec { 4 pname = "pg_tileserv"; 5 + version = "1.0.6"; 6 7 src = fetchFromGitHub { 8 owner = "CrunchyData"; 9 repo = pname; 10 rev = "v${version}"; 11 + sha256 = "sha256-6KFYTZq126uvxQ5IOrMN+hpnAk/WtmS1Dam7w6Oif1M="; 12 }; 13 14 vendorSha256 = "sha256-qdlh9H039GwKTxOhx+dzyUHkzJbaOeuguKnBOyAPe/E=";
+3 -3
pkgs/tools/graphics/gifski/default.nix
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "gifski"; 5 - version = "1.3.1"; 6 7 src = fetchFromGitHub { 8 owner = "ImageOptim"; 9 repo = "gifski"; 10 rev = version; 11 - sha256 = "sha256-sB8W5n3FvRAB9ygFg63NecSZgUw8FGk4pzviIbRF2vk="; 12 }; 13 14 - cargoSha256 = "sha256-0cFk1GnEJxMfY9GvQTdI5tkgtxGkH3ZQFTloo4/C+sY="; 15 16 nativeBuildInputs = [ pkg-config ]; 17
··· 2 3 rustPlatform.buildRustPackage rec { 4 pname = "gifski"; 5 + version = "1.3.3"; 6 7 src = fetchFromGitHub { 8 owner = "ImageOptim"; 9 repo = "gifski"; 10 rev = version; 11 + sha256 = "sha256-dBgDIS6U2iKzyo5nO0NOD488zfEbaZJH7luJN6khrnc="; 12 }; 13 14 + cargoSha256 = "sha256-/i5ZBCWFlhoheHsCI5f9yJ7sa6l/DB4AJckq5orinwI="; 15 16 nativeBuildInputs = [ pkg-config ]; 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 - }: 9 10 let 11 - python = python36; 12 - 13 - boost_static = boost165.override { 14 - inherit python; 15 - enableStatic = true; 16 - enablePython = true; 17 - }; 18 19 - version = "2.0"; 20 - sha256 = "15nn39ybsfjf3cw3xgkbarvxn4a9ymfd579ankm7yjxkw5gcif38"; 21 22 - in stdenv.mkDerivation { 23 pname = "luxcorerender"; 24 - inherit version; 25 26 src = fetchFromGitHub { 27 owner = "LuxCoreRender"; 28 repo = "LuxCore"; 29 rev = "luxcorerender_v${version}"; 30 - inherit sha256; 31 }; 32 33 - nativeBuildInputs = [ cmake flex bison doxygen makeWrapper pkg-config ]; 34 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 ]; 46 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"; 59 60 preConfigure = '' 61 - NIX_CFLAGS_COMPILE+=" -isystem ${python}/include/python${python.pythonVersion}" 62 NIX_LDFLAGS+=" -lpython3" 63 ''; 64 ··· 69 cp -va lib/* $out/lib 70 ''; 71 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 meta = with lib; { 80 description = "Open source, physically based, unbiased rendering engine"; 81 homepage = "https://luxcorerender.org/"; ··· 84 platforms = platforms.linux; 85 }; 86 } 87 - 88 89 # TODO (might not be necessary): 90 #
··· 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 }: 8 9 let 10 + boostWithPython = boost172.override { 11 + enablePython = true; 12 + enableNumpy = true; 13 + python = python3; 14 + }; 15 16 + # Requires a version number like "<MAJOR><MINOR>" 17 + pythonVersion = (lib.versions.major python3.version) 18 + + (lib.versions.minor python3.version); 19 20 + in stdenv.mkDerivation rec { 21 pname = "luxcorerender"; 22 + version = "2.4"; 23 24 src = fetchFromGitHub { 25 owner = "LuxCoreRender"; 26 repo = "LuxCore"; 27 rev = "luxcorerender_v${version}"; 28 + sha256 = "0xvivw79719fa1q762b76nyvzawfd3hmp8y5j04bax8a7f8mfa9k"; 29 }; 30 31 + nativeBuildInputs = [ pkg-config cmake flex bison doxygen wrapGAppsHook ]; 32 + 33 buildInputs = [ 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 ]; 50 51 + cmakeFlags = [ "-DPYTHON_V=${pythonVersion}" ] 52 + ++ lib.optional (!withOpenCL) "-DLUXRAYS_DISABLE_OPENCL=1" 53 + ++ lib.optional (!withCuda) "-DLUXRAYS_DISABLE_CUDA=1"; 54 55 preConfigure = '' 56 NIX_LDFLAGS+=" -lpython3" 57 ''; 58 ··· 63 cp -va lib/* $out/lib 64 ''; 65 66 meta = with lib; { 67 description = "Open source, physically based, unbiased rendering engine"; 68 homepage = "https://luxcorerender.org/"; ··· 71 platforms = platforms.linux; 72 }; 73 } 74 75 # TODO (might not be necessary): 76 #
+2 -2
pkgs/tools/misc/phoronix-test-suite/default.nix
··· 2 3 stdenv.mkDerivation rec { 4 pname = "phoronix-test-suite"; 5 - version = "10.2.0"; 6 7 src = fetchurl { 8 url = "https://phoronix-test-suite.com/releases/${pname}-${version}.tar.gz"; 9 - sha256 = "sha256-eoKHgbSyOEkwzki5wWuZlOAmZljxOMXcztA/g8TtutQ="; 10 }; 11 12 buildInputs = [ php ];
··· 2 3 stdenv.mkDerivation rec { 4 pname = "phoronix-test-suite"; 5 + version = "10.2.1"; 6 7 src = fetchurl { 8 url = "https://phoronix-test-suite.com/releases/${pname}-${version}.tar.gz"; 9 + sha256 = "sha256-2HB4TPbyG+cTY6O1k0tRPrnKyg41SYnVM919Hii3gpg="; 10 }; 11 12 buildInputs = [ php ];
+3 -3
pkgs/tools/system/gotop/default.nix
··· 2 3 buildGoModule rec { 4 pname = "gotop"; 5 - version = "4.1.0"; 6 7 src = fetchFromGitHub { 8 owner = "xxxserxxx"; 9 repo = pname; 10 rev = "v${version}"; 11 - sha256 = "09cs97fjjxcjxzsl2kh8j607cs5zy2hnrh1pb21pggzhg7dzsz0w"; 12 }; 13 14 runVend = true; 15 - vendorSha256 = "1mbjl7b49naaqkr2j658j17z9ryf5g3x6q34gvmrm7n9y082ggnz"; 16 17 preCheck = '' 18 export HOME=$(mktemp -d)
··· 2 3 buildGoModule rec { 4 pname = "gotop"; 5 + version = "4.1.1"; 6 7 src = fetchFromGitHub { 8 owner = "xxxserxxx"; 9 repo = pname; 10 rev = "v${version}"; 11 + sha256 = "sha256-3t6I4ah9gUmPlIBRL86BdgiUaMNiKNEeoUSRMASz1Yc="; 12 }; 13 14 runVend = true; 15 + vendorSha256 = "sha256-GcIaUIuTiSY1aKxRtclfl7hMNaZZx4uoVG7ahjF/4Hs="; 16 17 preCheck = '' 18 export HOME=$(mktemp -d)
+4 -2
pkgs/top-level/all-packages.nix
··· 6052 6053 lzip = callPackage ../tools/compression/lzip { }; 6054 6055 - luxcorerender = callPackage ../tools/graphics/luxcorerender { qt5 = qt514; }; 6056 6057 xz = callPackage ../tools/compression/xz { }; 6058 lzma = xz; # TODO: move to aliases.nix ··· 25529 25530 volnoti = callPackage ../applications/misc/volnoti { }; 25531 25532 - vorbis-tools = callPackage ../applications/audio/vorbis-tools { }; 25533 25534 vscode = callPackage ../applications/editors/vscode/vscode.nix { }; 25535
··· 6052 6053 lzip = callPackage ../tools/compression/lzip { }; 6054 6055 + luxcorerender = callPackage ../tools/graphics/luxcorerender { }; 6056 6057 xz = callPackage ../tools/compression/xz { }; 6058 lzma = xz; # TODO: move to aliases.nix ··· 25529 25530 volnoti = callPackage ../applications/misc/volnoti { }; 25531 25532 + vorbis-tools = callPackage ../applications/audio/vorbis-tools { 25533 + autoreconfHook = buildPackages.autoreconfHook269; 25534 + }; 25535 25536 vscode = callPackage ../applications/editors/vscode/vscode.nix { }; 25537