Merge master into staging-next

authored by github-actions[bot] and committed by GitHub b59d0495 c54b530a

+332 -190
+6
maintainers/maintainer-list.nix
··· 5206 5206 email = "jwilberding@afiniate.com"; 5207 5207 name = "Jordan Wilberding"; 5208 5208 }; 5209 + jwoudenberg = { 5210 + email = "nixpkgs@jasperwoudenberg.com"; 5211 + github = "jwoudenberg"; 5212 + githubId = 1525551; 5213 + name = "Jasper Woudenberg"; 5214 + }; 5209 5215 jwygoda = { 5210 5216 email = "jaroslaw@wygoda.me"; 5211 5217 github = "jwygoda";
+27 -1
nixos/modules/hardware/system-76.nix
··· 34 34 wantedBy = [ "multi-user.target" ]; 35 35 }; 36 36 }; 37 + 38 + power-pkg = pkgs.system76-power; 39 + powerConfig = mkIf cfg.power-daemon.enable { 40 + # Make system76-power usable by root from the command line. 41 + environment.systemPackages = [ power-pkg ]; 42 + 43 + services.dbus.packages = [ power-pkg ]; 44 + 45 + systemd.services.system76-power = { 46 + description = "System76 Power Daemon"; 47 + serviceConfig = { 48 + ExecStart = "${power-pkg}/bin/system76-power daemon"; 49 + Restart = "on-failure"; 50 + Type = "dbus"; 51 + BusName = "com.system76.PowerDaemon"; 52 + }; 53 + wantedBy = [ "multi-user.target" ]; 54 + }; 55 + }; 37 56 in { 38 57 options = { 39 58 hardware.system76 = { ··· 52 71 description = "Whether to make the system76 out-of-tree kernel modules available"; 53 72 type = types.bool; 54 73 }; 74 + 75 + power-daemon.enable = mkOption { 76 + default = cfg.enableAll; 77 + example = true; 78 + description = "Whether to enable the system76 power daemon"; 79 + type = types.bool; 80 + }; 55 81 }; 56 82 }; 57 83 58 - config = mkMerge [ moduleConfig firmwareConfig ]; 84 + config = mkMerge [ moduleConfig firmwareConfig powerConfig ]; 59 85 }
+15 -4
pkgs/applications/misc/koreader/default.nix
··· 2 2 , fetchurl 3 3 , makeWrapper 4 4 , dpkg 5 - , luajit 5 + , glib 6 + , gnutar 6 7 , gtk3-x11 8 + , luajit 9 + , sdcv 7 10 , SDL2 8 - , glib 9 11 , noto-fonts 10 12 , nerdfonts }: 11 13 let font-droid = nerdfonts.override { fonts = [ "DroidSansMono" ]; }; ··· 21 23 22 24 sourceRoot = "."; 23 25 nativeBuildInputs = [ makeWrapper dpkg ]; 24 - buildInputs = [ luajit gtk3-x11 SDL2 glib ]; 26 + buildInputs = [ 27 + glib 28 + gnutar 29 + gtk3-x11 30 + luajit 31 + sdcv 32 + SDL2 33 + ]; 25 34 unpackCmd = "dpkg-deb -x ${src} ."; 26 35 27 36 dontConfigure = true; ··· 30 39 installPhase = '' 31 40 mkdir -p $out 32 41 cp -R usr/* $out/ 33 - cp ${luajit}/bin/luajit $out/lib/koreader/luajit 42 + ln -sf ${luajit}/bin/luajit $out/lib/koreader/luajit 43 + ln -sf ${sdcv}/bin/sdcv $out/lib/koreader/sdcv 44 + ln -sf ${gnutar}/bin/tar $out/lib/koreader/tar 34 45 find $out -xtype l -delete 35 46 for i in ${noto-fonts}/share/fonts/truetype/noto/*; do 36 47 ln -s "$i" $out/lib/koreader/fonts/noto/
+20 -6
pkgs/applications/misc/scli/default.nix
··· 1 - { lib, buildPythonApplication, fetchFromGitHub, signal-cli, urwid 2 - , urwid-readline, dbus }: 1 + { lib 2 + , python3 3 + , fetchFromGitHub 4 + , dbus 5 + , signal-cli 6 + , xclip 7 + }: 3 8 4 - buildPythonApplication rec { 9 + python3.pkgs.buildPythonApplication rec { 5 10 pname = "scli"; 6 - version = "0.6.1"; 11 + version = "0.6.3"; 7 12 8 13 src = fetchFromGitHub { 9 14 owner = "isamert"; 10 15 repo = pname; 11 16 rev = "v${version}"; 12 - sha256 = "sha256-hWzpqj/sxPq/doxdmytnj5rh2qKQE71WMB0ugomWhHg"; 17 + sha256 = "sha256-QGVBJKTBo2RckGwW1deM2toRPT73PYDLvr7YVepkQvg="; 13 18 }; 14 19 15 - propagatedBuildInputs = [ signal-cli urwid urwid-readline dbus ]; 20 + propagatedBuildInputs = with python3.pkgs; [ 21 + pyqrcode 22 + urwid 23 + urwid-readline 24 + ]; 25 + 16 26 dontBuild = true; 17 27 18 28 checkPhase = '' ··· 28 38 patchShebangs scli 29 39 install -m755 -D scli $out/bin/scli 30 40 ''; 41 + 42 + makeWrapperArgs = [ 43 + "--prefix" "PATH" ":" (lib.makeBinPath [ dbus signal-cli xclip ]) 44 + ]; 31 45 32 46 meta = with lib; { 33 47 description = "Simple terminal user interface for Signal";
+4 -4
pkgs/applications/networking/cluster/fluxcd/default.nix
··· 1 1 { lib, buildGoModule, fetchFromGitHub, fetchzip, installShellFiles }: 2 2 3 3 let 4 - version = "0.13.4"; 4 + version = "0.15.3"; 5 5 6 6 manifests = fetchzip { 7 7 url = "https://github.com/fluxcd/flux2/releases/download/v${version}/manifests.tar.gz"; 8 - sha256 = "sha256-+2JvJFzH1CjU/WQ7MLtqd5Adfi/ktX9lPq4IyxPcUD8="; 8 + sha256 = "sha256-/uD0hxtTJSr+2tZcwzOIQcEbikHOshWukEBSaK3FiP4="; 9 9 stripRoot = false; 10 10 }; 11 11 in ··· 19 19 owner = "fluxcd"; 20 20 repo = "flux2"; 21 21 rev = "v${version}"; 22 - sha256 = "sha256-edyqxVl8oIwKp/eqFIbu+qn9zhYEnKJKwUbYZ7uxx0I="; 22 + sha256 = "sha256-Pyt5BaOawBwyBz7ULzOZr0Fc6bqM5dKn775AylUjDVE="; 23 23 }; 24 24 25 - vendorSha256 = "sha256-keIzuqaLppu6+XK3MFiU0en+SVxWVLpfkKEKOAVOz7k="; 25 + vendorSha256 = "sha256-17Kbun6Mrip4/XHN5eMHxgnSoX1KuGHwtb8yLTf/Mks="; 26 26 27 27 nativeBuildInputs = [ installShellFiles ]; 28 28
+10
pkgs/applications/networking/irc/weechat/default.nix
··· 10 10 , rubySupport ? true, ruby 11 11 , tclSupport ? true, tcl 12 12 , extraBuildInputs ? [] 13 + , fetchpatch 13 14 }: 14 15 15 16 let ··· 36 37 url = "https://weechat.org/files/src/weechat-${version}.tar.bz2"; 37 38 sha256 = "0pck4lczkk52mgwa1n0habp1xqi9xsgsh5q6bbsjmdbandvy5vc8"; 38 39 }; 40 + 41 + patches = [ 42 + # weechat 3.2 fails to build on Darwin, but is fixed for the next release: 43 + (fetchpatch { 44 + url = "https://github.com/weechat/weechat/commit/0b7e4977bef763993e361c23db0f52117b799949.patch"; 45 + sha256 = "eVdrhr4mrqv+OkqYOv1E7mUkmzd5NC3LmZhbXJnCpFg="; 46 + excludes = [ "ChangeLog.adoc" ]; 47 + }) 48 + ]; 39 49 40 50 outputs = [ "out" "man" ] ++ map (p: p.name) enabledPlugins; 41 51
+33
pkgs/applications/science/physics/MCFM/default.nix
··· 1 + { lib, stdenv, fetchurl, cmake, gfortran, lhapdf }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "MCFM"; 5 + version = "10.0.1"; 6 + 7 + src = fetchurl { 8 + url = "https://mcfm.fnal.gov/downloads/${pname}-${version}.tar.gz"; 9 + sha256 = "sha256-3Dg4KoILb0XhgGkzItDh/1opCtYrrIvtbuALYqPUvE8="; 10 + }; 11 + 12 + postPatch = '' 13 + substituteInPlace CMakeLists.txt \ 14 + --replace 'target_link_libraries(mcfm lhapdf_lib)' \ 15 + 'target_link_libraries(mcfm ''${lhapdf_lib})' 16 + ''; 17 + 18 + nativeBuildInputs = [ cmake gfortran ]; 19 + buildInputs = [ lhapdf ]; 20 + 21 + cmakeFlags = [ 22 + "-Duse_external_lhapdf=ON" 23 + "-Duse_internal_lhapdf=OFF" 24 + ]; 25 + 26 + meta = with lib; { 27 + description = "Monte Carlo for FeMtobarn processes"; 28 + homepage = "https://mcfm.fnal.gov"; 29 + license = licenses.gpl3Plus; 30 + maintainers = with maintainers; [ veprbl ]; 31 + platforms = lib.platforms.x86_64; 32 + }; 33 + }
+11 -3
pkgs/development/libraries/cmark/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, cmake }: 2 2 3 3 stdenv.mkDerivation rec { 4 - version = "0.29.0"; 5 4 pname = "cmark"; 5 + version = "0.30.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "jgm"; 9 - repo = "cmark"; 9 + repo = pname; 10 10 rev = version; 11 - sha256 = "0r7jpqhgnssq444i8pwji2g36058vfzwkl70wbiwj13h4w5rfc8f"; 11 + sha256 = "sha256-SU31kJL+8wt57bGW5fNeXjXPgPeCXZIknZwDxMXCfdc="; 12 12 }; 13 13 14 14 nativeBuildInputs = [ cmake ]; 15 + 16 + cmakeFlags = [ 17 + # https://github.com/commonmark/cmark/releases/tag/0.30.0 18 + # recommends distributions dynamically link 19 + "-DCMARK_STATIC=OFF" 20 + ]; 21 + 15 22 doCheck = !stdenv.isDarwin; 23 + 16 24 preCheck = '' 17 25 export LD_LIBRARY_PATH=$(readlink -f ./src) 18 26 '';
+2 -2
pkgs/development/libraries/kde-frameworks/kimageformats.nix
··· 1 1 { 2 2 mkDerivation, lib, 3 3 extra-cmake-modules, 4 - ilmbase, karchive, openexr, qtbase 4 + ilmbase, karchive, openexr, libavif, qtbase 5 5 }: 6 6 7 7 let inherit (lib) getDev; in ··· 9 9 mkDerivation { 10 10 name = "kimageformats"; 11 11 nativeBuildInputs = [ extra-cmake-modules ]; 12 - buildInputs = [ karchive openexr qtbase ]; 12 + buildInputs = [ karchive openexr libavif qtbase ]; 13 13 outputs = [ "out" ]; # plugins only 14 14 CXXFLAGS = "-I${getDev ilmbase}/include/OpenEXR"; 15 15 }
+2 -2
pkgs/development/python-modules/herepy/default.nix
··· 9 9 10 10 buildPythonPackage rec { 11 11 pname = "herepy"; 12 - version = "3.5.2"; 12 + version = "3.5.3"; 13 13 14 14 disabled = pythonOlder "3.5"; 15 15 ··· 17 17 owner = "abdullahselek"; 18 18 repo = "HerePy"; 19 19 rev = version; 20 - sha256 = "0z1brgnrzdzfmnydipja4hhrhnz4fwdjy3xa05mz28bwi6z52bcj"; 20 + sha256 = "sha256-05x3EQoyv38j4UcixN0sf5BI2oTjfasAIQyZqQSjdPM="; 21 21 }; 22 22 23 23 propagatedBuildInputs = [
-69
pkgs/development/python-modules/python-engineio/3.nix
··· 1 - { lib 2 - , stdenv 3 - , buildPythonPackage 4 - , fetchFromGitHub 5 - , aiohttp 6 - , eventlet 7 - , iana-etc 8 - , libredirect 9 - , mock 10 - , requests 11 - , six 12 - , tornado 13 - , websocket-client 14 - , websockets 15 - , pytestCheckHook 16 - , pythonAtLeast 17 - }: 18 - 19 - buildPythonPackage rec { 20 - pname = "python-engineio"; 21 - version = "3.14.2"; 22 - 23 - src = fetchFromGitHub { 24 - owner = "miguelgrinberg"; 25 - repo = "python-engineio"; 26 - rev = "v${version}"; 27 - sha256 = "1r3gvizrknbv036pvxid1l726wkb0l43bdaz5y879s7j3ipyb464"; 28 - }; 29 - 30 - propagatedBuildInputs = [ 31 - six 32 - ]; 33 - 34 - checkInputs = [ 35 - aiohttp 36 - eventlet 37 - mock 38 - requests 39 - tornado 40 - websocket-client 41 - websockets 42 - pytestCheckHook 43 - ]; 44 - 45 - preCheck = lib.optionalString stdenv.isLinux '' 46 - echo "nameserver 127.0.0.1" > resolv.conf 47 - export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf) \ 48 - LD_PRELOAD=${libredirect}/lib/libredirect.so 49 - ''; 50 - postCheck = '' 51 - unset NIX_REDIRECTS LD_PRELOAD 52 - ''; 53 - 54 - # somehow effective log level does not change? 55 - disabledTests = [ "test_logger" ]; 56 - pythonImportsCheck = [ "engineio" ]; 57 - 58 - meta = with lib; { 59 - description = "Python based Engine.IO client and server v3.x"; 60 - longDescription = '' 61 - Engine.IO is a lightweight transport protocol that enables real-time 62 - bidirectional event-based communication between clients and a server. 63 - ''; 64 - homepage = "https://github.com/miguelgrinberg/python-engineio/"; 65 - license = with licenses; [ mit ]; 66 - maintainers = with maintainers; [ graham33 ]; 67 - broken = stdenv.isDarwin && (pythonAtLeast "3.9"); # See https://github.com/miguelgrinberg/python-socketio/issues/567 68 - }; 69 - }
-47
pkgs/development/python-modules/python-socketio/4.nix
··· 1 - { lib 2 - , bidict 3 - , buildPythonPackage 4 - , fetchFromGitHub 5 - , mock 6 - , pytestCheckHook 7 - , python-engineio_3 8 - }: 9 - 10 - buildPythonPackage rec { 11 - pname = "python-socketio"; 12 - version = "4.6.1"; 13 - 14 - src = fetchFromGitHub { 15 - owner = "miguelgrinberg"; 16 - repo = "python-socketio"; 17 - rev = "v${version}"; 18 - sha256 = "14dijag17v84v0pp9qi89h5awb4h4i9rj0ppkixqv6is9z9lflw5"; 19 - }; 20 - 21 - propagatedBuildInputs = [ 22 - bidict 23 - python-engineio_3 24 - ]; 25 - 26 - checkInputs = [ 27 - mock 28 - pytestCheckHook 29 - ]; 30 - 31 - pythonImportsCheck = [ "socketio" ]; 32 - 33 - # pytestCheckHook seems to change the default log level to WARNING, but the 34 - # tests assert it is ERROR 35 - disabledTests = [ "test_logger" ]; 36 - 37 - meta = with lib; { 38 - description = "Python Socket.IO server and client 4.x"; 39 - longDescription = '' 40 - Socket.IO is a lightweight transport protocol that enables real-time 41 - bidirectional event-based communication between clients and a server. 42 - ''; 43 - homepage = "https://github.com/miguelgrinberg/python-socketio/"; 44 - license = with licenses; [ mit ]; 45 - maintainers = with maintainers; [ graham33 ]; 46 - }; 47 - }
-2
pkgs/development/python-modules/rich/default.nix
··· 5 5 , CommonMark 6 6 , colorama 7 7 , dataclasses 8 - , ipywidgets 9 8 , poetry-core 10 9 , pygments 11 10 , typing-extensions ··· 30 29 propagatedBuildInputs = [ 31 30 CommonMark 32 31 colorama 33 - ipywidgets 34 32 pygments 35 33 typing-extensions 36 34 ] ++ lib.optional (pythonOlder "3.7") [
+48
pkgs/games/multimc/0001-pick-latest-java-first.patch
··· 1 + From 44e1b2a19a869b907b40e56c85c8a47aa6c22097 Mon Sep 17 00:00:00 2001 2 + From: =?UTF-8?q?Mustafa=20=C3=87al=C4=B1=C5=9Fkan?= <musfay@protonmail.com> 3 + Date: Tue, 22 Jun 2021 21:50:11 +0300 4 + Subject: [PATCH] pick latest java first 5 + 6 + --- 7 + api/logic/java/JavaInstallList.cpp | 4 ++-- 8 + api/logic/java/JavaUtils.cpp | 2 +- 9 + 2 files changed, 3 insertions(+), 3 deletions(-) 10 + 11 + diff --git a/api/logic/java/JavaInstallList.cpp b/api/logic/java/JavaInstallList.cpp 12 + index 0bded03c..40898e20 100644 13 + --- a/api/logic/java/JavaInstallList.cpp 14 + +++ b/api/logic/java/JavaInstallList.cpp 15 + @@ -120,8 +120,8 @@ void JavaInstallList::updateListData(QList<BaseVersionPtr> versions) 16 + 17 + bool sortJavas(BaseVersionPtr left, BaseVersionPtr right) 18 + { 19 + - auto rleft = std::dynamic_pointer_cast<JavaInstall>(left); 20 + - auto rright = std::dynamic_pointer_cast<JavaInstall>(right); 21 + + auto rleft = std::dynamic_pointer_cast<JavaInstall>(right); 22 + + auto rright = std::dynamic_pointer_cast<JavaInstall>(left); 23 + return (*rleft) > (*rright); 24 + } 25 + 26 + diff --git a/api/logic/java/JavaUtils.cpp b/api/logic/java/JavaUtils.cpp 27 + index 5f004a10..6d633631 100644 28 + --- a/api/logic/java/JavaUtils.cpp 29 + +++ b/api/logic/java/JavaUtils.cpp 30 + @@ -350,7 +350,6 @@ QList<QString> JavaUtils::FindJavaPaths() 31 + qDebug() << "Linux Java detection incomplete - defaulting to \"java\""; 32 + 33 + QList<QString> javas; 34 + - javas.append(this->GetDefaultJava()->path); 35 + auto scanJavaDir = [&](const QString & dirPath) 36 + { 37 + QDir dir(dirPath); 38 + @@ -379,6 +378,7 @@ QList<QString> JavaUtils::FindJavaPaths() 39 + // general locations used by distro packaging 40 + scanJavaDir("/usr/lib/jvm"); 41 + scanJavaDir("/usr/lib32/jvm"); 42 + + javas.append(this->GetDefaultJava()->path); 43 + // javas stored in MultiMC's folder 44 + scanJavaDir("java"); 45 + return javas; 46 + -- 47 + 2.31.1 48 +
+17 -7
pkgs/games/multimc/default.nix
··· 1 - { lib, mkDerivation, fetchFromGitHub, cmake, jdk8, zlib, file, makeWrapper, xorg, libpulseaudio, qtbase, libGL }: 1 + { lib, mkDerivation, fetchFromGitHub, cmake, jdk8, jdk, zlib, file, makeWrapper, xorg, libpulseaudio, qtbase, libGL }: 2 2 3 3 let 4 - jdk = jdk8; 5 4 libpath = with xorg; lib.makeLibraryPath [ libX11 libXext libXcursor libXrandr libXxf86vm libpulseaudio libGL ]; 6 5 in mkDerivation rec { 7 6 pname = "multimc"; 8 - version = "0.6.12"; 7 + version = "unstable-2021-06-21"; 9 8 src = fetchFromGitHub { 10 9 owner = "MultiMC"; 11 10 repo = "MultiMC5"; 12 - rev = version; 13 - sha256 = "h2T023vrqemWhHiA2/gFleuUhIOucjwTgoExliFiYig="; 11 + rev = "8179a89103833805d5374399d80a4305be1b8355"; 12 + sha256 = "lPz6ZM7TjaixfwWMPaXijKZJQKFPrCegBhvbJ8Xg4P8="; 14 13 fetchSubmodules = true; 15 14 }; 16 15 nativeBuildInputs = [ cmake file makeWrapper ]; 17 - buildInputs = [ qtbase jdk zlib ]; 16 + buildInputs = [ qtbase jdk8 zlib ]; 17 + 18 + patches = [ ./0001-pick-latest-java-first.patch ]; 19 + 20 + postPatch = '' 21 + # hardcode jdk paths 22 + substituteInPlace api/logic/java/JavaUtils.cpp \ 23 + --replace 'scanJavaDir("/usr/lib/jvm")' 'javas.append("${jdk}/lib/openjdk/bin/java")' \ 24 + --replace 'scanJavaDir("/usr/lib32/jvm")' 'javas.append("${jdk8}/lib/openjdk/bin/java")' 25 + ''; 18 26 19 27 cmakeFlags = [ "-DMultiMC_LAYOUT=lin-system" ]; 20 28 ··· 23 31 install -Dm755 ../application/package/linux/multimc.desktop $out/share/applications/multimc.desktop 24 32 25 33 # xorg.xrandr needed for LWJGL [2.9.2, 3) https://github.com/LWJGL/lwjgl/issues/128 26 - wrapProgram $out/bin/multimc --set GAME_LIBRARY_PATH /run/opengl-driver/lib:${libpath} --prefix PATH : ${jdk}/bin/:${xorg.xrandr}/bin/ 34 + wrapProgram $out/bin/multimc \ 35 + --set GAME_LIBRARY_PATH /run/opengl-driver/lib:${libpath} \ 36 + --prefix PATH : ${lib.makeBinPath [ xorg.xrandr ]} 27 37 ''; 28 38 29 39 meta = with lib; {
+2 -4
pkgs/games/orthorobot/default.nix
··· 34 34 nativeBuildInputs = [ makeWrapper ]; 35 35 buildInputs = [ lua love zip ]; 36 36 37 - phases = [ "unpackPhase" "installPhase" ]; 37 + dontBuild = true; 38 38 39 - installPhase = 40 - '' 39 + installPhase = '' 41 40 mkdir -p $out/bin $out/share/games/lovegames $out/share/applications 42 41 zip -9 -r ${pname}.love ./* 43 42 mv ${pname}.love $out/share/games/lovegames/${pname}.love ··· 53 52 license = licenses.free; 54 53 downloadPage = "http://stabyourself.net/orthorobot/"; 55 54 }; 56 - 57 55 }
+1 -1
pkgs/misc/arm-trusted-firmware/default.nix
··· 17 17 owner = "ARM-software"; 18 18 repo = "arm-trusted-firmware"; 19 19 rev = "v${version}"; 20 - sha256 = "sha256-qfzZ3aVYYn0ZcZgKcLdB13B+eweDebLSBA3HTqdPdv0="; 20 + sha256 = "0w3blkqgmyb5bahlp04hmh8abrflbzy0qg83kmj1x9nv4mw66f3b"; 21 21 }; 22 22 23 23 depsBuildBuild = [ buildPackages.stdenv.cc ];
+30
pkgs/os-specific/linux/system76-power/default.nix
··· 1 + { pkg-config, libusb1, dbus, lib, rustPlatform, fetchFromGitHub }: 2 + 3 + rustPlatform.buildRustPackage rec { 4 + pname = "system76-power"; 5 + version = "1.1.16"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "pop-os"; 9 + repo = "system76-power"; 10 + rev = version; 11 + sha256 = "sha256-OtrhvUkNNgg6KlrqjwiBKL4zuQZBWevb0xgtSlEW2rQ="; 12 + }; 13 + 14 + nativeBuildInputs = [ pkg-config ]; 15 + buildInputs = [ dbus libusb1 ]; 16 + 17 + cargoSha256 = "sha256-ImACDbnUbwc0ZXgF3xxzes8+vUjt76B1xxgqzhgAYX4="; 18 + 19 + postInstall = '' 20 + install -D -m 0644 data/system76-power.conf $out/etc/dbus-1/system.d/system76-power.conf 21 + ''; 22 + 23 + meta = with lib; { 24 + description = "System76 Power Management"; 25 + homepage = "https://github.com/pop-os/system76-power"; 26 + license = licenses.gpl3Plus; 27 + platforms = [ "i686-linux" "x86_64-linux" ]; 28 + maintainers = [ maintainers.jwoudenberg ]; 29 + }; 30 + }
+2 -2
pkgs/tools/filesystems/fuse-overlayfs/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "fuse-overlayfs"; 5 - version = "1.5.0"; 5 + version = "1.6"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "containers"; 9 9 repo = pname; 10 10 rev = "v${version}"; 11 - sha256 = "sha256-/gdmrQhYsE4a/1sxtJ5IfVUWjh08wTVrOr4V7Fkn1i0="; 11 + sha256 = "sha256-YNR9Cj2StbmA2MjoQEWgJCMoHXQ1wIYikXGUEkmJEIg="; 12 12 }; 13 13 14 14 nativeBuildInputs = [ autoreconfHook pkg-config ];
+3 -3
pkgs/tools/games/amidst/default.nix
··· 2 2 , stdenv 3 3 , fetchurl 4 4 , makeWrapper 5 - , jre8 }: # TODO: Update this to the latest version of java upon the next release. This is currently not done because of https://github.com/toolbox4minecraft/amidst/issues/960 5 + , jre }: 6 6 7 7 stdenv.mkDerivation rec { 8 8 pname = "amidst"; ··· 15 15 16 16 dontUnpack = true; 17 17 18 - nativeBuildInputs = [ jre8 makeWrapper ]; 18 + nativeBuildInputs = [ jre makeWrapper ]; 19 19 20 20 installPhase = '' 21 21 mkdir -p $out/{bin,lib/amidst} 22 22 cp $src $out/lib/amidst/amidst.jar 23 - makeWrapper ${jre8}/bin/java $out/bin/amidst \ 23 + makeWrapper ${jre}/bin/java $out/bin/amidst \ 24 24 --add-flags "-jar $out/lib/amidst/amidst.jar" 25 25 ''; 26 26
+5
pkgs/tools/misc/esphome/default.nix
··· 21 21 sha256 = "0bz6gkrvn7mwmjsqrazgpy9r64m5jj462v0izgvdymkx8bjd8mpi"; 22 22 }; 23 23 24 + patches = [ 25 + # fix missing write permissions on src files before modifing them 26 + ./fix-src-permissions.patch 27 + ]; 28 + 24 29 postPatch = '' 25 30 # remove all version pinning (E.g tornado==5.1.1 -> tornado) 26 31 sed -i -e "s/==[0-9.]*//" requirements.txt
+46
pkgs/tools/misc/esphome/fix-src-permissions.patch
··· 1 + From f72c5035944065941daaa236b60664657c777726 Mon Sep 17 00:00:00 2001 2 + From: Martin Weinelt <hexa@darmstadt.ccc.de> 3 + Date: Wed, 23 Jun 2021 04:50:35 +0200 4 + Subject: [PATCH] Set u+w for copied src files before trying to overwrite them 5 + MIME-Version: 1.0 6 + Content-Type: text/plain; charset=UTF-8 7 + Content-Transfer-Encoding: 8bit 8 + 9 + We store esphome in the nix store, which results in its file permissions 10 + being 0444. Esphome, when compiling a firmware image, will copy these 11 + files from the nix store to a working directory. When updating between 12 + versions it will notice these files changed and try to copy the new 13 + version over, which would break, because the user had no write 14 + permissions on the files. 15 + 16 + ❯ esphome compile 01e4ac.yml 17 + INFO Reading configuration 01e4ac.yml... 18 + INFO Detected timezone 'CET' with UTC offset 1 and daylight saving time from 27 March 02:00:00 to 30 October 03:00:00 19 + INFO Generating C++ source... 20 + ERROR Error copying file /nix/store/lmzrgl1arqfd98jcss4rsmmy6dbffddn-esphome-1.19.2/lib/python3.8/site-packages/esphome/components/api/api_connection.cpp to 01e4ac/src/esphome/components/api/api_connection.cpp: [Errno 13] Permission denied: '01e4ac/src/esphome/components/api/api_connection.cpp' 21 + 22 + To fix this we modify chmod to 0644 just before esphome tries a copy 23 + operation, which will fix permissions on existing working directories 24 + just in time. 25 + --- 26 + esphome/helpers.py | 4 ++++ 27 + 1 file changed, 4 insertions(+) 28 + 29 + diff --git a/esphome/helpers.py b/esphome/helpers.py 30 + index ad7b8272..c456f4ff 100644 31 + --- a/esphome/helpers.py 32 + +++ b/esphome/helpers.py 33 + @@ -228,6 +228,10 @@ def copy_file_if_changed(src: os.PathLike, dst: os.PathLike) -> None: 34 + if file_compare(src, dst): 35 + return 36 + mkdir_p(os.path.dirname(dst)) 37 + + try: 38 + + os.chmod(dst, 0o644) 39 + + except OSError: 40 + + pass 41 + try: 42 + shutil.copy(src, dst) 43 + except OSError as err: 44 + -- 45 + 2.31.1 46 +
+1 -1
pkgs/tools/networking/dd-agent/integrations-core.nix
··· 75 75 mongo = (ps: [ ps.pymongo ]); 76 76 network = (ps: [ ps.psutil ]); 77 77 nginx = (ps: []); 78 - postgres = (ps: with ps; [ pg8000_1_12 psycopg2 ]); 78 + postgres = (ps: with ps; [ pg8000 psycopg2 ]); 79 79 }; 80 80 81 81 # All integrations (default + extra):
+26
pkgs/tools/networking/updog/default.nix
··· 1 + { lib, python3Packages }: 2 + 3 + python3Packages.buildPythonApplication rec { 4 + pname = "updog"; 5 + version = "1.4"; 6 + 7 + src = python3Packages.fetchPypi { 8 + inherit pname version; 9 + sha256 = "7n/ddjF6eJklo+T79+/zBxSHryebc2W9gxwxsb2BbF4="; 10 + }; 11 + 12 + propagatedBuildInputs = with python3Packages; [ 13 + colorama flask flask-httpauth werkzeug pyopenssl 14 + ]; 15 + 16 + checkPhase = '' 17 + $out/bin/updog --help > /dev/null 18 + ''; 19 + 20 + meta = with lib; { 21 + description = "Updog is a replacement for Python's SimpleHTTPServer"; 22 + homepage = "https://github.com/sc0tfree/updog"; 23 + license = licenses.mit; 24 + maintainers = with maintainers; [ ethancedwards8 ]; 25 + }; 26 + }
+2 -2
pkgs/tools/security/exploitdb/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "exploitdb"; 5 - version = "2021-06-19"; 5 + version = "2021-06-23"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "offensive-security"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "1qhznaq06plbkld4al3whrfvfpqgpwaxgwzdkyndvh40yn4sh1fz"; 11 + sha256 = "15gxxs5wjxvcjh5q9h17p163byzl33zg5yjlay1f1n2ng8nypygi"; 12 12 }; 13 13 14 14 installPhase = ''
+2 -2
pkgs/tools/security/nwipe/default.nix
··· 9 9 10 10 stdenv.mkDerivation rec { 11 11 pname = "nwipe"; 12 - version = "0.30"; 12 + version = "0.31"; 13 13 14 14 src = fetchFromGitHub { 15 15 owner = "martijnvanbrummelen"; 16 16 repo = "nwipe"; 17 17 rev = "v${version}"; 18 - sha256 = "sha256-cNZMFnk4L95jKTyGEUN3DlAChUNZlIjDdZqkkwPjehE="; 18 + sha256 = "sha256-+xwQLjl0jhven6udfCprRKW8qWM6JMh5MOZ+ZdaJWQg="; 19 19 }; 20 20 21 21 nativeBuildInputs = [
+3 -11
pkgs/tools/system/gdu/default.nix
··· 7 7 8 8 buildGoModule rec { 9 9 pname = "gdu"; 10 - version = "5.1.0"; 10 + version = "5.1.1"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "dundee"; 14 14 repo = pname; 15 15 rev = "v${version}"; 16 - sha256 = "sha256-OellGxW/2I/dKBxWgEv1Ta9OJ/2HUfDIzICQwvmjTCM="; 16 + sha256 = "sha256-9o/njurf1AWt04A8u38FMFcteLZlRHDejbH9+ekDjKI="; 17 17 }; 18 18 19 19 vendorSha256 = "sha256-9W1K01PJ+tRLSJ0L7NGHXT5w5oHmlBkT8kwnOLOzSCc="; ··· 35 35 installManPage gdu.1 36 36 ''; 37 37 38 - # doCheck = !(stdenv.isAarch64 || stdenv.isDarwin); 39 - # also fails x86_64-linux on hydra with: 40 - # dir_test.go:82: 41 - # Error Trace: dir_test.go:82 42 - # Error: Not equal: 43 - # expected: 0 44 - # actual : 512 45 - # Test: TestFlags 46 - doCheck = false; 38 + doCheck = !stdenv.isDarwin; 47 39 48 40 meta = with lib; { 49 41 description = "Disk usage analyzer with console interface";
+1
pkgs/top-level/aliases.nix
··· 117 117 clang9Stdenv = lowPrio llvmPackages_9.stdenv; 118 118 clang10Stdenv = lowPrio llvmPackages_10.stdenv; 119 119 clang11Stdenv = lowPrio llvmPackages_11.stdenv; 120 + clang12Stdenv = lowPrio llvmPackages_12.stdenv; 120 121 121 122 clangAnalyzer = clang-analyzer; # added 2015-02-20 122 123 clawsMail = claws-mail; # added 2016-04-29
+10 -1
pkgs/top-level/all-packages.nix
··· 4380 4380 4381 4381 trompeloeil = callPackage ../development/libraries/trompeloeil { }; 4382 4382 4383 + updog = callPackage ../tools/networking/updog { }; 4384 + 4383 4385 uudeview = callPackage ../tools/misc/uudeview { }; 4384 4386 4385 4387 uusi = haskell.lib.justStaticExecutables haskellPackages.uusi; ··· 20962 20964 20963 20965 system76-acpi = callPackage ../os-specific/linux/system76-acpi { }; 20964 20966 20967 + system76-power = callPackage ../os-specific/linux/system76-power { }; 20968 + 20965 20969 system76-io = callPackage ../os-specific/linux/system76-io { }; 20966 20970 20967 20971 tmon = callPackage ../os-specific/linux/tmon { }; ··· 26607 26611 26608 26612 scite = callPackage ../applications/editors/scite { }; 26609 26613 26610 - scli = with python3Packages; callPackage ../applications/misc/scli { }; 26614 + scli = callPackage ../applications/misc/scli { }; 26611 26615 26612 26616 scribus = callPackage ../applications/office/scribus { 26613 26617 inherit (gnome2) libart_lgpl; ··· 29889 29893 ### SCIENCE/PHYSICS 29890 29894 29891 29895 elmerfem = callPackage ../applications/science/physics/elmerfem {}; 29896 + 29897 + mcfm = callPackage ../applications/science/physics/MCFM { 29898 + stdenv = gccStdenv; 29899 + lhapdf = lhapdf.override { stdenv = gccStdenv; }; 29900 + }; 29892 29901 29893 29902 professor = callPackage ../applications/science/physics/professor { }; 29894 29903
+1 -16
pkgs/top-level/python-packages.nix
··· 5182 5182 5183 5183 pg8000 = callPackage ../development/python-modules/pg8000 { }; 5184 5184 5185 - pg8000_1_12 = callPackage ../development/python-modules/pg8000/1_12.nix { }; 5186 - 5187 5185 pgcli = callPackage ../development/tools/database/pgcli { }; 5188 5186 5189 5187 pglast = callPackage ../development/python-modules/pglast { }; ··· 6877 6875 6878 6876 python-engineio = callPackage ../development/python-modules/python-engineio { }; 6879 6877 6880 - python-engineio_3 = callPackage ../development/python-modules/python-engineio/3.nix { }; 6881 - 6882 6878 python-etcd = callPackage ../development/python-modules/python-etcd { }; 6883 6879 6884 6880 python-ethtool = callPackage ../development/python-modules/python-ethtool { }; ··· 7028 7024 }; 7029 7025 7030 7026 python-socketio = callPackage ../development/python-modules/python-socketio { }; 7031 - 7032 - python-socketio_4 = callPackage ../development/python-modules/python-socketio/4.nix { }; 7033 7027 7034 7028 python-socks = callPackage ../development/python-modules/python-socks { }; 7035 7029 ··· 8972 8966 8973 8967 vsure = callPackage ../development/python-modules/vsure { }; 8974 8968 8975 - vtk = self.vtk_7; 8976 - vtk_7 = toPythonModule (pkgs.vtk_7.override { 8977 - pythonInterpreter = python; 8978 - enablePython = true; 8979 - }); 8980 - vtk_8 = toPythonModule (pkgs.vtk_8.override { 8981 - pythonInterpreter = python; 8982 - enablePython = true; 8983 - }); 8984 - vtk_9 = toPythonModule (pkgs.vtk_9.override { 8969 + vtk = toPythonModule (pkgs.vtk.override { 8985 8970 pythonInterpreter = python; 8986 8971 enablePython = true; 8987 8972 });
+2
pkgs/top-level/python2-packages.nix
··· 380 380 381 381 pathpy = callPackage ../development/python-modules/path.py/2.nix { }; 382 382 383 + pg8000 = callPackage ../development/python-modules/pg8000/1_12.nix { }; 384 + 383 385 pillow = callPackage ../development/python-modules/pillow/6.nix { 384 386 inherit (pkgs) freetype libjpeg zlib libtiff libwebp tcl lcms2 tk; 385 387 inherit (pkgs.xorg) libX11;