Merge staging-next into staging

authored by github-actions[bot] and committed by GitHub e993db62 84d847e9

+243 -148
+1 -1
nixos/modules/services/continuous-integration/buildkite-agents.nix
··· 11 11 default = null; 12 12 description = lib.mdDoc description; 13 13 type = types.nullOr types.lines; 14 - } // (if example == null then {} else { inherit example; }); 14 + } // (lib.optionalAttrs (example != null) { inherit example; }); 15 15 }; 16 16 mkHookOptions = hooks: listToAttrs (map mkHookOption hooks); 17 17
+1 -1
nixos/modules/services/mail/rspamd.nix
··· 215 215 text = v.extraConfig; 216 216 }) 217 217 (filterAttrs (n: v: v.extraConfig != "") cfg.workers)) 218 - // (if cfg.extraConfig == "" then {} else { 218 + // (lib.optionalAttrs (cfg.extraConfig != "") { 219 219 "extra-config.inc".text = cfg.extraConfig; 220 220 }); 221 221 in
+1 -2
nixos/modules/services/web-apps/mattermost.nix
··· 86 86 mattermostConf = recursiveUpdate 87 87 mattermostConfWithoutPlugins 88 88 ( 89 - if mattermostPlugins == null then {} 90 - else { 89 + lib.optionalAttrs (mattermostPlugins != null) { 91 90 PluginSettings = { 92 91 Enable = true; 93 92 };
+2 -2
pkgs/applications/networking/nextcloud-client/default.nix
··· 26 26 27 27 mkDerivation rec { 28 28 pname = "nextcloud-client"; 29 - version = "3.8.2"; 29 + version = "3.9.0"; 30 30 31 31 outputs = [ "out" "dev" ]; 32 32 ··· 34 34 owner = "nextcloud"; 35 35 repo = "desktop"; 36 36 rev = "v${version}"; 37 - sha256 = "sha256-V5g6+Ci2MjBKnitY6IIaMY4gpoeMK+sd7HGZ1U87xL4="; 37 + sha256 = "sha256-XcQYttd5dl2TCbBxOlRBg8/mEiHekoxayPi81ot7N7o="; 38 38 }; 39 39 40 40 patches = [
-33
pkgs/applications/science/biology/MACS2/default.nix
··· 1 - { lib, python3, fetchPypi }: 2 - 3 - python3.pkgs.buildPythonPackage rec { 4 - pname = "MACS2"; 5 - version = "2.2.7.1"; 6 - 7 - src = fetchPypi { 8 - inherit pname version; 9 - sha256 = "1rcxj943kgzs746f5jrb72x1cp4v50rk3qmad0m99a02vndscb5d"; 10 - }; 11 - 12 - postPatch = '' 13 - # remove version check which breaks on 3.10 14 - substituteInPlace setup.py \ 15 - --replace 'if float(sys.version[:3])<3.6:' 'if False:' 16 - ''; 17 - 18 - propagatedBuildInputs = with python3.pkgs; [ numpy ]; 19 - 20 - # To prevent ERROR: diffpeak_cmd (unittest.loader._FailedTest) for obsolete 21 - # function (ImportError: Failed to import test module: diffpeak_cmd) 22 - doCheck = false; 23 - pythonImportsCheck = [ "MACS2" ]; 24 - 25 - meta = with lib; { 26 - description = "Model-based Analysis for ChIP-Seq"; 27 - license = licenses.bsd3; 28 - maintainers = with maintainers; [ gschwartz ]; 29 - platforms = platforms.linux; 30 - # error: ‘PyThreadState’ {aka ‘struct _ts’} has no member named ‘use_tracing’; did you mean ‘tracing’? 31 - broken = true; 32 - }; 33 - }
+45
pkgs/applications/science/biology/macs2/default.nix
··· 1 + { lib, python3, fetchPypi }: 2 + 3 + python3.pkgs.buildPythonPackage rec { 4 + pname = "macs2"; 5 + version = "2.2.8"; 6 + format = "pyproject"; 7 + 8 + src = fetchPypi { 9 + pname = lib.toUpper pname; 10 + inherit version; 11 + hash = "sha256-KgpDasidj4yUoeQQaQA3dg5eN5Ka1xnFRpbnTvhKmOA="; 12 + }; 13 + 14 + postPatch = '' 15 + # prevent setup.py from installing numpy 16 + substituteInPlace setup.py \ 17 + --replace "subprocess.call([sys.executable, \"-m\", 'pip', 'install', f'numpy{numpy_requires}'],cwd=cwd)" "0" 18 + ''; 19 + 20 + nativeBuildInputs = with python3.pkgs; [ 21 + cython 22 + setuptools 23 + ]; 24 + 25 + propagatedBuildInputs = with python3.pkgs; [ numpy ]; 26 + 27 + nativeCheckInputs = [ 28 + python3.pkgs.unittestCheckHook 29 + ]; 30 + 31 + unittestFlagsArray = [ 32 + "-s" 33 + "test" 34 + ]; 35 + 36 + pythonImportsCheck = [ "MACS2" ]; 37 + 38 + meta = with lib; { 39 + description = "Model-based Analysis for ChIP-Seq"; 40 + homepage = "https://github.com/macs3-project/MACS/"; 41 + changelog = "https://github.com/macs3-project/MACS/releases/tag/v${version}"; 42 + license = licenses.bsd3; 43 + maintainers = with maintainers; [ gschwartz ]; 44 + }; 45 + }
+75
pkgs/applications/science/misc/gplates/boost-placeholders.patch
··· 1 + diff --unified --recursive a/src/gui/TopologyTools.cc b/src/gui/TopologyTools.cc 2 + --- a/src/gui/TopologyTools.cc 2021-07-05 05:11:47.000000000 +0200 3 + +++ b/src/gui/TopologyTools.cc 2022-12-07 22:35:20.444054124 +0100 4 + @@ -3448,7 +3448,7 @@ 5 + std::find_if( 6 + d_visible_boundary_section_seq.begin(), 7 + d_visible_boundary_section_seq.end(), 8 + - boost::bind(&VisibleSection::d_section_info_index, _1) == 9 + + boost::bind(&VisibleSection::d_section_info_index, boost::placeholders::_1) == 10 + boost::cref(section_index)); 11 + 12 + if (visible_section_iter == d_visible_boundary_section_seq.end()) 13 + @@ -3467,7 +3467,7 @@ 14 + std::find_if( 15 + d_visible_interior_section_seq.begin(), 16 + d_visible_interior_section_seq.end(), 17 + - boost::bind(&VisibleSection::d_section_info_index, _1) == 18 + + boost::bind(&VisibleSection::d_section_info_index, boost::placeholders::_1) == 19 + boost::cref(section_index)); 20 + 21 + if (visible_section_iter == d_visible_interior_section_seq.end()) 22 + diff --unified --recursive a/src/presentation/ReconstructionGeometryRenderer.cc b/src/presentation/ReconstructionGeometryRenderer.cc 23 + --- a/src/presentation/ReconstructionGeometryRenderer.cc 2021-07-05 05:11:50.000000000 +0200 24 + +++ b/src/presentation/ReconstructionGeometryRenderer.cc 2022-12-07 22:36:11.117884262 +0100 25 + @@ -274,7 +274,7 @@ 26 + GPlatesPresentation::ReconstructionGeometryRenderer::RenderParamsPopulator::visit_reconstruct_visual_layer_params( 27 + const ReconstructVisualLayerParams &params) 28 + { 29 + - d_render_params.show_vgp = boost::bind(&ReconstructVisualLayerParams::show_vgp, &params, _1, _2); 30 + + d_render_params.show_vgp = boost::bind(&ReconstructVisualLayerParams::show_vgp, &params, boost::placeholders::_1, boost::placeholders::_2); 31 + d_render_params.vgp_draw_circular_error = params.get_vgp_draw_circular_error(); 32 + d_render_params.fill_polygons = params.get_fill_polygons(); 33 + d_render_params.fill_polylines = params.get_fill_polylines(); 34 + diff --unified --recursive a/src/presentation/VisualLayerRegistry.cc b/src/presentation/VisualLayerRegistry.cc 35 + --- a/src/presentation/VisualLayerRegistry.cc 2021-07-05 05:11:50.000000000 +0200 36 + +++ b/src/presentation/VisualLayerRegistry.cc 2022-12-07 22:38:12.950877614 +0100 37 + @@ -448,7 +448,7 @@ 38 + &GPlatesQtWidgets::ReconstructScalarCoverageLayerOptionsWidget::create, 39 + boost::bind( 40 + &ReconstructScalarCoverageVisualLayerParams::create, 41 + - _1), 42 + + boost::placeholders::_1), 43 + true); 44 + 45 + registry.register_visual_layer_type( 46 + @@ -498,7 +498,7 @@ 47 + // NOTE: We pass in ViewState and not the GlobeAndMapWidget, obtained from 48 + // ViewportWindow, because ViewportWindow is not yet available (a reference to 49 + // it not yet been initialised inside ViewState) so accessing it would crash... 50 + - _1, boost::ref(view_state)), 51 + + boost::placeholders::_1, boost::ref(view_state)), 52 + true); 53 + 54 + // DERIVED_DATA group. 55 + @@ -549,7 +549,7 @@ 56 + &GPlatesQtWidgets::VelocityFieldCalculatorLayerOptionsWidget::create, 57 + boost::bind( 58 + &VelocityFieldCalculatorVisualLayerParams::create, 59 + - _1, boost::cref(view_state.get_rendered_geometry_parameters())), 60 + + boost::placeholders::_1, boost::cref(view_state.get_rendered_geometry_parameters())), 61 + true); 62 + 63 + using namespace GPlatesUtils; 64 + diff --unified --recursive a/src/qt-widgets/ViewportWindow.cc b/src/qt-widgets/ViewportWindow.cc 65 + --- a/src/qt-widgets/ViewportWindow.cc 2021-08-05 05:44:01.000000000 +0200 66 + +++ b/src/qt-widgets/ViewportWindow.cc 2022-12-07 22:39:20.487981302 +0100 67 + @@ -326,7 +326,7 @@ 68 + *d_geometry_operation_state_ptr, 69 + *d_modify_geometry_state, 70 + *d_measure_distance_state_ptr, 71 + - boost::bind(&canvas_tool_status_message, boost::ref(*this), _1), 72 + + boost::bind(&canvas_tool_status_message, boost::ref(*this), boost::placeholders::_1), 73 + get_view_state(), 74 + *this); 75 +
+4
pkgs/applications/science/misc/gplates/default.nix
··· 40 40 sha256 = "0lrcmcxc924ixddii8cyglqlwwxvk7f00g4yzbss5i3fgcbh8n96"; 41 41 }; 42 42 43 + patches = [ 44 + ./boost-placeholders.patch 45 + ]; 46 + 43 47 nativeBuildInputs = [ 44 48 cmake 45 49 doxygen
+4 -8
pkgs/applications/window-managers/sway/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, fetchpatch, substituteAll, swaybg 2 2 , meson, ninja, pkg-config, wayland-scanner, scdoc 3 3 , wayland, libxkbcommon, pcre2, json_c, libevdev 4 - , pango, cairo, libinput, libcap, pam, gdk-pixbuf, librsvg 4 + , pango, cairo, libinput, gdk-pixbuf, librsvg 5 5 , wlroots_0_16, wayland-protocols, libdrm 6 6 , nixosTests 7 7 # Used by the NixOS module: 8 8 , isNixOS ? false 9 9 , enableXWayland ? true, xorg 10 10 , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemd, systemd 11 - , dbusSupport ? true 12 - , dbus 13 - , trayEnabled ? systemdSupport && dbusSupport 11 + , trayEnabled ? systemdSupport 14 12 }: 15 13 16 14 # The "sd-bus-provider" meson option does not include a "none" option, 17 15 # but it is silently ignored iff "-Dtray=disabled". We use "basu" 18 16 # (which is not in nixpkgs) instead of "none" to alert us if this 19 17 # changes: https://github.com/swaywm/sway/issues/6843#issuecomment-1047288761 20 - assert trayEnabled -> systemdSupport && dbusSupport; 18 + assert trayEnabled -> systemdSupport; 21 19 let sd-bus-provider = if systemdSupport then "libsystemd" else "basu"; in 22 20 23 21 stdenv.mkDerivation rec { ··· 65 63 66 64 buildInputs = [ 67 65 wayland libxkbcommon pcre2 json_c libevdev 68 - pango cairo libinput libcap pam gdk-pixbuf librsvg 66 + pango cairo libinput gdk-pixbuf librsvg 69 67 wayland-protocols libdrm 70 68 (wlroots_0_16.override { inherit enableXWayland; }) 71 - ] ++ lib.optionals dbusSupport [ 72 - dbus 73 69 ] ++ lib.optionals enableXWayland [ 74 70 xorg.xcbutilwm 75 71 ];
+2 -2
pkgs/data/icons/numix-icon-theme-circle/default.nix
··· 2 2 3 3 stdenvNoCC.mkDerivation rec { 4 4 pname = "numix-icon-theme-circle"; 5 - version = "23.05.15"; 5 + version = "23.06.11"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "numixproject"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "sha256-jZ++x2xtwmCYqv1jdJuNM2sHpmvkv6gj8Xo4PN2Vjsk="; 11 + sha256 = "sha256-bEUT6hBAKyilbUWSbyvGRuIwatooJ3k/mvVJg1PncjA="; 12 12 }; 13 13 14 14 nativeBuildInputs = [ gtk3 ];
+2 -2
pkgs/data/icons/numix-icon-theme-square/default.nix
··· 2 2 3 3 stdenvNoCC.mkDerivation rec { 4 4 pname = "numix-icon-theme-square"; 5 - version = "23.05.15"; 5 + version = "23.06.11"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "numixproject"; 9 9 repo = pname; 10 10 rev = version; 11 - sha256 = "sha256-tcEVwc3Ez0h9JwiHyYfMvdTfUaivy4sH3QJR9tP1LSk="; 11 + sha256 = "sha256-pm3sEx3OJkS4sz+sg09HeTSdQZTdjyxJCsjYWCA4mN0="; 12 12 }; 13 13 14 14 nativeBuildInputs = [ gtk3 ];
+1 -3
pkgs/development/coq-modules/tlc/default.nix
··· 23 23 maintainers = [ maintainers.vbgl ]; 24 24 }; 25 25 }).overrideAttrs (x: 26 - if lib.versionAtLeast x.version "20210316" 27 - then {} 28 - else { 26 + lib.optionalAttrs (lib.versionOlder x.version "20210316") { 29 27 installFlags = [ "CONTRIB=$(out)/lib/coq/${coq.coq-version}/user-contrib" ]; 30 28 } 31 29 )
+2 -2
pkgs/development/libraries/httplib/default.nix
··· 7 7 8 8 stdenv.mkDerivation rec { 9 9 pname = "httplib"; 10 - version = "0.12.5"; 10 + version = "0.12.6"; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "yhirose"; 14 14 repo = "cpp-httplib"; 15 15 rev = "v${version}"; 16 - hash = "sha256-9qCquF6DXpgtrfXVd/hc8n1Eu1nOxf/Lm+R13QI0N9Q="; 16 + hash = "sha256-7bH7bq6lsobf5ZEyxPXPqPopZyn9NKInlqmuNzmHkkM="; 17 17 }; 18 18 19 19 nativeBuildInputs = [ cmake ];
-10
pkgs/development/libraries/qtkeychain/0002-Fix-install-name-Darwin.patch
··· 1 - --- a/CMakeLists.txt 2 - +++ b/CMakeLists.txt 3 - @@ -215,7 +215,6 @@ 4 - VERSION ${QTKEYCHAIN_VERSION} 5 - SOVERSION ${QTKEYCHAIN_SOVERSION} 6 - MACOSX_RPATH 1 7 - - INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" 8 - INSTALL_RPATH_USE_LINK_PATH TRUE 9 - ) 10 -
+3 -5
pkgs/development/libraries/qtkeychain/default.nix
··· 12 12 13 13 stdenv.mkDerivation rec { 14 14 pname = "qtkeychain"; 15 - version = "0.12.0"; 15 + version = "0.14.1"; 16 16 17 17 src = fetchFromGitHub { 18 18 owner = "frankosterfeld"; 19 19 repo = "qtkeychain"; 20 - rev = "v${version}"; 21 - sha256 = "0gi1nx4bcc1vwfw41cif3xi2i59229vy0kc2r5959d8n6yv31kfr"; # v0.9.1 20 + rev = "${version}"; 21 + sha256 = "sha256-LclYOuIYn+jYCvg69uHFlV3VcZ2KWdr8lFyCSBIB7Kw="; 22 22 }; 23 23 24 24 dontWrapQtApps = true; 25 - 26 - patches = [ ./0002-Fix-install-name-Darwin.patch ]; 27 25 28 26 cmakeFlags = [ 29 27 "-DBUILD_WITH_QT6=${if lib.versions.major qtbase.version == "6" then "ON" else "OFF"}"
+1 -2
pkgs/development/lisp-modules-obsolete/quicklisp-to-nix-overrides.nix
··· 4 4 skipBuildPhase = x: { 5 5 overrides = y: ((x.overrides y) // { buildPhase = "true"; }); 6 6 }; 7 - multiOverride = l: x: if l == [] then {} else 8 - ((builtins.head l) x) // (multiOverride (builtins.tail l) x); 7 + multiOverride = l: x: pkgs.lib.optionalAttrs (l != []) (((builtins.head l) x) // (multiOverride (builtins.tail l) x)); 9 8 lispName = (clwrapper.lisp.pname or (builtins.parseDrvName clwrapper.lisp.name).name); 10 9 ifLispIn = l: f: if (pkgs.lib.elem lispName l) then f else (x: {}); 11 10 ifLispNotIn = l: f: if ! (pkgs.lib.elem lispName l) then f else (x: {});
+2 -2
pkgs/development/tools/codespelunker/default.nix
··· 2 2 3 3 buildGoModule rec { 4 4 pname = "codespelunker"; 5 - version = "1.0.0"; 5 + version = "1.2.0"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "boyter"; 9 9 repo = "cs"; 10 10 rev = "v${version}"; 11 - hash = "sha256-NN/78paePdvYHQ4J2aQu56PvEciOXY8DxHd4ajfVCFU="; 11 + hash = "sha256-kWKDr8KKD3M5MyRuEMMZXvTqflDidkMsu2fN9N0s50w="; 12 12 }; 13 13 14 14 vendorHash = null;
+2 -2
pkgs/games/openttd/default.nix
··· 29 29 in 30 30 stdenv.mkDerivation rec { 31 31 pname = "openttd"; 32 - version = "13.1"; 32 + version = "13.3"; 33 33 34 34 src = fetchurl { 35 35 url = "https://cdn.openttd.org/openttd-releases/${version}/${pname}-${version}-source.tar.xz"; 36 - hash = "sha256-Xt8i03A1I4KF72cql9WeZCgL66sj5YR4CDTM1r4KWLs="; 36 + hash = "sha256-qvoW0vtnFlE0xzqIj3n3pe19oXoEz26ez2csnLiecZI="; 37 37 }; 38 38 39 39 nativeBuildInputs = [ cmake makeWrapper ];
+2 -2
pkgs/games/openttd/jgrpp.nix
··· 2 2 3 3 openttd.overrideAttrs (oldAttrs: rec { 4 4 pname = "openttd-jgrpp"; 5 - version = "0.53.1"; 5 + version = "0.54.1"; 6 6 7 7 src = fetchFromGitHub rec { 8 8 owner = "JGRennison"; 9 9 repo = "OpenTTD-patches"; 10 10 rev = "jgrpp-${version}"; 11 - hash = "sha256-+5AOsop3x1fkX5UfxMFLhrTLeSnt+E0PYoU5n31N3f4="; 11 + hash = "sha256-MfYh2a3wjWB/5zgTE8AAIREI2OEhykqF0Rad7I+912U="; 12 12 }; 13 13 14 14 buildInputs = oldAttrs.buildInputs ++ [ zstd ];
+4 -4
pkgs/servers/bird-lg/default.nix
··· 3 3 generic = { modRoot, vendorSha256 }: 4 4 buildGoModule rec { 5 5 pname = "bird-lg-${modRoot}"; 6 - version = "1.2.0"; 6 + version = "1.3.0"; 7 7 8 8 src = fetchFromGitHub { 9 9 owner = "xddxdd"; 10 10 repo = "bird-lg-go"; 11 11 rev = "v${version}"; 12 - sha256 = "sha256-Ldp/c1UU5EFnKjlUqQ+Hh6rVEOYEX7kaDL36edr9pNA="; 12 + hash = "sha256-VQJHrC9ag697QfCEre1KvwbotfMm8f1otJ6SPg5zRYM="; 13 13 }; 14 14 15 15 doDist = false; ··· 32 32 33 33 bird-lg-frontend = generic { 34 34 modRoot = "frontend"; 35 - vendorSha256 = "sha256-lYOi3tfXYhsFaWgikDUoJYRm8sxFNFKiFQMlVx/8AkA="; 35 + vendorSha256 = "sha256-4ajQp425SFciTi2DV3ITW4iQkq6kUJFK2BabTTb87Zo="; 36 36 }; 37 37 38 38 bird-lg-proxy = generic { 39 39 modRoot = "proxy"; 40 - vendorSha256 = "sha256-QHLq4RuQaCMjefs7Vl7zSVgjLMDXvIZcM8d6/B5ECZc="; 40 + vendorSha256 = "sha256-o8F3uNGpz1fZr15HCY2PC7xRx9NakmvYrVQKe42ElOA="; 41 41 }; 42 42 in 43 43 symlinkJoin {
+76 -49
pkgs/servers/code-server/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, buildGoModule, makeWrapper 2 - , cacert, moreutils, jq, git, rsync, pkg-config, yarn, python3 3 - , esbuild, nodejs_16, node-gyp, libsecret, xorg, ripgrep 4 - , AppKit, Cocoa, CoreServices, Security, cctools, xcbuild, quilt, nixosTests }: 1 + { lib 2 + , stdenv 3 + , fetchFromGitHub 4 + , buildGoModule 5 + , makeWrapper 6 + , cacert 7 + , moreutils 8 + , jq 9 + , git 10 + , rsync 11 + , pkg-config 12 + , yarn 13 + , python3 14 + , esbuild 15 + , nodejs 16 + , node-gyp 17 + , libsecret 18 + , xorg 19 + , ripgrep 20 + , AppKit 21 + , Cocoa 22 + , CoreServices 23 + , Security 24 + , cctools 25 + , xcbuild 26 + , quilt 27 + , nixosTests 28 + }: 5 29 6 30 let 7 31 system = stdenv.hostPlatform.system; 8 32 9 - nodejs = nodejs_16; 10 33 python = python3; 11 34 yarn' = yarn.override { inherit nodejs; }; 12 35 defaultYarnOpts = [ ]; ··· 25 48 }; 26 49 27 50 # replaces esbuild's download script with a binary from nixpkgs 28 - patchEsbuild = path : version : '' 51 + patchEsbuild = path: version: '' 29 52 mkdir -p ${path}/node_modules/esbuild/bin 30 53 jq "del(.scripts.postinstall)" ${path}/node_modules/esbuild/package.json | sponge ${path}/node_modules/esbuild/package.json 31 54 sed -i 's/${version}/${esbuild'.version}/g' ${path}/node_modules/esbuild/lib/main.js 32 55 ln -s -f ${esbuild'}/bin/esbuild ${path}/node_modules/esbuild/bin/esbuild 33 56 ''; 34 - 35 - in stdenv.mkDerivation rec { 57 + in 58 + stdenv.mkDerivation (finalAttrs: { 36 59 pname = "code-server"; 37 60 version = "4.12.0"; 38 61 39 62 src = fetchFromGitHub { 40 63 owner = "coder"; 41 64 repo = "code-server"; 42 - rev = "v${version}"; 65 + rev = "v${finalAttrs.version}"; 43 66 fetchSubmodules = true; 44 67 hash = "sha256-PQp5dji2Ynp+LJRWBka41umwe1/IR76C+at/wyOWGcI="; 45 68 }; 46 69 47 - cloudAgent = buildGoModule rec { 48 - pname = "cloud-agent"; 49 - version = "0.2.6"; 70 + yarnCache = stdenv.mkDerivation { 71 + name = "${finalAttrs.pname}-${finalAttrs.version}-${system}-yarn-cache"; 72 + inherit (finalAttrs) src; 50 73 51 - src = fetchFromGitHub { 52 - owner = "coder"; 53 - repo = "cloud-agent"; 54 - rev = "v${version}"; 55 - sha256 = "1s3jpgvzizc9skc27c3x35sya2p4ywhvdi3l73927z3j47wszy7f"; 56 - }; 57 - 58 - vendorSha256 = "14xzlbmki8fk8mbcci62q8sklyd0nyga07ww1ap0vdrv7d1g31hn"; 59 - 60 - postPatch = '' 61 - # the cloud-agent release tag has an empty version string, so add it back in 62 - substituteInPlace internal/version/version.go \ 63 - --replace 'var Version string' 'var Version string = "v${version}"' 64 - ''; 65 - }; 74 + nativeBuildInputs = [ yarn' git cacert ]; 66 75 67 - yarnCache = stdenv.mkDerivation { 68 - name = "${pname}-${version}-${system}-yarn-cache"; 69 - inherit src; 70 - nativeBuildInputs = [ yarn' git cacert ]; 71 76 buildPhase = '' 72 77 export HOME=$PWD 73 78 export GIT_SSL_CAINFO="${cacert}/etc/ssl/certs/ca-bundle.crt" ··· 84 89 xargs -I {} yarn --cwd {} \ 85 90 --ignore-scripts --ignore-engines 86 91 ''; 92 + 87 93 outputHashMode = "recursive"; 88 94 outputHashAlgo = "sha256"; 89 - 90 - # to get hash values use nix-build -A code-server.prefetchYarnCache 91 95 outputHash = "sha256-4Vr9u3+W/IhbbTc39jyDyDNQODlmdF+M/N8oJn0Z4+w="; 92 96 }; 93 97 94 98 nativeBuildInputs = [ 95 - nodejs yarn' python pkg-config makeWrapper git rsync jq moreutils quilt 99 + nodejs 100 + yarn' 101 + python 102 + pkg-config 103 + makeWrapper 104 + git 105 + rsync 106 + jq 107 + moreutils 108 + quilt 96 109 ]; 110 + 97 111 buildInputs = lib.optionals (!stdenv.isDarwin) [ libsecret ] 98 112 ++ (with xorg; [ libX11 libxkbfile ]) 99 113 ++ lib.optionals stdenv.isDarwin [ 100 - AppKit Cocoa CoreServices Security cctools xcbuild 101 - ]; 114 + AppKit 115 + Cocoa 116 + CoreServices 117 + Security 118 + cctools 119 + xcbuild 120 + ]; 102 121 103 122 patches = [ 104 123 # remove git calls from vscode build script ··· 116 135 ''; 117 136 118 137 configurePhase = '' 138 + runHook preConfigure 139 + 119 140 # run yarn offline by default 120 141 echo '--install.offline true' >> .yarnrc 121 142 ··· 125 146 '') defaultYarnOpts} 126 147 127 148 # set offline mirror to yarn cache we created in previous steps 128 - yarn --offline config set yarn-offline-mirror "${yarnCache}" 149 + yarn --offline config set yarn-offline-mirror "${finalAttrs.yarnCache}" 129 150 130 151 # skip unnecessary electron download 131 152 export ELECTRON_SKIP_BINARY_DOWNLOAD=1 ··· 140 161 # use updated node-gyp. fixes the following error on Darwin: 141 162 # PermissionError: [Errno 1] Operation not permitted: '/usr/sbin/pkgutil' 142 163 export npm_config_node_gyp=${node-gyp}/lib/node_modules/node-gyp/bin/node-gyp.js 164 + 165 + runHook postConfigure 143 166 ''; 144 167 145 168 buildPhase = '' 169 + runHook preBuild 170 + 146 171 # install code-server dependencies 147 172 yarn --offline --ignore-scripts 148 173 ··· 191 216 192 217 ${patchEsbuild "./lib/vscode/build" "0.12.6"} 193 218 ${patchEsbuild "./lib/vscode/extensions" "0.11.23"} 194 - '' + lib.optionalString stdenv.isDarwin '' 219 + '' + lib.optionalString stdenv.isDarwin '' 195 220 # use prebuilt binary for @parcel/watcher, which requires macOS SDK 10.13+ 196 221 # (see issue #101229) 197 222 pushd ./lib/vscode/remote/node_modules/@parcel/watcher ··· 215 240 yarn build 216 241 217 242 # build vscode 218 - VERSION=${version} yarn build:vscode 243 + VERSION=${finalAttrs.version} yarn build:vscode 219 244 220 245 # create release 221 246 yarn release 247 + 248 + runHook postBuild 222 249 ''; 223 250 224 251 installPhase = '' 252 + runHook preInstall 253 + 225 254 mkdir -p $out/libexec/code-server $out/bin 226 255 227 256 # copy release to libexec path ··· 230 259 # install only production dependencies 231 260 yarn --offline --cwd "$out/libexec/code-server" --production 232 261 233 - # link coder-cloud agent from nix store 234 - mkdir -p $out/libexec/code-server/lib 235 - ln -s "${cloudAgent}/bin/cloud-agent" $out/libexec/code-server/lib/coder-cloud-agent 236 - 237 262 # create wrapper 238 - makeWrapper "${nodejs_16}/bin/node" "$out/bin/code-server" \ 263 + makeWrapper "${nodejs}/bin/node" "$out/bin/code-server" \ 239 264 --add-flags "$out/libexec/code-server/out/node/entry.js" 265 + 266 + runHook postInstall 240 267 ''; 241 268 242 269 passthru = { 243 - prefetchYarnCache = lib.overrideDerivation yarnCache (d: { 270 + prefetchYarnCache = lib.overrideDerivation finalAttrs.yarnCache (d: { 244 271 outputHash = lib.fakeSha256; 245 272 }); 246 273 tests = { ··· 248 275 }; 249 276 }; 250 277 251 - meta = with lib; { 278 + meta = { 252 279 description = "Run VS Code on a remote server"; 253 280 longDescription = '' 254 281 code-server is VS Code running on a remote server, accessible through the 255 282 browser. 256 283 ''; 257 284 homepage = "https://github.com/coder/code-server"; 258 - license = licenses.mit; 259 - maintainers = with maintainers; [ offline henkery ]; 285 + license = lib.licenses.mit; 286 + maintainers = with lib.maintainers; [ offline henkery ]; 260 287 platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ]; 261 288 }; 262 - } 289 + })
+3 -3
pkgs/servers/plex/raw.nix
··· 12 12 # server, and the FHS userenv and corresponding NixOS module should 13 13 # automatically pick up the changes. 14 14 stdenv.mkDerivation rec { 15 - version = "1.32.3.7162-b0a36929b"; 15 + version = "1.32.3.7192-7aa441827"; 16 16 pname = "plexmediaserver"; 17 17 18 18 # Fetch the source 19 19 src = if stdenv.hostPlatform.system == "aarch64-linux" then fetchurl { 20 20 url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_arm64.deb"; 21 - sha256 = "sha256-y1H1DmgMCYEzmhN01LgFHPzN/as2z457tZMdEJ0lgxk="; 21 + sha256 = "sha256-sqlvJIMlyrRfvtQB+IpbmWwdQBA2lEGNPEc3zTfwr4s="; 22 22 } else fetchurl { 23 23 url = "https://downloads.plex.tv/plex-media-server-new/${version}/debian/plexmediaserver_${version}_amd64.deb"; 24 - sha256 = "sha256-q95xyp+XJbDuT+SRP+EbcFDqqdcvRP4P1rnX8RO1egQ="; 24 + sha256 = "sha256-F3djGd03yD64TtjnB/S8HWDNmY1kA3OgctpamGNxPZ0="; 25 25 }; 26 26 27 27 outputs = [ "out" "basedb" ];
+3 -3
pkgs/tools/misc/jfrog-cli/default.nix
··· 6 6 7 7 buildGoModule rec { 8 8 pname = "jfrog-cli"; 9 - version = "2.38.5"; 9 + version = "2.40.0"; 10 10 11 11 src = fetchFromGitHub { 12 12 owner = "jfrog"; 13 13 repo = "jfrog-cli"; 14 14 rev = "refs/tags/v${version}"; 15 - hash = "sha256-fd5YJCaqT78TjhC3CkX7+iPTxW278U7GTiXLH46L2m4="; 15 + hash = "sha256-Fhpg78IV+NEkKXWk0Xw58uE6G2qfaYhgKfhmTVAGvEo="; 16 16 }; 17 17 18 - vendorHash = "sha256-6sUifqqryPrlwOFYPKp1VrgGE+xF/ELz8s7eLrMJnr4="; 18 + vendorHash = "sha256-zzqXl6i1ZrxIU9ePzTd+drOtPU76DcfLY8RDu/rVNzE="; 19 19 20 20 postInstall = '' 21 21 # Name the output the same way as the original build script does
+3 -3
pkgs/tools/security/cariddi/default.nix
··· 5 5 6 6 buildGoModule rec { 7 7 pname = "cariddi"; 8 - version = "1.3.1"; 8 + version = "1.3.2"; 9 9 10 10 src = fetchFromGitHub { 11 11 owner = "edoardottt"; 12 12 repo = pname; 13 13 rev = "refs/tags/v${version}"; 14 - hash = "sha256-zz9p35Wk5jwp5Cn4+FgJCwG2KKgBuOQsH4lJeAVhpCM="; 14 + hash = "sha256-oM4A4chSBTiCMr3bW0AvjAFlyuqvKKKY2Ji4PYRsUqA="; 15 15 }; 16 16 17 - vendorHash = "sha256-s6aEq3LzCj9xzieLD1aC69KV3aeav+bQ5VUZ3TbFetw="; 17 + vendorHash = "sha256-EeoJssX/OkIJKltANfvMirvDVmVVIe9hDj+rThKpd10="; 18 18 19 19 meta = with lib; { 20 20 description = "Crawler for URLs and endpoints";
+1
pkgs/top-level/aliases.nix
··· 1023 1023 ### M ### 1024 1024 1025 1025 m3d-linux = throw "'m3d-linux' has been renamed to/replaced by 'm33-linux'"; # Converted to throw 2022-02-22 1026 + MACS2 = macs2; # Added 2023-06-12 1026 1027 mail-notification = throw "mail-notification has been removed from nixpkgs, as it's unmaintained and has dependencies on old gnome libraries we want to remove"; # Added 2021-08-21 1027 1028 mailpile = throw "mailpile was removed from nixpkgs, as it is stuck on python2"; # Added 2022-01-12 1028 1029 man_db = throw "'man_db' has been renamed to/replaced by 'man-db'"; # Converted to throw 2022-02-22
+3 -7
pkgs/top-level/all-packages.nix
··· 35270 35270 }; 35271 35271 35272 35272 code-server = callPackage ../servers/code-server { 35273 + nodejs = nodejs_16; 35273 35274 inherit (darwin.apple_sdk.frameworks) AppKit Cocoa CoreServices Security; 35274 35275 inherit (darwin) cctools; 35275 35276 inherit (nodePackages) node-gyp; ··· 37857 37858 37858 37859 macse = callPackage ../applications/science/biology/macse { }; 37859 37860 37860 - MACS2 = callPackage ../applications/science/biology/MACS2 { }; 37861 + macs2 = callPackage ../applications/science/biology/macs2 { }; 37861 37862 37862 37863 mafft = callPackage ../applications/science/biology/mafft { }; 37863 37864 ··· 38797 38798 38798 38799 gildas = callPackage ../applications/science/astronomy/gildas { }; 38799 38800 38800 - gplates = libsForQt5.callPackage ../applications/science/misc/gplates { 38801 - boost = boost175; 38802 - # build with Python 3.10 fails, because boost <= 1.78 can't find 38803 - # pythons with double digits in minor versions, like X.YZ 38804 - python3 = python39; 38805 - }; 38801 + gplates = libsForQt5.callPackage ../applications/science/misc/gplates { }; 38806 38802 38807 38803 grap = callPackage ../tools/security/grap { }; 38808 38804