From 8ac5effc2f4a56febe7a9cd5213094ec98b07875 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 9 May 2024 01:27:59 +0000 Subject: [PATCH 0001/1574] opencl-headers: 2023.12.14 -> 2024.05.08 --- pkgs/development/libraries/opencl-headers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/opencl-headers/default.nix b/pkgs/development/libraries/opencl-headers/default.nix index b13dc2bb8dd7..90dc1883eb9d 100644 --- a/pkgs/development/libraries/opencl-headers/default.nix +++ b/pkgs/development/libraries/opencl-headers/default.nix @@ -10,13 +10,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "opencl-headers"; - version = "2023.12.14"; + version = "2024.05.08"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "OpenCL-Headers"; rev = "v${finalAttrs.version}"; - sha256 = "sha256-wF9KQjzYKJf6ulXRy80o53bp6lTtm8q1NubKbcH+RY0="; + sha256 = "sha256-FXDZa5umNilFPls3g/2aNqJvJOJX2JYfY08/Lfm1H1Q="; }; nativeBuildInputs = [ cmake ]; From a9a9833f0178b9f799de6fab9e3b236a25496296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Mancilla?= Date: Sun, 18 Aug 2024 19:24:08 -0400 Subject: [PATCH 0002/1574] libwebp: format --- .../development/libraries/libwebp/default.nix | 90 ++++++++++++------- 1 file changed, 59 insertions(+), 31 deletions(-) diff --git a/pkgs/development/libraries/libwebp/default.nix b/pkgs/development/libraries/libwebp/default.nix index f788a7f59b9c..cf2285c7368f 100644 --- a/pkgs/development/libraries/libwebp/default.nix +++ b/pkgs/development/libraries/libwebp/default.nix @@ -1,27 +1,39 @@ -{ lib, stdenv, fetchFromGitHub, autoreconfHook, libtool -, threadingSupport ? true # multi-threading -, openglSupport ? false, libglut, libGL, libGLU # OpenGL (required for vwebp) -, pngSupport ? true, libpng # PNG image format -, jpegSupport ? true, libjpeg # JPEG image format -, tiffSupport ? true, libtiff # TIFF image format -, gifSupport ? true, giflib # GIF image format -, alignedSupport ? false # Force aligned memory operations -, swap16bitcspSupport ? false # Byte swap for 16bit color spaces -, experimentalSupport ? false # Experimental code -, libwebpmuxSupport ? true # Build libwebpmux -, libwebpdemuxSupport ? true # Build libwebpdemux -, libwebpdecoderSupport ? true # Build libwebpdecoder +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + libtool, + threadingSupport ? true, # multi-threading + openglSupport ? false, + libglut, + libGL, + libGLU, # OpenGL (required for vwebp) + pngSupport ? true, + libpng, # PNG image format + jpegSupport ? true, + libjpeg, # JPEG image format + tiffSupport ? true, + libtiff, # TIFF image format + gifSupport ? true, + giflib, # GIF image format + alignedSupport ? false, # Force aligned memory operations + swap16bitcspSupport ? false, # Byte swap for 16bit color spaces + experimentalSupport ? false, # Experimental code + libwebpmuxSupport ? true, # Build libwebpmux + libwebpdemuxSupport ? true, # Build libwebpdemux + libwebpdecoderSupport ? true, # Build libwebpdecoder -# for passthru.tests -, gd -, graphicsmagick -, haskellPackages -, imagemagick -, imlib2 -, libjxl -, opencv -, python3 -, vips + # for passthru.tests + gd, + graphicsmagick, + haskellPackages, + imagemagick, + imlib2, + libjxl, + opencv, + python3, + vips, }: stdenv.mkDerivation rec { @@ -29,10 +41,10 @@ stdenv.mkDerivation rec { version = "1.4.0"; src = fetchFromGitHub { - owner = "webmproject"; - repo = pname; - rev = "v${version}"; - hash = "sha256-OR/VzKNn3mnwjf+G+RkEGAaaKrhVlAu1e2oTRwdsPj8="; + owner = "webmproject"; + repo = "libwebp"; + rev = "v${version}"; + hash = "sha256-OR/VzKNn3mnwjf+G+RkEGAaaKrhVlAu1e2oTRwdsPj8="; }; configureFlags = [ @@ -50,9 +62,17 @@ stdenv.mkDerivation rec { (lib.enableFeature libwebpdecoderSupport "libwebpdecoder") ]; - nativeBuildInputs = [ autoreconfHook libtool ]; - buildInputs = [ ] - ++ lib.optionals openglSupport [ libglut libGL libGLU ] + nativeBuildInputs = [ + autoreconfHook + libtool + ]; + buildInputs = + [ ] + ++ lib.optionals openglSupport [ + libglut + libGL + libGLU + ] ++ lib.optionals pngSupport [ libpng ] ++ lib.optionals jpegSupport [ libjpeg ] ++ lib.optionals tiffSupport [ libtiff ] @@ -61,7 +81,15 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; passthru.tests = { - inherit gd graphicsmagick imagemagick imlib2 libjxl opencv vips; + inherit + gd + graphicsmagick + imagemagick + imlib2 + libjxl + opencv + vips + ; inherit (python3.pkgs) pillow imread; haskell-webp = haskellPackages.webp; }; From 909c4914937137a5b19a42a78eb9252e7ce2b3b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Mancilla?= Date: Sun, 18 Aug 2024 19:25:14 -0400 Subject: [PATCH 0003/1574] libwebp: build with CMake --- .../development/libraries/libwebp/default.nix | 37 ++++++------------- 1 file changed, 12 insertions(+), 25 deletions(-) diff --git a/pkgs/development/libraries/libwebp/default.nix b/pkgs/development/libraries/libwebp/default.nix index cf2285c7368f..abd1e1bd9afe 100644 --- a/pkgs/development/libraries/libwebp/default.nix +++ b/pkgs/development/libraries/libwebp/default.nix @@ -2,8 +2,7 @@ lib, stdenv, fetchFromGitHub, - autoreconfHook, - libtool, + cmake, threadingSupport ? true, # multi-threading openglSupport ? false, libglut, @@ -17,12 +16,8 @@ libtiff, # TIFF image format gifSupport ? true, giflib, # GIF image format - alignedSupport ? false, # Force aligned memory operations swap16bitcspSupport ? false, # Byte swap for 16bit color spaces - experimentalSupport ? false, # Experimental code libwebpmuxSupport ? true, # Build libwebpmux - libwebpdemuxSupport ? true, # Build libwebpdemux - libwebpdecoderSupport ? true, # Build libwebpdecoder # for passthru.tests gd, @@ -47,25 +42,19 @@ stdenv.mkDerivation rec { hash = "sha256-OR/VzKNn3mnwjf+G+RkEGAaaKrhVlAu1e2oTRwdsPj8="; }; - configureFlags = [ - (lib.enableFeature threadingSupport "threading") - (lib.enableFeature openglSupport "gl") - (lib.enableFeature pngSupport "png") - (lib.enableFeature jpegSupport "jpeg") - (lib.enableFeature tiffSupport "tiff") - (lib.enableFeature gifSupport "gif") - (lib.enableFeature alignedSupport "aligned") - (lib.enableFeature swap16bitcspSupport "swap-16bit-csp") - (lib.enableFeature experimentalSupport "experimental") - (lib.enableFeature libwebpmuxSupport "libwebpmux") - (lib.enableFeature libwebpdemuxSupport "libwebpdemux") - (lib.enableFeature libwebpdecoderSupport "libwebpdecoder") + cmakeFlags = [ + (lib.cmakeBool "BUILD_SHARED_LIBS" true) + (lib.cmakeBool "WEBP_USE_THREAD" threadingSupport) + (lib.cmakeBool "WEBP_BUILD_VWEBP" openglSupport) + (lib.cmakeBool "WEBP_BUILD_IMG2WEBP" (pngSupport || jpegSupport || tiffSupport)) + (lib.cmakeBool "WEBP_BUILD_GIF2WEBP" gifSupport) + (lib.cmakeBool "WEBP_BUILD_ANIM_UTILS" false) # Not installed + (lib.cmakeBool "WEBP_BUILD_EXTRAS" false) # Not installed + (lib.cmakeBool "WEBP_ENABLE_SWAP_16BIT_CSP" swap16bitcspSupport) + (lib.cmakeBool "WEBP_BUILD_LIBWEBPMUX" libwebpmuxSupport) ]; - nativeBuildInputs = [ - autoreconfHook - libtool - ]; + nativeBuildInputs = [ cmake ]; buildInputs = [ ] ++ lib.optionals openglSupport [ @@ -78,8 +67,6 @@ stdenv.mkDerivation rec { ++ lib.optionals tiffSupport [ libtiff ] ++ lib.optionals gifSupport [ giflib ]; - enableParallelBuilding = true; - passthru.tests = { inherit gd From d7fda424a65c2c0f407e59cc126c2f3360e38a26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Mancilla?= Date: Sat, 24 Aug 2024 17:53:35 -0400 Subject: [PATCH 0004/1574] ladybird: remove workaround for missing libwebp CMake targets --- .../networking/browsers/ladybird/default.nix | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/pkgs/applications/networking/browsers/ladybird/default.nix b/pkgs/applications/networking/browsers/ladybird/default.nix index 2c610945e396..0efc4e3e7748 100644 --- a/pkgs/applications/networking/browsers/ladybird/default.nix +++ b/pkgs/applications/networking/browsers/ladybird/default.nix @@ -74,18 +74,6 @@ stdenv.mkDerivation (finalAttrs: { substituteInPlace Meta/CMake/lagom_install_options.cmake \ --replace-fail "\''${CMAKE_INSTALL_BINDIR}" "bin" \ --replace-fail "\''${CMAKE_INSTALL_LIBDIR}" "lib" - - # libwebp is not built with cmake support yet - # https://github.com/NixOS/nixpkgs/issues/334148 - cat > Meta/CMake/FindWebP.cmake <<'EOF' - find_package(PkgConfig) - pkg_check_modules(WEBP libwebp REQUIRED) - include_directories(''${WEBP_INCLUDE_DIRS}) - link_directories(''${WEBP_LIBRARY_DIRS}) - EOF - substituteInPlace Userland/Libraries/LibGfx/CMakeLists.txt \ - --replace-fail 'WebP::' "" \ - --replace-fail libwebpmux webpmux ''; preConfigure = '' From 45c386ca9bf64e68da2b6edc1555a57219782a5c Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 4 Sep 2024 06:20:09 +0100 Subject: [PATCH 0005/1574] libevdev: 1.13.2 -> 1.13.3 Changes: https://gitlab.freedesktop.org/libevdev/libevdev/-/compare/libevdev-1.13.2...libevdev-1.13.3?from_project_id=167&straight=false --- pkgs/development/libraries/libevdev/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libevdev/default.nix b/pkgs/development/libraries/libevdev/default.nix index abd8185eae2a..5138eeca4dda 100644 --- a/pkgs/development/libraries/libevdev/default.nix +++ b/pkgs/development/libraries/libevdev/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation rec { pname = "libevdev"; - version = "1.13.2"; + version = "1.13.3"; src = fetchurl { url = "https://www.freedesktop.org/software/${pname}/${pname}-${version}.tar.xz"; - sha256 = "sha256-PsqGps5VuB1bzpEGN/xFHIu+NzsflpjzdcfxrQ3jrEg="; + hash = "sha256-q/GqzoYgjuvdXTVQ/97UyNc7tAW3ltUcOJydBgTLz78="; }; nativeBuildInputs = [ python3 ]; From c2b0b19d1cf2b2dc35f9e5a435c13a489e92e1c2 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 6 Sep 2024 09:29:07 +0100 Subject: [PATCH 0006/1574] xorg.libXi: 1.8.1 -> 1.8.2 Changes: https://lists.x.org/archives/xorg-announce/2024-September/003530.html --- pkgs/servers/x11/xorg/default.nix | 6 +++--- pkgs/servers/x11/xorg/tarballs.list | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index a7c5aa884d2f..6b402f9ef053 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -1398,11 +1398,11 @@ self: with self; { # THIS IS A GENERATED FILE. DO NOT EDIT! libXi = callPackage ({ stdenv, pkg-config, fetchurl, xorgproto, libX11, libXext, libXfixes, testers }: stdenv.mkDerivation (finalAttrs: { pname = "libXi"; - version = "1.8.1"; + version = "1.8.2"; builder = ./builder.sh; src = fetchurl { - url = "mirror://xorg/individual/lib/libXi-1.8.1.tar.xz"; - sha256 = "19snjrsdib2y2iq8c1zbrp78qy1b6sdmyvif422gg27j2klc1gw9"; + url = "mirror://xorg/individual/lib/libXi-1.8.2.tar.xz"; + sha256 = "0161qsac0dgvkkcihpm2062p1lk2l5mj4i7smd713qnnadg5bq6h"; }; hardeningDisable = [ "bindnow" "relro" ]; strictDeps = true; diff --git a/pkgs/servers/x11/xorg/tarballs.list b/pkgs/servers/x11/xorg/tarballs.list index 2575b47dd271..824edeb9aa19 100644 --- a/pkgs/servers/x11/xorg/tarballs.list +++ b/pkgs/servers/x11/xorg/tarballs.list @@ -187,7 +187,7 @@ mirror://xorg/individual/lib/libXfixes-6.0.1.tar.xz mirror://xorg/individual/lib/libXfont-1.5.4.tar.bz2 mirror://xorg/individual/lib/libXfont2-2.0.6.tar.xz mirror://xorg/individual/lib/libXft-2.3.8.tar.xz -mirror://xorg/individual/lib/libXi-1.8.1.tar.xz +mirror://xorg/individual/lib/libXi-1.8.2.tar.xz mirror://xorg/individual/lib/libXinerama-1.1.5.tar.xz mirror://xorg/individual/lib/libxkbfile-1.1.3.tar.xz mirror://xorg/individual/lib/libXmu-1.2.1.tar.xz From b13221acbcae6ebc9c88cdf2e2461bf9764e2759 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 8 Sep 2024 08:40:41 +0100 Subject: [PATCH 0007/1574] cryptsetup: 2.7.4 -> 2.7.5 Changes: https://gitlab.com/cryptsetup/cryptsetup/-/compare/v2.7.4...v2.7.5?from_project_id=195655&straight=false --- pkgs/os-specific/linux/cryptsetup/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/cryptsetup/default.nix b/pkgs/os-specific/linux/cryptsetup/default.nix index c6e75de9bea7..8713325b00bc 100644 --- a/pkgs/os-specific/linux/cryptsetup/default.nix +++ b/pkgs/os-specific/linux/cryptsetup/default.nix @@ -14,14 +14,14 @@ stdenv.mkDerivation rec { pname = "cryptsetup"; - version = "2.7.4"; + version = "2.7.5"; outputs = [ "bin" "out" "dev" "man" ]; separateDebugInfo = true; src = fetchurl { url = "mirror://kernel/linux/utils/cryptsetup/v${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; - hash = "sha256-3OKZA6WPe3dP5hGR5+belV3g9A2eJ7ACj/zzQ4wOlIA="; + hash = "sha256-0r5Dlbj1A7Dr9LLYHbkMNalwUKNY7iH+YqDftm5dVSI="; }; patches = [ From 567bd7c6a61c0673cbc8e16a70a0b36f19dc8cbf Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Fri, 6 Sep 2024 20:38:58 +0200 Subject: [PATCH 0008/1574] autoPatchelfHook: expose script as top level package Signed-off-by: Sefa Eyeoglu --- .../setup-hooks/auto-patchelf.sh | 2 +- .../au/auto-patchelf}/auto-patchelf.py | 2 +- pkgs/by-name/au/auto-patchelf/package.nix | 41 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 6 +-- 4 files changed, 44 insertions(+), 7 deletions(-) rename pkgs/{build-support/setup-hooks => by-name/au/auto-patchelf}/auto-patchelf.py (99%) create mode 100644 pkgs/by-name/au/auto-patchelf/package.nix diff --git a/pkgs/build-support/setup-hooks/auto-patchelf.sh b/pkgs/build-support/setup-hooks/auto-patchelf.sh index 59b596d27172..dc83dee3246f 100644 --- a/pkgs/build-support/setup-hooks/auto-patchelf.sh +++ b/pkgs/build-support/setup-hooks/auto-patchelf.sh @@ -79,7 +79,7 @@ autoPatchelf() { fi done - @pythonInterpreter@ @autoPatchelfScript@ \ + auto-patchelf \ ${norecurse:+--no-recurse} \ --ignore-missing "${ignoreMissingDepsArray[@]}" \ --paths "$@" \ diff --git a/pkgs/build-support/setup-hooks/auto-patchelf.py b/pkgs/by-name/au/auto-patchelf/auto-patchelf.py similarity index 99% rename from pkgs/build-support/setup-hooks/auto-patchelf.py rename to pkgs/by-name/au/auto-patchelf/auto-patchelf.py index eca3007514de..938ea6310118 100644 --- a/pkgs/build-support/setup-hooks/auto-patchelf.py +++ b/pkgs/by-name/au/auto-patchelf/auto-patchelf.py @@ -425,7 +425,7 @@ interpreter_arch: str = None # type: ignore libc_lib: Path = None # type: ignore if __name__ == "__main__": - nix_support = Path(os.environ['NIX_BINTOOLS']) / 'nix-support' + nix_support = Path(os.environ.get('NIX_BINTOOLS', os.environ['DEFAULT_BINTOOLS'])) / 'nix-support' interpreter_path = Path((nix_support / 'dynamic-linker').read_text().strip()) libc_lib = Path((nix_support / 'orig-libc').read_text().strip()) / 'lib' diff --git a/pkgs/by-name/au/auto-patchelf/package.nix b/pkgs/by-name/au/auto-patchelf/package.nix new file mode 100644 index 000000000000..1e1880560adf --- /dev/null +++ b/pkgs/by-name/au/auto-patchelf/package.nix @@ -0,0 +1,41 @@ +{ + lib, + python3Packages, +}: + +python3Packages.buildPythonApplication { + pname = "auto-patchelf"; + version = "0-unstable-2024-08-14"; + pyproject = false; + + src = lib.fileset.toSource { + root = ./.; + fileset = lib.fileset.unions [ + ./auto-patchelf.py + ]; + }; + + dependencies = with python3Packages; [ + pyelftools + ]; + + installPhase = '' + runHook preInstall + + install -Dm755 auto-patchelf.py $out/bin/auto-patchelf + + runHook postInstall + ''; + + makeWrapperArgs = [ + "--set DEFAULT_BINTOOLS $NIX_BINTOOLS" + ]; + + meta = { + description = "Automatically patch ELF binaries using patchelf"; + mainProgram = "auto-patchelf"; + license = lib.licenses.mit; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ Scrumplex ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 327073d55c7d..ddc585c7dbbf 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -188,11 +188,7 @@ with pkgs; autoPatchelfHook = makeSetupHook { name = "auto-patchelf-hook"; - propagatedBuildInputs = [ bintools ]; - substitutions = { - pythonInterpreter = "${python3.withPackages (ps: [ ps.pyelftools ])}/bin/python"; - autoPatchelfScript = ../build-support/setup-hooks/auto-patchelf.py; - }; + propagatedBuildInputs = [ auto-patchelf bintools ]; } ../build-support/setup-hooks/auto-patchelf.sh; tomato-c = callPackage ../applications/misc/tomato-c { }; From c8e45153f6838025b4830a9b7f63a010a02567d2 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 9 Sep 2024 08:56:54 +0100 Subject: [PATCH 0009/1574] eglexternalplatform: 1.1 -> 1.2 Changes: https://github.com/NVIDIA/eglexternalplatform/releases/tag/1.2 --- .../libraries/eglexternalplatform/default.nix | 28 ++++++------------- 1 file changed, 8 insertions(+), 20 deletions(-) diff --git a/pkgs/development/libraries/eglexternalplatform/default.nix b/pkgs/development/libraries/eglexternalplatform/default.nix index 50e276372274..cd545f69f048 100644 --- a/pkgs/development/libraries/eglexternalplatform/default.nix +++ b/pkgs/development/libraries/eglexternalplatform/default.nix @@ -1,34 +1,22 @@ -{ stdenvNoCC +{ stdenv , lib , fetchFromGitHub +, meson +, ninja }: -stdenvNoCC.mkDerivation rec { +stdenv.mkDerivation rec { pname = "eglexternalplatform"; - version = "1.1"; + version = "1.2"; src = fetchFromGitHub { owner = "Nvidia"; repo = "eglexternalplatform"; - rev = "7c8f8e2218e46b1a4aa9538520919747f1184d86"; - sha256 = "0lr5s2xa1zn220ghmbsiwgmx77l156wk54c7hybia0xpr9yr2nhb"; + rev = version; + hash = "sha256-t0dka5aUv5hB4G8PbSGiIY74XIFAsmo5a7dfWb2QCLM="; }; - dontConfigure = true; - dontBuild = true; - - installPhase = '' - runHook preInstall - - mkdir -p $out/include/ - cp interface/* $out/include/ - - substituteInPlace eglexternalplatform.pc \ - --replace "/usr/include/EGL" "$out/include" - install -Dm644 {.,$out/share/pkgconfig}/eglexternalplatform.pc - - runHook postInstall - ''; + nativeBuildInputs = [ meson ninja ]; meta = with lib; { description = "EGL External Platform interface"; From d832ccf98e0b46c5565c5f8785356915c7a0263e Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 11 Sep 2024 21:40:35 +0100 Subject: [PATCH 0010/1574] xorg.luit: 20240102 -> 20240910 Changes: https://invisible-island.net/luit/luit.log.html#t20240910 --- pkgs/servers/x11/xorg/default.nix | 6 +++--- pkgs/servers/x11/xorg/tarballs.list | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index a7c5aa884d2f..c89669de0a86 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -1918,11 +1918,11 @@ self: with self; { # THIS IS A GENERATED FILE. DO NOT EDIT! luit = callPackage ({ stdenv, pkg-config, fetchurl, testers }: stdenv.mkDerivation (finalAttrs: { pname = "luit"; - version = "20240102"; + version = "20240910"; builder = ./builder.sh; src = fetchurl { - url = "https://invisible-mirror.net/archives/luit/luit-20240102.tgz"; - sha256 = "10n0xf8m3j6xhj5dgc0km40n9vy38hwnvjfq4pr0xiffrllflym0"; + url = "https://invisible-mirror.net/archives/luit/luit-20240910.tgz"; + sha256 = "1ma978xdmkxm3q3v1cxpwzb4ahd0dgzj7v0ssr9i9bi5zk5pypd1"; }; hardeningDisable = [ "bindnow" "relro" ]; strictDeps = true; diff --git a/pkgs/servers/x11/xorg/tarballs.list b/pkgs/servers/x11/xorg/tarballs.list index 2575b47dd271..a3951547bf9c 100644 --- a/pkgs/servers/x11/xorg/tarballs.list +++ b/pkgs/servers/x11/xorg/tarballs.list @@ -1,4 +1,4 @@ -https://invisible-mirror.net/archives/luit/luit-20240102.tgz +https://invisible-mirror.net/archives/luit/luit-20240910.tgz mirror://xorg/individual/xcb/libpthread-stubs-0.5.tar.xz mirror://xorg/individual/xcb/xcb-util-0.4.1.tar.xz mirror://xorg/individual/xcb/xcb-util-errors-1.0.1.tar.xz From 754ce5caaafeaf47951a0a27b4c2a64136829716 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sun, 15 Sep 2024 12:58:17 +0200 Subject: [PATCH 0011/1574] python3Packages.pycparser: change to pyproject --- pkgs/development/python-modules/pycparser/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pycparser/default.nix b/pkgs/development/python-modules/pycparser/default.nix index 67bbfa1c3d97..4372afb0efe1 100644 --- a/pkgs/development/python-modules/pycparser/default.nix +++ b/pkgs/development/python-modules/pycparser/default.nix @@ -2,6 +2,7 @@ lib, buildPythonPackage, fetchPypi, + setuptools, unittestCheckHook, pythonOlder, }: @@ -9,13 +10,15 @@ buildPythonPackage rec { pname = "pycparser"; version = "2.22"; - format = "setuptools"; + pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-SRyL6cBA9TkPW/RKWwd1K9B/Vu35kjgbBccBQ57sEPY="; }; + build-system = [ setuptools ]; + nativeCheckInputs = [ unittestCheckHook ]; disabled = pythonOlder "3.8"; From 9bd50dacb431d0188759d2c0b8e046e8610b89b2 Mon Sep 17 00:00:00 2001 From: Alexis Hildebrandt Date: Sun, 8 Sep 2024 16:05:51 +0200 Subject: [PATCH 0012/1574] texinfo7: 7.1 -> 7.1.1 --- pkgs/development/tools/misc/texinfo/packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/texinfo/packages.nix b/pkgs/development/tools/misc/texinfo/packages.nix index ae1046318cd5..1c215819a9a2 100644 --- a/pkgs/development/tools/misc/texinfo/packages.nix +++ b/pkgs/development/tools/misc/texinfo/packages.nix @@ -102,7 +102,7 @@ in patches = [ ./fix-glibc-2.34.patch ]; }; texinfo7 = buildTexinfo { - version = "7.1"; - hash = "sha256-3u7J8Z8VngRv34rSIjGYGAbawzLMNy8cdjUErYKzCVM="; + version = "7.1.1"; + hash = "sha256-Ma435GKDUpQythvuHOAe0AkNWZ5gb8aincofd8dqbII="; }; } From 7984c1d03bb87548ca8565dee2889e610e55d40a Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 16 Sep 2024 21:25:11 +0100 Subject: [PATCH 0013/1574] unibilium: 2.1.1 -> 2.1.2 Changes: https://github.com/neovim/unibilium/releases/tag/v2.1.2 --- pkgs/development/libraries/unibilium/default.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/development/libraries/unibilium/default.nix b/pkgs/development/libraries/unibilium/default.nix index f2e2e27b35d7..66e7a8d3843f 100644 --- a/pkgs/development/libraries/unibilium/default.nix +++ b/pkgs/development/libraries/unibilium/default.nix @@ -1,21 +1,20 @@ -{ stdenv, lib, fetchFromGitHub, libtool, pkg-config, perl, ncurses }: +{ stdenv, lib, fetchFromGitHub, libtool, pkg-config, perl, ncurses, autoreconfHook }: stdenv.mkDerivation rec { pname = "unibilium"; - version = "2.1.1"; + version = "2.1.2"; src = fetchFromGitHub { owner = "neovim"; repo = "unibilium"; rev = "v${version}"; - sha256 = "sha256-A/WECvma7u/Mmecvzi0cP168dt4v+zwC8CiFBkqWezA="; + sha256 = "sha256-6bFZtR8TUZJembRBj6wUUCyurUdsn3vDGnCzCti/ESc="; }; - makeFlags = [ "PREFIX=$(out)" "LIBTOOL=${libtool}/bin/libtool" ]; - strictDeps = true; + enableParallelBuilding = true; - nativeBuildInputs = [ pkg-config perl libtool ]; + nativeBuildInputs = [ autoreconfHook pkg-config perl libtool ]; buildInputs = [ ncurses ]; meta = with lib; { From ee5127c6df7e5316a175e0bf9becc6156435a996 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 17 Sep 2024 06:58:38 +0100 Subject: [PATCH 0014/1574] iproute2: 6.10.0 -> 6.11.0 Changes: https://lore.kernel.org/netdev/20240915201831.164de47e@hermes.local/T/ --- pkgs/os-specific/linux/iproute/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/iproute/default.nix b/pkgs/os-specific/linux/iproute/default.nix index 57adaf06438b..506b9126e6f1 100644 --- a/pkgs/os-specific/linux/iproute/default.nix +++ b/pkgs/os-specific/linux/iproute/default.nix @@ -6,11 +6,11 @@ stdenv.mkDerivation rec { pname = "iproute2"; - version = "6.10.0"; + version = "6.11.0"; src = fetchurl { url = "mirror://kernel/linux/utils/net/${pname}/${pname}-${version}.tar.xz"; - hash = "sha256-kaYvgnN7RJBaAPqAM2nER9VJ6RTpoqQBj911sdVOjc4="; + hash = "sha256-H3lTmKBK6qzQao9qziz9kTwz+llTypnaroO7XFNGEcM="; }; postPatch = '' From e3da86c954387b2e2b25bcb621608ebaf24be423 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 18 Sep 2024 06:58:42 +0100 Subject: [PATCH 0015/1574] isocodes: 4.16.0 -> 4.17.0 Changes: https://salsa.debian.org/iso-codes-team/iso-codes/-/compare/v4.16.0...v4.17.0?from_project_id=2957&straight=false --- pkgs/development/libraries/iso-codes/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/iso-codes/default.nix b/pkgs/development/libraries/iso-codes/default.nix index 0b9b316f4433..29b0bff5e0ad 100644 --- a/pkgs/development/libraries/iso-codes/default.nix +++ b/pkgs/development/libraries/iso-codes/default.nix @@ -2,11 +2,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "iso-codes"; - version = "4.16.0"; + version = "4.17.0"; src = fetchurl { url = with finalAttrs; "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/v${version}/${pname}-v${version}.tar.gz"; - sha256 = "sha256-fJkPw5oFl1vtsBdeP/Cfw4MEiBX2i0Yqu/BVqAMuZsw="; + hash = "sha256-3VyhPbd+xt0cwl9cAYQpCocOwf7SRdjjmgT/NPWQdsM="; }; nativeBuildInputs = [ gettext python3 ]; From e86b46d61b1e31422e34ee18d37133d92b5c16d8 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 19 Sep 2024 01:53:26 +0000 Subject: [PATCH 0016/1574] libraw: 0.21.2 -> 0.21.3 --- pkgs/development/libraries/libraw/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libraw/default.nix b/pkgs/development/libraries/libraw/default.nix index d8e9f1f5a2f5..5c40666a2115 100644 --- a/pkgs/development/libraries/libraw/default.nix +++ b/pkgs/development/libraries/libraw/default.nix @@ -15,13 +15,13 @@ stdenv.mkDerivation rec { pname = "libraw"; - version = "0.21.2"; + version = "0.21.3"; src = fetchFromGitHub { owner = "LibRaw"; repo = "LibRaw"; rev = version; - hash = "sha256-p9CmOCulvV7+KKn1lXwpcysOo0+mD5UgPqy2ki0cIFE="; + hash = "sha256-QFyRQ0V7din/rnkRvEWf521kSzN7HwJ3kZiQ43PAmVI="; }; outputs = [ "out" "lib" "dev" "doc" ]; From eec7d19b98e5c89ba08710442a308c4defac38d8 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Wed, 11 Sep 2024 22:18:48 +0200 Subject: [PATCH 0017/1574] curl: 8.9.1 -> 8.10.1 Changes: https://curl.se/ch/8.10.0.html https://curl.se/ch/8.10.1.html --- .../tools/networking/curl/CVE-2024-8096.patch | 200 ------------------ pkgs/tools/networking/curl/default.nix | 13 +- .../networking/curl/fix-sigpipe-leak.patch | 32 --- 3 files changed, 2 insertions(+), 243 deletions(-) delete mode 100644 pkgs/tools/networking/curl/CVE-2024-8096.patch delete mode 100644 pkgs/tools/networking/curl/fix-sigpipe-leak.patch diff --git a/pkgs/tools/networking/curl/CVE-2024-8096.patch b/pkgs/tools/networking/curl/CVE-2024-8096.patch deleted file mode 100644 index 0f780f08c326..000000000000 --- a/pkgs/tools/networking/curl/CVE-2024-8096.patch +++ /dev/null @@ -1,200 +0,0 @@ -From aeb1a281cab13c7ba791cb104e556b20e713941f Mon Sep 17 00:00:00 2001 -From: Daniel Stenberg -Date: Tue, 20 Aug 2024 16:14:39 +0200 -Subject: [PATCH] gtls: fix OCSP stapling management - -Reported-by: Hiroki Kurosawa -Closes #14642 ---- - lib/vtls/gtls.c | 146 ++++++++++++++++++++++++------------------------ - 1 file changed, 73 insertions(+), 73 deletions(-) - -diff --git a/lib/vtls/gtls.c b/lib/vtls/gtls.c -index 03d6fcc038aac3..c7589d9d39bc81 100644 ---- a/lib/vtls/gtls.c -+++ b/lib/vtls/gtls.c -@@ -850,6 +850,13 @@ static CURLcode gtls_client_init(struct Curl_cfilter *cf, - init_flags |= GNUTLS_NO_TICKETS; - #endif - -+#if defined(GNUTLS_NO_STATUS_REQUEST) -+ if(!config->verifystatus) -+ /* Disable the "status_request" TLS extension, enabled by default since -+ GnuTLS 3.8.0. */ -+ init_flags |= GNUTLS_NO_STATUS_REQUEST; -+#endif -+ - rc = gnutls_init(>ls->session, init_flags); - if(rc != GNUTLS_E_SUCCESS) { - failf(data, "gnutls_init() failed: %d", rc); -@@ -1321,104 +1328,97 @@ Curl_gtls_verifyserver(struct Curl_easy *data, - infof(data, " server certificate verification SKIPPED"); - - if(config->verifystatus) { -- if(gnutls_ocsp_status_request_is_checked(session, 0) == 0) { -- gnutls_datum_t status_request; -- gnutls_ocsp_resp_t ocsp_resp; -+ gnutls_datum_t status_request; -+ gnutls_ocsp_resp_t ocsp_resp; -+ gnutls_ocsp_cert_status_t status; -+ gnutls_x509_crl_reason_t reason; - -- gnutls_ocsp_cert_status_t status; -- gnutls_x509_crl_reason_t reason; -+ rc = gnutls_ocsp_status_request_get(session, &status_request); - -- rc = gnutls_ocsp_status_request_get(session, &status_request); -+ if(rc == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) { -+ failf(data, "No OCSP response received"); -+ return CURLE_SSL_INVALIDCERTSTATUS; -+ } - -- infof(data, " server certificate status verification FAILED"); -+ if(rc < 0) { -+ failf(data, "Invalid OCSP response received"); -+ return CURLE_SSL_INVALIDCERTSTATUS; -+ } - -- if(rc == GNUTLS_E_REQUESTED_DATA_NOT_AVAILABLE) { -- failf(data, "No OCSP response received"); -- return CURLE_SSL_INVALIDCERTSTATUS; -- } -+ gnutls_ocsp_resp_init(&ocsp_resp); - -- if(rc < 0) { -- failf(data, "Invalid OCSP response received"); -- return CURLE_SSL_INVALIDCERTSTATUS; -- } -+ rc = gnutls_ocsp_resp_import(ocsp_resp, &status_request); -+ if(rc < 0) { -+ failf(data, "Invalid OCSP response received"); -+ return CURLE_SSL_INVALIDCERTSTATUS; -+ } - -- gnutls_ocsp_resp_init(&ocsp_resp); -+ (void)gnutls_ocsp_resp_get_single(ocsp_resp, 0, NULL, NULL, NULL, NULL, -+ &status, NULL, NULL, NULL, &reason); - -- rc = gnutls_ocsp_resp_import(ocsp_resp, &status_request); -- if(rc < 0) { -- failf(data, "Invalid OCSP response received"); -- return CURLE_SSL_INVALIDCERTSTATUS; -- } -+ switch(status) { -+ case GNUTLS_OCSP_CERT_GOOD: -+ break; - -- (void)gnutls_ocsp_resp_get_single(ocsp_resp, 0, NULL, NULL, NULL, NULL, -- &status, NULL, NULL, NULL, &reason); -+ case GNUTLS_OCSP_CERT_REVOKED: { -+ const char *crl_reason; - -- switch(status) { -- case GNUTLS_OCSP_CERT_GOOD: -+ switch(reason) { -+ default: -+ case GNUTLS_X509_CRLREASON_UNSPECIFIED: -+ crl_reason = "unspecified reason"; - break; - -- case GNUTLS_OCSP_CERT_REVOKED: { -- const char *crl_reason; -- -- switch(reason) { -- default: -- case GNUTLS_X509_CRLREASON_UNSPECIFIED: -- crl_reason = "unspecified reason"; -- break; -- -- case GNUTLS_X509_CRLREASON_KEYCOMPROMISE: -- crl_reason = "private key compromised"; -- break; -- -- case GNUTLS_X509_CRLREASON_CACOMPROMISE: -- crl_reason = "CA compromised"; -- break; -- -- case GNUTLS_X509_CRLREASON_AFFILIATIONCHANGED: -- crl_reason = "affiliation has changed"; -- break; -+ case GNUTLS_X509_CRLREASON_KEYCOMPROMISE: -+ crl_reason = "private key compromised"; -+ break; - -- case GNUTLS_X509_CRLREASON_SUPERSEDED: -- crl_reason = "certificate superseded"; -- break; -+ case GNUTLS_X509_CRLREASON_CACOMPROMISE: -+ crl_reason = "CA compromised"; -+ break; - -- case GNUTLS_X509_CRLREASON_CESSATIONOFOPERATION: -- crl_reason = "operation has ceased"; -- break; -+ case GNUTLS_X509_CRLREASON_AFFILIATIONCHANGED: -+ crl_reason = "affiliation has changed"; -+ break; - -- case GNUTLS_X509_CRLREASON_CERTIFICATEHOLD: -- crl_reason = "certificate is on hold"; -- break; -+ case GNUTLS_X509_CRLREASON_SUPERSEDED: -+ crl_reason = "certificate superseded"; -+ break; - -- case GNUTLS_X509_CRLREASON_REMOVEFROMCRL: -- crl_reason = "will be removed from delta CRL"; -- break; -+ case GNUTLS_X509_CRLREASON_CESSATIONOFOPERATION: -+ crl_reason = "operation has ceased"; -+ break; - -- case GNUTLS_X509_CRLREASON_PRIVILEGEWITHDRAWN: -- crl_reason = "privilege withdrawn"; -- break; -+ case GNUTLS_X509_CRLREASON_CERTIFICATEHOLD: -+ crl_reason = "certificate is on hold"; -+ break; - -- case GNUTLS_X509_CRLREASON_AACOMPROMISE: -- crl_reason = "AA compromised"; -- break; -- } -+ case GNUTLS_X509_CRLREASON_REMOVEFROMCRL: -+ crl_reason = "will be removed from delta CRL"; -+ break; - -- failf(data, "Server certificate was revoked: %s", crl_reason); -+ case GNUTLS_X509_CRLREASON_PRIVILEGEWITHDRAWN: -+ crl_reason = "privilege withdrawn"; - break; -- } - -- default: -- case GNUTLS_OCSP_CERT_UNKNOWN: -- failf(data, "Server certificate status is unknown"); -+ case GNUTLS_X509_CRLREASON_AACOMPROMISE: -+ crl_reason = "AA compromised"; - break; - } - -- gnutls_ocsp_resp_deinit(ocsp_resp); -+ failf(data, "Server certificate was revoked: %s", crl_reason); -+ break; -+ } - -- return CURLE_SSL_INVALIDCERTSTATUS; -+ default: -+ case GNUTLS_OCSP_CERT_UNKNOWN: -+ failf(data, "Server certificate status is unknown"); -+ break; - } -- else -- infof(data, " server certificate status verification OK"); -+ -+ gnutls_ocsp_resp_deinit(ocsp_resp); -+ if(status != GNUTLS_OCSP_CERT_GOOD) -+ return CURLE_SSL_INVALIDCERTSTATUS; - } - else - infof(data, " server certificate status verification SKIPPED"); diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix index 033657371747..acb527061339 100644 --- a/pkgs/tools/networking/curl/default.nix +++ b/pkgs/tools/networking/curl/default.nix @@ -49,25 +49,16 @@ assert !((lib.count (x: x) [ gnutlsSupport opensslSupport wolfsslSupport rustlsS stdenv.mkDerivation (finalAttrs: { pname = "curl"; - version = "8.9.1"; + version = "8.10.1"; src = fetchurl { urls = [ "https://curl.haxx.se/download/curl-${finalAttrs.version}.tar.xz" "https://github.com/curl/curl/releases/download/curl-${builtins.replaceStrings [ "." ] [ "_" ] finalAttrs.version}/curl-${finalAttrs.version}.tar.xz" ]; - hash = "sha256-8pL2zAUdW7q/cl74XUMt/qzIcR3XF+qXYSrlkGQ4AeU="; + hash = "sha256-c6Sw6ZWWoJ+lkkpPt+S5lahf2g0YosAquc8TS+vOBO4="; }; - patches = [ - # fixes https://github.com/curl/curl/issues/14344 - # https://github.com/curl/curl/pull/14390 - ./fix-sigpipe-leak.patch - ] ++ lib.optionals gnutlsSupport [ - # https://curl.se/docs/CVE-2024-8096.html - ./CVE-2024-8096.patch - ]; - # this could be accomplished by updateAutotoolsGnuConfigScriptsHook, but that causes infinite recursion # necessary for FreeBSD code path in configure postPatch = '' diff --git a/pkgs/tools/networking/curl/fix-sigpipe-leak.patch b/pkgs/tools/networking/curl/fix-sigpipe-leak.patch deleted file mode 100644 index f4f0346d8815..000000000000 --- a/pkgs/tools/networking/curl/fix-sigpipe-leak.patch +++ /dev/null @@ -1,32 +0,0 @@ -From 3eec5afbd0b6377eca893c392569b2faf094d970 Mon Sep 17 00:00:00 2001 -From: Daniel Stenberg -Date: Mon, 5 Aug 2024 00:17:17 +0200 -Subject: [PATCH] sigpipe: init the struct so that first apply ignores - -Initializes 'no_signal' to TRUE, so that a call to sigpipe_apply() after -init ignores the signal (unless CURLOPT_NOSIGNAL) is set. - -I have read the existing code multiple times now and I think it gets the -initial state reversed this missing to ignore. - -Regression from 17e6f06ea37136c36d27 - -Reported-by: Rasmus Thomsen -Fixes #14344 -Closes #14390 ---- - lib/sigpipe.h | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/lib/sigpipe.h b/lib/sigpipe.h -index b91a2f51333956..d78afd905d3414 100644 ---- a/lib/sigpipe.h -+++ b/lib/sigpipe.h -@@ -39,6 +39,7 @@ struct sigpipe_ignore { - static void sigpipe_init(struct sigpipe_ignore *ig) - { - memset(ig, 0, sizeof(*ig)); -+ ig->no_signal = TRUE; - } - - /* From b6567e0a544f493c012b0a76b5255ea599bd373b Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 20 Sep 2024 21:04:01 +0200 Subject: [PATCH 0018/1574] postgresqlPackages.lantern.tests.extension: fix test The name of the access method was changed upstream a while ago. --- pkgs/servers/sql/postgresql/ext/lantern.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/sql/postgresql/ext/lantern.nix b/pkgs/servers/sql/postgresql/ext/lantern.nix index 1e632228663b..8181ae0f166e 100644 --- a/pkgs/servers/sql/postgresql/ext/lantern.nix +++ b/pkgs/servers/sql/postgresql/ext/lantern.nix @@ -54,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: { CREATE TABLE small_world (id integer, vector real[3]); INSERT INTO small_world (id, vector) VALUES (0, '{0,0,0}'), (1, '{0,0,1}'); - CREATE INDEX ON small_world USING hnsw (vector dist_l2sq_ops) + CREATE INDEX ON small_world USING lantern_hnsw (vector dist_l2sq_ops) WITH (M=2, ef_construction=10, ef=4, dim=3); ''; failureHook = "postgresqlStop"; From 2b9fa464cf6c2a1189dc4cd5d796cb132a9a257b Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 20 Sep 2024 21:26:18 +0200 Subject: [PATCH 0019/1574] postgresqlPackages: refactor extension checks The withPackages scope now provides a "postgresqlTestExtension" helper which removes all the boilerplate for those kind of tests. This was Mario Rodas' idea in #299756. --- pkgs/servers/sql/postgresql/ext/h3-pg.nix | 20 +++----------- pkgs/servers/sql/postgresql/ext/lantern.nix | 19 +++---------- pkgs/servers/sql/postgresql/ext/pg_repack.nix | 19 +++---------- .../servers/sql/postgresql/ext/pg_squeeze.nix | 18 +++---------- pkgs/servers/sql/postgresql/ext/pgsodium.nix | 18 +++---------- .../sql/postgresql/ext/plpgsql_check.nix | 27 ++++++------------- pkgs/servers/sql/postgresql/generic.nix | 20 ++++++++++++++ 7 files changed, 45 insertions(+), 96 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/h3-pg.nix b/pkgs/servers/sql/postgresql/ext/h3-pg.nix index 2b8edb366ffa..a28d1be89b68 100644 --- a/pkgs/servers/sql/postgresql/ext/h3-pg.nix +++ b/pkgs/servers/sql/postgresql/ext/h3-pg.nix @@ -4,7 +4,7 @@ , fetchFromGitHub , h3_4 , postgresql -, postgresqlTestHook +, postgresqlTestExtension }: stdenv.mkDerivation (finalAttrs: { @@ -42,14 +42,9 @@ stdenv.mkDerivation (finalAttrs: { install -D -t $out/share/postgresql/extension h3_postgis/h3_postgis-*.sql h3_postgis/h3_postgis.control ''; - passthru.tests.extension = stdenv.mkDerivation { - name = "h3-pg-test"; - dontUnpack = true; - doCheck = true; - buildInputs = [ postgresqlTestHook ]; - nativeCheckInputs = [ (postgresql.withPackages (ps: [ ps.h3-pg ps.postgis ])) ]; - postgresqlTestUserOptions = "LOGIN SUPERUSER"; - passAsFile = [ "sql" ]; + passthru.tests.extension = postgresqlTestExtension { + inherit (finalAttrs) finalPackage; + withPackages = [ "postgis" ]; sql = '' CREATE EXTENSION h3; CREATE EXTENSION h3_postgis CASCADE; @@ -57,13 +52,6 @@ stdenv.mkDerivation (finalAttrs: { SELECT h3_lat_lng_to_cell(POINT('37.3615593,-122.0553238'), 5); SELECT ST_NPoints(h3_cell_to_boundary_geometry('8a63a9a99047fff')); ''; - failureHook = "postgresqlStop"; - checkPhase = '' - runHook preCheck - psql -a -v ON_ERROR_STOP=1 -f $sqlPath - runHook postCheck - ''; - installPhase = "touch $out"; }; meta = with lib; { diff --git a/pkgs/servers/sql/postgresql/ext/lantern.nix b/pkgs/servers/sql/postgresql/ext/lantern.nix index 8181ae0f166e..50c46400309b 100644 --- a/pkgs/servers/sql/postgresql/ext/lantern.nix +++ b/pkgs/servers/sql/postgresql/ext/lantern.nix @@ -3,7 +3,7 @@ , cmake , fetchFromGitHub , postgresql -, postgresqlTestHook +, postgresqlTestExtension }: stdenv.mkDerivation (finalAttrs: { @@ -40,14 +40,8 @@ stdenv.mkDerivation (finalAttrs: { "-DBUILD_FOR_DISTRIBUTING=ON" ]; - passthru.tests.extension = stdenv.mkDerivation { - name = "lantern-pg-test"; - dontUnpack = true; - doCheck = true; - buildInputs = [ postgresqlTestHook ]; - nativeCheckInputs = [ (postgresql.withPackages (_: [ finalAttrs.finalPackage ])) ]; - postgresqlTestUserOptions = "LOGIN SUPERUSER"; - passAsFile = [ "sql" ]; + passthru.tests.extension = postgresqlTestExtension { + inherit (finalAttrs) finalPackage; sql = '' CREATE EXTENSION lantern; @@ -57,13 +51,6 @@ stdenv.mkDerivation (finalAttrs: { CREATE INDEX ON small_world USING lantern_hnsw (vector dist_l2sq_ops) WITH (M=2, ef_construction=10, ef=4, dim=3); ''; - failureHook = "postgresqlStop"; - checkPhase = '' - runHook preCheck - psql -a -v ON_ERROR_STOP=1 -f $sqlPath - runHook postCheck - ''; - installPhase = "touch $out"; }; meta = with lib; { diff --git a/pkgs/servers/sql/postgresql/ext/pg_repack.nix b/pkgs/servers/sql/postgresql/ext/pg_repack.nix index b2a608a2bc39..71f8792d1d0f 100644 --- a/pkgs/servers/sql/postgresql/ext/pg_repack.nix +++ b/pkgs/servers/sql/postgresql/ext/pg_repack.nix @@ -2,7 +2,7 @@ , stdenv , fetchFromGitHub , postgresql -, postgresqlTestHook +, postgresqlTestExtension , testers , zlib }: @@ -30,20 +30,9 @@ stdenv.mkDerivation (finalAttrs: { version = testers.testVersion { package = finalAttrs.finalPackage; }; - extension = stdenv.mkDerivation { - name = "plpgsql-check-test"; - dontUnpack = true; - doCheck = true; - buildInputs = [ postgresqlTestHook ]; - nativeCheckInputs = [ (postgresql.withPackages (ps: [ ps.pg_repack ])) ]; - postgresqlTestUserOptions = "LOGIN SUPERUSER"; - failureHook = "postgresqlStop"; - checkPhase = '' - runHook preCheck - psql -a -v ON_ERROR_STOP=1 -c "CREATE EXTENSION pg_repack;" - runHook postCheck - ''; - installPhase = "touch $out"; + extension = postgresqlTestExtension { + inherit (finalAttrs) finalPackage; + sql = "CREATE EXTENSION pg_repack;"; }; }; diff --git a/pkgs/servers/sql/postgresql/ext/pg_squeeze.nix b/pkgs/servers/sql/postgresql/ext/pg_squeeze.nix index d91b0fb1c1a5..6e09fe9a7318 100644 --- a/pkgs/servers/sql/postgresql/ext/pg_squeeze.nix +++ b/pkgs/servers/sql/postgresql/ext/pg_squeeze.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, postgresql, postgresqlTestHook }: +{ lib, stdenv, fetchFromGitHub, postgresql, postgresqlTestExtension }: stdenv.mkDerivation (finalAttrs: { pname = "pg_squeeze"; @@ -25,18 +25,12 @@ stdenv.mkDerivation (finalAttrs: { runHook postInstall ''; - passthru.tests.extension = stdenv.mkDerivation { - name = "pg_squeeze-test"; - dontUnpack = true; - doCheck = true; - nativeCheckInputs = [ postgresqlTestHook (postgresql.withPackages (_: [ finalAttrs.finalPackage ])) ]; - failureHook = "postgresqlStop"; - postgresqlTestUserOptions = "LOGIN SUPERUSER"; + passthru.tests.extension = postgresqlTestExtension { + inherit (finalAttrs) finalPackage; postgresqlExtraSettings = '' wal_level = logical shared_preload_libraries = 'pg_squeeze' ''; - passAsFile = [ "sql" ]; sql = '' CREATE EXTENSION pg_squeeze; @@ -48,12 +42,6 @@ stdenv.mkDerivation (finalAttrs: { VALUES ('public', 'a', ('{30}', '{22}', NULL, NULL, '{3, 5}')); SELECT squeeze.squeeze_table('public', 'a', NULL, NULL, NULL); ''; - checkPhase = '' - runHook preCheck - psql -a -v ON_ERROR_STOP=1 -f $sqlPath - runHook postCheck - ''; - installPhase = "touch $out"; }; meta = with lib; { diff --git a/pkgs/servers/sql/postgresql/ext/pgsodium.nix b/pkgs/servers/sql/postgresql/ext/pgsodium.nix index e61a2d9332cc..59ddfcd74c8c 100644 --- a/pkgs/servers/sql/postgresql/ext/pgsodium.nix +++ b/pkgs/servers/sql/postgresql/ext/pgsodium.nix @@ -3,7 +3,7 @@ , fetchFromGitHub , libsodium , postgresql -, postgresqlTestHook +, postgresqlTestExtension }: stdenv.mkDerivation (finalAttrs: { @@ -35,17 +35,11 @@ stdenv.mkDerivation (finalAttrs: { runHook postInstall ''; - passthru.tests.extension = stdenv.mkDerivation { - name = "pgsodium-test"; - dontUnpack = true; - doCheck = true; - nativeCheckInputs = [ postgresqlTestHook (postgresql.withPackages (_: [ finalAttrs.finalPackage ])) ]; - failureHook = "postgresqlStop"; - postgresqlTestUserOptions = "LOGIN SUPERUSER"; + passthru.tests.extension = postgresqlTestExtension { + inherit (finalAttrs) finalPackage; postgresqlExtraSettings = '' shared_preload_libraries=pgsodium ''; - passAsFile = [ "sql" ]; sql = '' CREATE EXTENSION pgsodium; @@ -54,12 +48,6 @@ stdenv.mkDerivation (finalAttrs: { SELECT pgsodium.randombytes_random() FROM generate_series(0, 5); SELECT * FROM pgsodium.crypto_box_new_keypair(); ''; - checkPhase = '' - runHook preCheck - psql -a -v ON_ERROR_STOP=1 -f $sqlPath - runHook postCheck - ''; - installPhase = "touch $out"; }; meta = with lib; { diff --git a/pkgs/servers/sql/postgresql/ext/plpgsql_check.nix b/pkgs/servers/sql/postgresql/ext/plpgsql_check.nix index 51747dce056b..e03a3bf51fe5 100644 --- a/pkgs/servers/sql/postgresql/ext/plpgsql_check.nix +++ b/pkgs/servers/sql/postgresql/ext/plpgsql_check.nix @@ -1,13 +1,13 @@ -{ lib, stdenv, fetchFromGitHub, postgresql, postgresqlTestHook }: +{ lib, stdenv, fetchFromGitHub, postgresql, postgresqlTestExtension }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "plpgsql-check"; version = "2.7.5"; src = fetchFromGitHub { owner = "okbob"; repo = "plpgsql_check"; - rev = "v${version}"; + rev = "v${finalAttrs.version}"; hash = "sha256-CD/G/wX6o+mC6gowlpFe1DdJWyh3cB9wxSsW2GXrENE="; }; @@ -19,28 +19,17 @@ stdenv.mkDerivation rec { install -D -t $out/share/postgresql/extension *.control ''; - passthru.tests.extension = stdenv.mkDerivation { - name = "plpgsql-check-test"; - dontUnpack = true; - doCheck = true; - buildInputs = [ postgresqlTestHook ]; - nativeCheckInputs = [ (postgresql.withPackages (ps: [ ps.plpgsql_check ])) ]; - postgresqlTestUserOptions = "LOGIN SUPERUSER"; - failureHook = "postgresqlStop"; - checkPhase = '' - runHook preCheck - psql -a -v ON_ERROR_STOP=1 -c "CREATE EXTENSION plpgsql_check;" - runHook postCheck - ''; - installPhase = "touch $out"; + passthru.tests.extension = postgresqlTestExtension { + inherit (finalAttrs) finalPackage; + sql = "CREATE EXTENSION plpgsql_check;"; }; meta = with lib; { description = "Linter tool for language PL/pgSQL"; homepage = "https://github.com/okbob/plpgsql_check"; - changelog = "https://github.com/okbob/plpgsql_check/releases/tag/v${version}"; + changelog = "https://github.com/okbob/plpgsql_check/releases/tag/v${finalAttrs.version}"; platforms = postgresql.meta.platforms; license = licenses.mit; maintainers = [ ]; }; -} +}) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 01055df2a429..927b31accb24 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -16,6 +16,7 @@ let # for postgresql.pkgs , self, newScope, buildEnv + , stdenvNoCC, postgresqlTestHook # source specification , version, hash, muslPatches ? {} @@ -271,6 +272,25 @@ let inherit (llvmPackages) llvm; postgresql = this; stdenv = stdenv'; + postgresqlTestExtension = { finalPackage, withPackages ? [], ... } @ extraArgs: + stdenvNoCC.mkDerivation ({ + name = "${finalPackage.name}-test-extension"; + dontUnpack = true; + doCheck = true; + nativeCheckInputs = [ + postgresqlTestHook + (this.withPackages (ps: [ finalPackage ] ++ (map (p: ps."${p}") withPackages))) + ]; + failureHook = "postgresqlStop"; + postgresqlTestUserOptions = "LOGIN SUPERUSER"; + passAsFile = [ "sql" ]; + checkPhase = '' + runHook preCheck + psql -a -v ON_ERROR_STOP=1 -f "$sqlPath" + runHook postCheck + ''; + installPhase = "touch $out"; + } // extraArgs); }; newSelf = self // scope; newSuper = { callPackage = newScope (scope // this.pkgs); }; From 37ac1256c4e33c13f8634cd22da3136f76718b10 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 20 Sep 2024 22:10:14 +0200 Subject: [PATCH 0020/1574] postgresqlPackages.pgjwt: add simple create extension check --- pkgs/servers/sql/postgresql/ext/pgjwt.nix | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/sql/postgresql/ext/pgjwt.nix b/pkgs/servers/sql/postgresql/ext/pgjwt.nix index be088b81f861..a90502c35a4e 100644 --- a/pkgs/servers/sql/postgresql/ext/pgjwt.nix +++ b/pkgs/servers/sql/postgresql/ext/pgjwt.nix @@ -1,6 +1,6 @@ -{ lib, stdenv, fetchFromGitHub, postgresql, unstableGitUpdater, nixosTests }: +{ lib, stdenv, fetchFromGitHub, postgresql, unstableGitUpdater, nixosTests, postgresqlTestExtension }: -stdenv.mkDerivation { +stdenv.mkDerivation (finalAttrs: { pname = "pgjwt"; version = "0-unstable-2023-03-02"; @@ -19,7 +19,17 @@ stdenv.mkDerivation { passthru.updateScript = unstableGitUpdater { }; - passthru.tests = { inherit (nixosTests) pgjwt; }; + passthru.tests = { + inherit (nixosTests) pgjwt; + + extension = postgresqlTestExtension { + inherit (finalAttrs) finalPackage; + sql = '' + CREATE EXTENSION pgjwt CASCADE; + SELECT sign('{"sub":"1234567890","name":"John Doe","admin":true}', 'secret'); + ''; + }; + }; meta = with lib; { description = "PostgreSQL implementation of JSON Web Tokens"; @@ -30,4 +40,4 @@ stdenv.mkDerivation { platforms = postgresql.meta.platforms; maintainers = with maintainers; [spinus]; }; -} +}) From 23f433fbf11d531eb29ef0544d5e7be10c4c778c Mon Sep 17 00:00:00 2001 From: Mathias Zhang Date: Sun, 22 Sep 2024 02:09:13 +0800 Subject: [PATCH 0021/1574] libjxl: 0.10.3 -> 0.11.0 --- pkgs/development/libraries/libjxl/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libjxl/default.nix b/pkgs/development/libraries/libjxl/default.nix index 4ae2657de914..eb9283eb69eb 100644 --- a/pkgs/development/libraries/libjxl/default.nix +++ b/pkgs/development/libraries/libjxl/default.nix @@ -27,7 +27,7 @@ in stdenv.mkDerivation rec { pname = "libjxl"; - version = "0.10.3"; + version = "0.11.0"; outputs = [ "out" "dev" ]; @@ -35,7 +35,7 @@ stdenv.mkDerivation rec { owner = "libjxl"; repo = "libjxl"; rev = "v${version}"; - hash = "sha256-zk/fI1C26K5WC9QBfzS6MqPT9PiR4wmWURjOOIiNsg4="; + hash = "sha256-lBc0zP+f44YadwOU9+I+YYWzTrAg7FSfF3IQuh4LjM4="; # There are various submodules in `third_party/`. fetchSubmodules = true; }; @@ -118,9 +118,13 @@ stdenv.mkDerivation rec { "-DJPEGXL_FORCE_NEON=ON" ]; + # the second substitution fix regex for a2x script + # https://github.com/libjxl/libjxl/pull/3842 postPatch = '' substituteInPlace plugins/gdk-pixbuf/jxl.thumbnailer \ --replace '/usr/bin/gdk-pixbuf-thumbnailer' "$out/libexec/gdk-pixbuf-thumbnailer-jxl" + substituteInPlace CMakeLists.txt \ + --replace 'sh$' 'sh( -e$|$)' ''; postInstall = lib.optionalString enablePlugins '' From c9a67838b375d438dfba83b7194a785c8560e49e Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 6 Sep 2024 09:05:22 +0100 Subject: [PATCH 0022/1574] man-db: 2.12.1 -> 2.13.0 Changes: https://mail.gnu.org/archive/html/man-db-announce/2024-08/msg00001.html --- pkgs/tools/misc/man-db/default.nix | 7 +++---- pkgs/tools/misc/man-db/systemwide-man-db-conf.patch | 4 ++-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/misc/man-db/default.nix b/pkgs/tools/misc/man-db/default.nix index e88a189854f6..68a394044be7 100644 --- a/pkgs/tools/misc/man-db/default.nix +++ b/pkgs/tools/misc/man-db/default.nix @@ -12,23 +12,22 @@ , pkg-config , stdenv , zstd -, autoreconfHook }: stdenv.mkDerivation rec { pname = "man-db"; - version = "2.12.1"; + version = "2.13.0"; src = fetchurl { url = "mirror://savannah/man-db/man-db-${version}.tar.xz"; - hash = "sha256-3e4kna63jPkrq3lMzQacyLV1mSJl6iDiOeiHFW6IAmU="; + hash = "sha256-gvBzn09hqrXrk30jTeOwFOd3tVOKKMvTFDPEWuCa77k="; }; outputs = [ "out" "doc" ]; outputMan = "out"; # users will want `man man` to work strictDeps = true; - nativeBuildInputs = [ autoreconfHook groff makeWrapper pkg-config zstd ]; + nativeBuildInputs = [ groff makeWrapper pkg-config zstd ]; buildInputs = [ libpipeline db groff ] # (Yes, 'groff' is both native and build input) ++ lib.optional stdenv.isFreeBSD libiconvReal; nativeCheckInputs = [ (if stdenv.isFreeBSD then libiconvReal else libiconv) ]; # for 'iconv' binary; make very sure it matches buildinput libiconv diff --git a/pkgs/tools/misc/man-db/systemwide-man-db-conf.patch b/pkgs/tools/misc/man-db/systemwide-man-db-conf.patch index 2d4477776bb1..5a842470c598 100644 --- a/pkgs/tools/misc/man-db/systemwide-man-db-conf.patch +++ b/pkgs/tools/misc/man-db/systemwide-man-db-conf.patch @@ -27,8 +27,8 @@ index 5441339..0bbf566 100644 + config_filepath); else error (FAIL, 0, - _("can't open the manpath " - "configuration file %s"), + _ ("can't open the manpath " + "configuration file %s"), - CONFIG_FILE); + config_filepath); } else { From 2e8eda249d7871a83177e931cc5c710ac863d60c Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Mon, 23 Sep 2024 16:11:40 +0200 Subject: [PATCH 0023/1574] ffmpeg: add withCdio option --- pkgs/development/libraries/ffmpeg/generic.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 4e8226c1904a..9f36abaf018e 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -46,6 +46,7 @@ , withBs2b ? withFullDeps # bs2b DSP library , withBzlib ? withHeadlessDeps , withCaca ? withFullDeps # Textual display (ASCII art) +, withCdio ? withFullDeps && withGPL # Audio CD grabbing , withCelt ? withHeadlessDeps # CELT decoder , withChromaprint ? withFullDeps # Audio fingerprinting , withCodec2 ? withFullDeps # codec2 en/decoding @@ -251,6 +252,8 @@ , libbluray , libbs2b , libcaca +, libcdio +, libcdio-paranoia , libdc1394 , libdrm , libdvdnav @@ -566,6 +569,7 @@ stdenv.mkDerivation (finalAttrs: { (enableFeature withBs2b "libbs2b") (enableFeature withBzlib "bzlib") (enableFeature withCaca "libcaca") + (enableFeature withCdio "libcdio") (enableFeature withCelt "libcelt") (enableFeature withChromaprint "chromaprint") (enableFeature withCodec2 "libcodec2") @@ -733,6 +737,7 @@ stdenv.mkDerivation (finalAttrs: { ++ optionals withBs2b [ libbs2b ] ++ optionals withBzlib [ bzip2 ] ++ optionals withCaca [ libcaca ] + ++ optionals withCdio [ libcdio libcdio-paranoia ] ++ optionals withCelt [ celt ] ++ optionals withChromaprint [ chromaprint ] ++ optionals withCodec2 [ codec2 ] From 8cd3989e4d47ef3745f7554fc9f2c4bf36f2b008 Mon Sep 17 00:00:00 2001 From: Simon Hauser Date: Mon, 23 Sep 2024 19:04:39 +0200 Subject: [PATCH 0024/1574] gawk: 5.2.2 -> 5.3.1 Changelog: - https://lists.gnu.org/archive/html/info-gnu/2023-11/msg00000.html - https://mail.gnu.org/archive/html/info-gnu/2024-09/msg00008.html --- pkgs/stdenv/linux/default.nix | 5 +---- pkgs/tools/text/gawk/default.nix | 23 ++++++++--------------- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix index 145af4a1b567..49d75cbf8a00 100644 --- a/pkgs/stdenv/linux/default.nix +++ b/pkgs/stdenv/linux/default.nix @@ -647,10 +647,7 @@ in gawk gmp gnumake gnused gnutar gnugrep gnupatch patchelf ed file ] # Library dependencies - ++ map lib.getLib ( - [ attr acl zlib gnugrep.pcre2 libidn2 libunistring ] - ++ lib.optional (gawk.libsigsegv != null) gawk.libsigsegv - ) + ++ map lib.getLib [ attr acl zlib gnugrep.pcre2 libidn2 libunistring ] # More complicated cases ++ (map (x: lib.getOutput x (getLibc prevStage)) [ "out" "dev" "bin" ] ) ++ [ linuxHeaders # propagated from .dev diff --git a/pkgs/tools/text/gawk/default.nix b/pkgs/tools/text/gawk/default.nix index 941e102cb3b0..1087e5e5e1ec 100644 --- a/pkgs/tools/text/gawk/default.nix +++ b/pkgs/tools/text/gawk/default.nix @@ -1,8 +1,7 @@ { lib, stdenv, fetchurl , removeReferencesTo , runtimeShellPackage -# TODO: links -lsigsegv but loses the reference for some reason -, withSigsegv ? (false && stdenv.hostPlatform.system != "x86_64-cygwin"), libsigsegv +, texinfo , interactive ? false, readline , autoreconfHook # no-pma fix @@ -20,11 +19,11 @@ assert (doCheck && stdenv.isLinux) -> glibcLocales != null; stdenv.mkDerivation rec { pname = "gawk" + lib.optionalString interactive "-interactive"; - version = "5.2.2"; + version = "5.3.1"; src = fetchurl { url = "mirror://gnu/gawk/gawk-${version}.tar.xz"; - hash = "sha256-PB/OFEa0y+4c0nO9fsZLyH2J9hU3RxzT4F4zqWWiUOk="; + hash = "sha256-aU23ZIEqYjZCPU/0DOt7bExEEwG3KtUCu1wn4AzVb3g="; }; # PIE is incompatible with the "persistent malloc" ("pma") feature. @@ -42,6 +41,7 @@ stdenv.mkDerivation rec { # no-pma fix nativeBuildInputs = [ autoreconfHook + texinfo ] ++ lib.optionals interactive [ removeReferencesTo ] ++ lib.optionals (doCheck && stdenv.isLinux) [ @@ -51,14 +51,11 @@ stdenv.mkDerivation rec { buildInputs = lib.optionals interactive [ runtimeShellPackage readline - ] ++ lib.optionals withSigsegv [ - libsigsegv ] ++ lib.optionals stdenv.isDarwin [ locale ]; configureFlags = [ - (if withSigsegv then "--with-libsigsegv-prefix=${libsigsegv}" else "--without-libsigsegv") (if interactive then "--with-readline=${readline.dev}" else "--without-readline") ]; @@ -78,11 +75,7 @@ stdenv.mkDerivation rec { ln -s gawk.1 "''${!outputMan}"/share/man/man1/awk.1 ''; - passthru = { - libsigsegv = if withSigsegv then libsigsegv else null; # for stdenv bootstrap - }; - - meta = with lib; { + meta = { homepage = "https://www.gnu.org/software/gawk/"; description = "GNU implementation of the Awk programming language"; longDescription = '' @@ -98,9 +91,9 @@ stdenv.mkDerivation rec { makes it possible to handle many data-reformatting jobs with just a few lines of code. ''; - license = licenses.gpl3Plus; - platforms = platforms.unix ++ platforms.windows; - maintainers = [ ]; + license = lib.licenses.gpl3Plus; + platforms = lib.platforms.unix ++ lib.platforms.windows; + maintainers = lib.teams.helsinki-systems.members; mainProgram = "gawk"; }; } From 3cd51572e3de79080e6ab7da2f6bafd66681f5e5 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 23 Sep 2024 21:06:25 +0000 Subject: [PATCH 0025/1574] libarchive: 3.7.4 -> 3.7.6 --- pkgs/by-name/li/libarchive/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libarchive/package.nix b/pkgs/by-name/li/libarchive/package.nix index 09a96e829e33..3a39b23c2062 100644 --- a/pkgs/by-name/li/libarchive/package.nix +++ b/pkgs/by-name/li/libarchive/package.nix @@ -31,13 +31,13 @@ assert xarSupport -> libxml2 != null; stdenv.mkDerivation (finalAttrs: { pname = "libarchive"; - version = "3.7.4"; + version = "3.7.6"; src = fetchFromGitHub { owner = "libarchive"; repo = "libarchive"; rev = "v${finalAttrs.version}"; - hash = "sha256-czNKXHoEn1x4deNErnqp/NZfCglF1CxNoLtZ8tcl394="; + hash = "sha256-smj8JV5irW/StUx/Zp62w5cnlKbF6GRIOSh8i4ocJ8s="; }; outputs = [ "out" "lib" "dev" ]; From e9a92dee5338f7c98633a24848f906446abab850 Mon Sep 17 00:00:00 2001 From: Alex James Date: Mon, 23 Sep 2024 16:03:02 -0500 Subject: [PATCH 0026/1574] scons: add patch to fix builds on sandboxed Darwin As reported in #335665, derivations using scons currently fail on sandboxed Darwin due to a permission error[^1]. Include a patch from upstream to handle PermissionError, which fixes SCons builds on sandboxed Darwin. [^1]: https://github.com/NixOS/nixpkgs/pull/335665#issuecomment-2297464441 --- pkgs/by-name/sc/scons/package.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/sc/scons/package.nix b/pkgs/by-name/sc/scons/package.nix index 8ebc736097b0..f2b6790d1aad 100644 --- a/pkgs/by-name/sc/scons/package.nix +++ b/pkgs/by-name/sc/scons/package.nix @@ -1,4 +1,4 @@ -{ lib, fetchFromGitHub, python3Packages }: +{ lib, fetchFromGitHub, fetchpatch, python3Packages }: python3Packages.buildPythonApplication rec { pname = "scons"; version = "4.7.0"; @@ -15,6 +15,11 @@ python3Packages.buildPythonApplication rec { patches = [ ./env.patch ./no-man-pages.patch + # Fix builds on sandboxed Darwin: https://github.com/SCons/scons/pull/4603 + (fetchpatch { + url = "https://github.com/SCons/scons/commit/2d5e3a40a613225b329776ab9dbd9abcd2d24222.patch"; + hash = "sha256-N1xQOvsPTi7a2maEZJQVu6vJ9AoWMqDOsScXHp9KuXI="; + }) ]; build-system = [ From 32ca1483b4236d498d40c966666aa7abfc645ccb Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Mon, 23 Sep 2024 22:45:34 +0100 Subject: [PATCH 0027/1574] catch2_3: 3.7.0 -> 3.7.1 Changes: https://github.com/catchorg/Catch2/releases/tag/v3.7.1 --- pkgs/development/libraries/catch2/3.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/catch2/3.nix b/pkgs/development/libraries/catch2/3.nix index 5985ec519ae4..e1dc7839e7ad 100644 --- a/pkgs/development/libraries/catch2/3.nix +++ b/pkgs/development/libraries/catch2/3.nix @@ -7,13 +7,13 @@ stdenv.mkDerivation rec { pname = "catch2"; - version = "3.7.0"; + version = "3.7.1"; src = fetchFromGitHub { owner = "catchorg"; repo = "Catch2"; rev = "v${version}"; - hash = "sha256-U9hv6DaqN5eCMcAQdfFPqWpsbqDFxRQixELSGbNlc0g="; + hash = "sha256-Zt53Qtry99RAheeh7V24Csg/aMW25DT/3CN/h+BaeoM="; }; nativeBuildInputs = [ From 01dfed9e82fa59a477f925cc5dfa29553ae08992 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 24 Sep 2024 06:38:03 +0100 Subject: [PATCH 0028/1574] libopenmpt: 0.7.9 -> 0.7.10 Changes: https://lib.openmpt.org/libopenmpt/2024/09/22/security-update-0.6.19-releases-0.7.10-0.5.33-0.4.45/ --- pkgs/development/libraries/audio/libopenmpt/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/audio/libopenmpt/default.nix b/pkgs/development/libraries/audio/libopenmpt/default.nix index a08b93a9b0e5..11518dcda0d7 100644 --- a/pkgs/development/libraries/audio/libopenmpt/default.nix +++ b/pkgs/development/libraries/audio/libopenmpt/default.nix @@ -16,13 +16,13 @@ stdenv.mkDerivation rec { pname = "libopenmpt"; - version = "0.7.9"; + version = "0.7.10"; outputs = [ "out" "dev" "bin" ]; src = fetchurl { url = "https://lib.openmpt.org/files/libopenmpt/src/libopenmpt-${version}+release.autotools.tar.gz"; - hash = "sha256-A4bpGNddeX551bFO3QhHFl2LNZ6YEe9XZSwKNWot/PQ="; + hash = "sha256-CTcTwcECT08QxHeaZs6yr1H7fJCKnpn+uJLQQBkiC6E="; }; enableParallelBuilding = true; From 69948ad6029a04746f761e06a50728488c6133ee Mon Sep 17 00:00:00 2001 From: Hubert Jasudowicz Date: Mon, 23 Sep 2024 00:13:55 +0200 Subject: [PATCH 0029/1574] systemd: Disable shadowstack Similarly to zerocallusedregs, it breaks clang -target bpf calls. --- pkgs/os-specific/linux/systemd/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index eb948f2c9e17..4b1d408c19bc 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -306,7 +306,7 @@ stdenv.mkDerivation (finalAttrs: { # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111523 "trivialautovarinit" # breaks clang -target bpf; should be fixed to filter target? - ] ++ (lib.optional withLibBPF "zerocallusedregs"); + ] ++ (lib.optionals withLibBPF ["zerocallusedregs" "shadowstack"]); nativeBuildInputs = [ From bc21f77ff67bd37fdd52bf243efe030b09b146d0 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 24 Sep 2024 23:26:58 +0200 Subject: [PATCH 0030/1574] nixos/pgjwt: fix test --- nixos/tests/pgjwt.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/nixos/tests/pgjwt.nix b/nixos/tests/pgjwt.nix index 8d3310b74eb3..8100b874b5a6 100644 --- a/nixos/tests/pgjwt.nix +++ b/nixos/tests/pgjwt.nix @@ -18,17 +18,15 @@ with pkgs; { testScript = { nodes, ... }: let - sqlSU = "${nodes.master.config.services.postgresql.superUser}"; + sqlSU = "${nodes.master.services.postgresql.superUser}"; pgProve = "${pkgs.perlPackages.TAPParserSourceHandlerpgTAP}"; + inherit (nodes.master.services.postgresql.package.pkgs) pgjwt; in '' start_all() master.wait_for_unit("postgresql") master.succeed( - "${pkgs.gnused}/bin/sed -e '12 i CREATE EXTENSION pgcrypto;\\nCREATE EXTENSION pgtap;\\nSET search_path TO tap,public;' ${pgjwt.src}/test.sql > /tmp/test.sql" - ) - master.succeed( - "${pkgs.sudo}/bin/sudo -u ${sqlSU} PGOPTIONS=--search_path=tap,public ${pgProve}/bin/pg_prove -d postgres -v -f /tmp/test.sql" + "${pkgs.sudo}/bin/sudo -u ${sqlSU} PGOPTIONS=--search_path=tap,public ${pgProve}/bin/pg_prove -d postgres -v -f ${pgjwt.src}/test.sql" ) ''; }) From ab19ce9f8d4a35d72ffe493915f27420a91c6d92 Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Wed, 25 Sep 2024 14:13:47 +0530 Subject: [PATCH 0031/1574] git: 2.46.1 -> 2.46.2 Changelog: https://github.com/git/git/blob/v2.46.2/Documentation/RelNotes/2.46.2.txt Signed-off-by: Muhammad Falak R Wani --- pkgs/applications/version-management/git/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/git/default.nix b/pkgs/applications/version-management/git/default.nix index 9e9130fce6ad..3c87a6d8e5df 100644 --- a/pkgs/applications/version-management/git/default.nix +++ b/pkgs/applications/version-management/git/default.nix @@ -29,7 +29,7 @@ assert sendEmailSupport -> perlSupport; assert svnSupport -> perlSupport; let - version = "2.46.1"; + version = "2.46.2"; svn = subversionClient.override { perlBindings = perlSupport; }; gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ]; in @@ -42,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; - hash = "sha256-iIyvuL1qtMu+vBaAQKiFDrCI+B3DrCYXGVz8CHfw9UM="; + hash = "sha256-XuihxoU2CUpPf5UV7cFUsSonW4pX3aTCHs+/GvuuLKM="; }; outputs = [ "out" ] ++ lib.optional withManual "doc"; From c49774ff46f04794705d3472c3bf774e7b19efc1 Mon Sep 17 00:00:00 2001 From: Stig Palmquist Date: Sun, 22 Sep 2024 18:45:56 +0200 Subject: [PATCH 0032/1574] perl540: fix build in stage1, add C locale patch - Add patch from Perl upstream fixing build if only C locale is available - Change back from `perl538` to `perl` (perl540) in bootstrap-stage-1 --- .../fix-build-with-only-C-locale-5.40.0.patch | 57 +++++++++++++++++++ .../interpreters/perl/interpreter.nix | 3 + pkgs/stdenv/linux/default.nix | 3 +- 3 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/interpreters/perl/fix-build-with-only-C-locale-5.40.0.patch diff --git a/pkgs/development/interpreters/perl/fix-build-with-only-C-locale-5.40.0.patch b/pkgs/development/interpreters/perl/fix-build-with-only-C-locale-5.40.0.patch new file mode 100644 index 000000000000..9f9e1e96f619 --- /dev/null +++ b/pkgs/development/interpreters/perl/fix-build-with-only-C-locale-5.40.0.patch @@ -0,0 +1,57 @@ +From bd0ab509f890a6638bd5033ef58526f8c74f7e4b Mon Sep 17 00:00:00 2001 +From: Andrei Horodniceanu +Date: Wed, 4 Sep 2024 12:46:44 +0300 +Subject: [PATCH] locale.c: Fix compilation on platforms with only a C locale + +Signed-off-by: Andrei Horodniceanu +--- + AUTHORS | 1 + + locale.c | 16 ++++++++++++++++ + 2 files changed, 17 insertions(+) + +diff --git a/AUTHORS b/AUTHORS +index b2e0bf2043a9..b196b93bda13 100644 +--- a/AUTHORS ++++ b/AUTHORS +@@ -103,6 +103,7 @@ Andreas König + Andreas Marienborg + Andreas Schwab + Andreas Voegele ++Andrei Horodniceanu + Andrei Yelistratov + Andrej Borsenkow + Andrew Bettison +diff --git a/locale.c b/locale.c +index 168b94914318..d764b4b3c11e 100644 +--- a/locale.c ++++ b/locale.c +@@ -8963,6 +8963,7 @@ Perl_init_i18nl10n(pTHX_ int printwarn) + * categories into our internal indices. */ + if (map_LC_ALL_position_to_index[0] == LC_ALL_INDEX_) { + ++# ifdef PERL_LC_ALL_CATEGORY_POSITIONS_INIT + /* Use this array, initialized by a config.h constant */ + int lc_all_category_positions[] = PERL_LC_ALL_CATEGORY_POSITIONS_INIT; + STATIC_ASSERT_STMT( C_ARRAY_LENGTH(lc_all_category_positions) +@@ -8975,6 +8976,21 @@ Perl_init_i18nl10n(pTHX_ int printwarn) + map_LC_ALL_position_to_index[i] = + get_category_index(lc_all_category_positions[i]); + } ++# else ++ /* It is possible for both PERL_LC_ALL_USES_NAME_VALUE_PAIRS and ++ * PERL_LC_ALL_CATEGORY_POSITIONS_INIT not to be defined, e.g. on ++ * systems with only a C locale during ./Configure. Assume that this ++ * can only happen as part of some sort of bootstrapping so allow ++ * compilation to succeed by ignoring correctness. ++ */ ++ for (unsigned int i = 0; ++ i < C_ARRAY_LENGTH(map_LC_ALL_position_to_index); ++ i++) ++ { ++ map_LC_ALL_position_to_index[i] = 0; ++ } ++# endif ++ + } + + LOCALE_UNLOCK; diff --git a/pkgs/development/interpreters/perl/interpreter.nix b/pkgs/development/interpreters/perl/interpreter.nix index f04b352388ec..4b929f2c5d1d 100644 --- a/pkgs/development/interpreters/perl/interpreter.nix +++ b/pkgs/development/interpreters/perl/interpreter.nix @@ -67,6 +67,9 @@ stdenv.mkDerivation (rec { ++ lib.optional ((lib.versions.majorMinor version) == "5.38") ./no-sys-dirs-5.38.0.patch ++ lib.optional ((lib.versions.majorMinor version) == "5.40") ./no-sys-dirs-5.40.0.patch + # Fix compilation on platforms with only a C locale: https://github.com/Perl/perl5/pull/22569 + ++ lib.optional (version == "5.40.0") ./fix-build-with-only-C-locale-5.40.0.patch + ++ lib.optional stdenv.hostPlatform.isSunOS ./ld-shared.patch ++ lib.optionals stdenv.hostPlatform.isDarwin [ ./cpp-precomp.patch ./sw_vers.patch ] ++ lib.optional (crossCompiling && (lib.versionAtLeast version "5.40.0")) ./cross540.patch diff --git a/pkgs/stdenv/linux/default.nix b/pkgs/stdenv/linux/default.nix index 49d75cbf8a00..b8111f34e30a 100644 --- a/pkgs/stdenv/linux/default.nix +++ b/pkgs/stdenv/linux/default.nix @@ -308,8 +308,7 @@ in # This is not an issue for the final stdenv, because this perl # won't be included in the final stdenv and won't be exported to # top-level pkgs as an override either. - # FIXME: Pinning this stage to 538 as 540 doesn't build in stage1 atm - perl = super.perl538.override { enableThreading = false; enableCrypt = false; }; + perl = super.perl.override { enableThreading = false; enableCrypt = false; }; }; # `gettext` comes with obsolete config.sub/config.guess that don't recognize LoongArch64. From 540d99b6ca13081a872d5aa4a40f3eb128e45e9f Mon Sep 17 00:00:00 2001 From: Artturin Date: Wed, 11 Sep 2024 20:57:05 +0300 Subject: [PATCH 0033/1574] portaudio: Correct `alsa-lib` conditional --- pkgs/development/libraries/portaudio/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/portaudio/default.nix b/pkgs/development/libraries/portaudio/default.nix index 6d338b0f67e0..9b06dea56b6b 100644 --- a/pkgs/development/libraries/portaudio/default.nix +++ b/pkgs/development/libraries/portaudio/default.nix @@ -22,7 +22,7 @@ stdenv.mkDerivation rec { strictDeps = true; nativeBuildInputs = [ pkg-config which ]; - buildInputs = [ libjack2 ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ alsa-lib ]; + buildInputs = [ libjack2 ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform alsa-lib) [ alsa-lib ]; configureFlags = [ "--disable-mac-universal" "--enable-cxx" ]; @@ -45,7 +45,7 @@ stdenv.mkDerivation rec { # not sure why, but all the headers seem to be installed by the make install installPhase = '' make install - '' + lib.optionalString (!stdenv.hostPlatform.isDarwin) '' + '' + lib.optionalString (lib.meta.availableOn stdenv.hostPlatform alsa-lib) '' # fixup .pc file to find alsa library sed -i "s|-lasound|-L${alsa-lib.out}/lib -lasound|" "$out/lib/pkgconfig/"*.pc '' + lib.optionalString stdenv.hostPlatform.isDarwin '' From 7130bf3097c75ef852b9a8faec11794351d1b0aa Mon Sep 17 00:00:00 2001 From: Artturin Date: Wed, 11 Sep 2024 23:02:54 +0300 Subject: [PATCH 0034/1574] jackaudio: only add `makeWrapper` when needed The `wrapProgram` usage is behind a conditional below --- pkgs/misc/jackaudio/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/misc/jackaudio/default.nix b/pkgs/misc/jackaudio/default.nix index 54827497f846..53087942b933 100644 --- a/pkgs/misc/jackaudio/default.nix +++ b/pkgs/misc/jackaudio/default.nix @@ -39,7 +39,8 @@ stdenv.mkDerivation (finalAttrs: { outputs = [ "out" "dev" ]; - nativeBuildInputs = [ pkg-config python makeWrapper wafHook ]; + nativeBuildInputs = [ pkg-config python wafHook ] + ++ lib.optionals (optDbus != null) [ makeWrapper ]; buildInputs = [ libsamplerate libsndfile readline eigen celt optDbus optPythonDBus optLibffado optAlsaLib optLibopus ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ From 1578a2d4e1855696ab5cdd744f58027ce955bec0 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 26 Sep 2024 04:18:10 +0000 Subject: [PATCH 0035/1574] fribidi: 1.0.15 -> 1.0.16 --- pkgs/development/libraries/fribidi/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/fribidi/default.nix b/pkgs/development/libraries/fribidi/default.nix index 691b826e3af5..fe122067464e 100644 --- a/pkgs/development/libraries/fribidi/default.nix +++ b/pkgs/development/libraries/fribidi/default.nix @@ -11,14 +11,14 @@ stdenv.mkDerivation (finalAttrs: { pname = "fribidi"; - version = "1.0.15"; + version = "1.0.16"; outputs = [ "out" "dev" "devdoc" ]; # NOTE: Only URL tarball has "Have pre-generated man pages: true", which works-around upstream usage of some rare ancient `c2man` fossil application. src = fetchurl { url = with finalAttrs; "https://github.com/fribidi/fribidi/releases/download/v${version}/${pname}-${version}.tar.xz"; - sha256 = "sha256-C7x/9jO/ogiuMtfjac9afSDV0lV6CwZ8mqmLy/mWdYc="; + sha256 = "sha256-GxzeWyNdQEeekb4vDoijCeMhTIq0cOyKJ0TYKlqeoFw="; }; postPatch = '' From b0976a6035bf944245b5c649ddaf0453598ac8c8 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 25 Sep 2024 22:03:20 +0100 Subject: [PATCH 0036/1574] maturin: 1.7.1 -> 1.7.4 Changes: - https://github.com/PyO3/maturin/releases/tag/v1.7.2 - https://github.com/PyO3/maturin/releases/tag/v1.7.3 - https://github.com/PyO3/maturin/releases/tag/v1.7.4 Co-authored-by: seth --- pkgs/by-name/ma/maturin/package.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/ma/maturin/package.nix b/pkgs/by-name/ma/maturin/package.nix index fa7eb781c1e4..482861c75067 100644 --- a/pkgs/by-name/ma/maturin/package.nix +++ b/pkgs/by-name/ma/maturin/package.nix @@ -13,16 +13,16 @@ rustPlatform.buildRustPackage rec { pname = "maturin"; - version = "1.7.1"; + version = "1.7.4"; src = fetchFromGitHub { owner = "PyO3"; repo = "maturin"; rev = "v${version}"; - hash = "sha256-kFhY2ixZZrSA/YxLCQDLPjLqNWQI3zl5V1MLTPqQH60="; + hash = "sha256-Zephf4mB3RI5YIAOIjfqIfgVANefkH63OQoPPMe417E="; }; - cargoHash = "sha256-ik6kFS66umiHf0M1fE+6++zpZF4gJrN9LQ2l+vi9SSY="; + cargoHash = "sha256-yLKt/Xml7ig6QG3T5Qn39tW7U5NIN1hSOaLiSRMiy5I="; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.apple_sdk.frameworks.Security From fad9dabf9f041ba61c410876e2743b53435261dc Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 17 Mar 2024 11:35:54 +0100 Subject: [PATCH 0037/1574] pkgsMusl.postgresql: disable "locale -a" properly /bin/locale doesn't exist on musl and was already effectively disabled in #228349. However this still leaves the following warning for initdb: performing post-bootstrap initialization ... sh: locale: not found By applying the alpine patch to disable locale -a entirely, this warning will disappear. This will also make one more regression test pass when testing "check-world" instead of "check", only. --- pkgs/servers/sql/postgresql/12.nix | 6 ++++++ pkgs/servers/sql/postgresql/13.nix | 4 ++++ pkgs/servers/sql/postgresql/14.nix | 4 ++++ pkgs/servers/sql/postgresql/15.nix | 6 ++++++ pkgs/servers/sql/postgresql/16.nix | 6 ++++++ 5 files changed, 26 insertions(+) diff --git a/pkgs/servers/sql/postgresql/12.nix b/pkgs/servers/sql/postgresql/12.nix index 42e8ef960d42..72e3c88301df 100644 --- a/pkgs/servers/sql/postgresql/12.nix +++ b/pkgs/servers/sql/postgresql/12.nix @@ -1,4 +1,10 @@ import ./generic.nix { version = "12.20"; hash = "sha256-LVQ68wCf7H/VrzX3pwyVCF0+72tQjlF6qUk+mbFenqk="; + muslPatches = { + dont-use-locale-a = { + url = "https://git.alpinelinux.org/aports/plain/testing/postgresql12/dont-use-locale-a-on-musl.patch?id=d5227c91adda59d4e7f55f13468f0314e8869174"; + hash = "sha256-fk+y/SvyA4Tt8OIvDl7rje5dLs3Zw+Ln1oddyYzerOo="; + }; + }; } diff --git a/pkgs/servers/sql/postgresql/13.nix b/pkgs/servers/sql/postgresql/13.nix index ad55c9a55805..1f4483ccc631 100644 --- a/pkgs/servers/sql/postgresql/13.nix +++ b/pkgs/servers/sql/postgresql/13.nix @@ -6,5 +6,9 @@ import ./generic.nix { url = "https://git.alpinelinux.org/aports/plain/main/postgresql13/disable-test-collate.icu.utf8.patch?id=69faa146ec9fff3b981511068f17f9e629d4688b"; hash = "sha256-jS/qxezaiaKhkWeMCXwpz1SDJwUWn9tzN0uKaZ3Ph2Y="; }; + dont-use-locale-a = { + url = "https://git.alpinelinux.org/aports/plain/main/postgresql13/dont-use-locale-a-on-musl.patch?id=69faa146ec9fff3b981511068f17f9e629d4688b"; + hash = "sha256-fk+y/SvyA4Tt8OIvDl7rje5dLs3Zw+Ln1oddyYzerOo="; + }; }; } diff --git a/pkgs/servers/sql/postgresql/14.nix b/pkgs/servers/sql/postgresql/14.nix index 91341a3bd1f7..ed6661a474ac 100644 --- a/pkgs/servers/sql/postgresql/14.nix +++ b/pkgs/servers/sql/postgresql/14.nix @@ -6,5 +6,9 @@ import ./generic.nix { url = "https://git.alpinelinux.org/aports/plain/main/postgresql14/disable-test-collate.icu.utf8.patch?id=56999e6d0265ceff5c5239f85fdd33e146f06cb7"; hash = "sha256-jXe23AxnFjEl+TZQm4R7rStk2Leo08ctxMNmu1xr5zM="; }; + dont-use-locale-a = { + url = "https://git.alpinelinux.org/aports/plain/main/postgresql14/dont-use-locale-a-on-musl.patch?id=56999e6d0265ceff5c5239f85fdd33e146f06cb7"; + hash = "sha256-fk+y/SvyA4Tt8OIvDl7rje5dLs3Zw+Ln1oddyYzerOo="; + }; }; } diff --git a/pkgs/servers/sql/postgresql/15.nix b/pkgs/servers/sql/postgresql/15.nix index 63f4928401ac..5ede047dc2b0 100644 --- a/pkgs/servers/sql/postgresql/15.nix +++ b/pkgs/servers/sql/postgresql/15.nix @@ -1,4 +1,10 @@ import ./generic.nix { version = "15.8"; hash = "sha256-RANRX5pp7rPv68mPMLjGlhIr/fiV6Ss7I/W452nty2o="; + muslPatches = { + dont-use-locale-a = { + url = "https://git.alpinelinux.org/aports/plain/main/postgresql15/dont-use-locale-a-on-musl.patch?id=f424e934e6d076c4ae065ce45e734aa283eecb9c"; + hash = "sha256-fk+y/SvyA4Tt8OIvDl7rje5dLs3Zw+Ln1oddyYzerOo="; + }; + }; } diff --git a/pkgs/servers/sql/postgresql/16.nix b/pkgs/servers/sql/postgresql/16.nix index 569ef4b9e08b..16215d890be4 100644 --- a/pkgs/servers/sql/postgresql/16.nix +++ b/pkgs/servers/sql/postgresql/16.nix @@ -1,4 +1,10 @@ import ./generic.nix { version = "16.4"; hash = "sha256-lxdm1kWqc+k7nvTjvkQgG09FtUdwlbBJElQD+fM4bW8="; + muslPatches = { + dont-use-locale-a = { + url = "https://git.alpinelinux.org/aports/plain/main/postgresql16/dont-use-locale-a-on-musl.patch?id=08a24be262339fd093e641860680944c3590238e"; + hash = "sha256-fk+y/SvyA4Tt8OIvDl7rje5dLs3Zw+Ln1oddyYzerOo="; + }; + }; } From 149aa98ce4396b972e85bb6953c8c7ccc959c6cd Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sun, 17 Mar 2024 14:46:39 +0100 Subject: [PATCH 0038/1574] postgresql: run full test-suite during checkPhase doCheck was enabled in #61395 which does not mention an explicit decision for "check" instead of "check-world". The latter runs more tests, for example for contrib modules etc. - but results in higher build times.. Running "nix-build -A postgresql": - with doCheck = false: 46s - with checkTarget = "check": 60s - with checkTarget = "check-world": 75s --- pkgs/servers/sql/postgresql/generic.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index baf0d1e28030..9a52c556afcb 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -250,7 +250,7 @@ let doCheck = !stdenv'.hostPlatform.isDarwin; # autodetection doesn't seem to able to find this, but it's there. - checkTarget = "check"; + checkTarget = "check-world"; passthru = let this = self.callPackage generic args; From ff4d69becb912b5a1fed401fbc92698b36b9af27 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 24 Sep 2024 17:51:28 +0100 Subject: [PATCH 0039/1574] temurin-{,jre-}bin: temurin-{,jre-}bin-22 -> temurin{,jre-}bin-21 Pin the latest LTS version for consistency with OpenJDK. --- pkgs/top-level/all-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 1b04b63efbf1..c27b0e2ed6a6 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14402,8 +14402,8 @@ with pkgs; temurin-bin-8 = javaPackages.compiler.temurin-bin.jdk-8; temurin-jre-bin-8 = javaPackages.compiler.temurin-bin.jre-8; - temurin-bin = temurin-bin-22; - temurin-jre-bin = temurin-jre-bin-22; + temurin-bin = temurin-bin-21; + temurin-jre-bin = temurin-jre-bin-21; semeru-bin-21 = javaPackages.compiler.semeru-bin.jdk-21; semeru-jre-bin-21 = javaPackages.compiler.semeru-bin.jre-21; From 6da99f23d511c371b83814a3067c638b861b7207 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 25 Sep 2024 02:20:29 +0100 Subject: [PATCH 0040/1574] temurin-{,jre-}bin-{8,11,17,21,22}: update --- .../compilers/temurin-bin/sources.json | 990 ++++++------------ 1 file changed, 300 insertions(+), 690 deletions(-) diff --git a/pkgs/development/compilers/temurin-bin/sources.json b/pkgs/development/compilers/temurin-bin/sources.json index 23d7305ea774..025e90b5ea16 100644 --- a/pkgs/development/compilers/temurin-bin/sources.json +++ b/pkgs/development/compilers/temurin-bin/sources.json @@ -6,102 +6,62 @@ "packageType": "jdk", "vmType": "hotspot", "x86_64": { - "build": "9", - "sha256": "b45c467be52fe11ffd9bf69b3a035068134b305053874de4f3b3c5e5e1419659", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jdk_x64_alpine-linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" - } - }, - "openjdk16": { - "packageType": "jdk", - "vmType": "hotspot", - "x86_64": { - "build": "7", - "sha256": "85788b1a1f470ca7ddc576028f29abbc3bc3b08f82dd811a3e24371689d7dc0f", - "url": "https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_x64_alpine-linux_hotspot_16.0.2_7.tar.gz", - "version": "16.0.2" + "build": "8", + "sha256": "ae988c72eeb2d78bb729a3387601ce0ea84305734ebdbe95d276f39952a8e019", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_x64_alpine-linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" } }, "openjdk17": { - "packageType": "jdk", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "839326b5b4b3e4ac2edc3b685c8ab550f9b6d267eddf966323c801cb21e3e018", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_x64_alpine-linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" - } - }, - "openjdk18": { - "packageType": "jdk", - "vmType": "hotspot", - "x86_64": { - "build": "1", - "sha256": "478c8f56dec7378ed8c687e8d7d0fbf729973c62c497cfc8cf58bd621849d764", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jdk_x64_alpine-linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - } - }, - "openjdk19": { "packageType": "jdk", "vmType": "hotspot", "x86_64": { "build": "7", - "sha256": "e2d971400ad2db25ad43ea6fa2058b269c0236e3977986dcdee2097da301beb2", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jdk_x64_alpine-linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - } - }, - "openjdk20": { - "packageType": "jdk", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "b03aced4b7a1c49bc00297e35e45480fd03818862b93e17e1551a3b721e89306", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2%2B9/OpenJDK20U-jdk_x64_alpine-linux_hotspot_20.0.2_9.tar.gz", - "version": "20.0.2" + "sha256": "6d274a292a717a6f8d00a3ed0695497405c5c634c27fec1692dd13784f6ff6fa", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_alpine-linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" } }, "openjdk21": { "aarch64": { - "build": "9", - "sha256": "0f68a9122054149861f6ce9d1b1c176bbe30dd76b36b74c916ba897c12e9d970", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jdk_aarch64_alpine-linux_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "849c6d5a62a1f3dc2a3d2d7be07ffda089d35b862f6160b2a288c0408c2d8be8", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_aarch64_alpine-linux_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" }, "packageType": "jdk", "vmType": "hotspot", "x86_64": { - "build": "9", - "sha256": "8e861638bf6b08c6d5837de6dc929930550928ec5fcc81b9fa7e8296afd0f9c0", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jdk_x64_alpine-linux_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "8fa232fc9de5a861c1a6b0cbdc861d0b0a2bdbdd27da53d991802a460a7f0973", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_x64_alpine-linux_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" } }, "openjdk22": { "aarch64": { - "build": "8", - "sha256": "86a7b47c9277f2fd063ec910616b3676d86553ab7d23aa3bd365e51a57be1dc5", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jdk_aarch64_alpine-linux_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "8ac93a2d5a55aabbc0f7156c2f9032026e87c185689d628ef8a4184b6e9ab006", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_aarch64_alpine-linux_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" }, "packageType": "jdk", "vmType": "hotspot", "x86_64": { - "build": "8", - "sha256": "d226e44b3513942db855df9a8737d848f64069848970d4cfd35ee3c38f2525c1", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jdk_x64_alpine-linux_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "49f73414824b1a7c268a611225fa4d7ce5e25600201e0f1cd59f94d1040b5264", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_x64_alpine-linux_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" } }, "openjdk8": { "packageType": "jdk", "vmType": "hotspot", "x86_64": { - "build": "8", - "sha256": "409091665e5f8cf678938bbbc0d377122ef8bad7b1c97a0f809da054db956e51", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jdk_x64_alpine-linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "525a7731331cad502b9293ccb4ac2b13e85516736e98a57cb27c2767005188e1", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jdk_x64_alpine-linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" } } }, @@ -110,92 +70,62 @@ "packageType": "jre", "vmType": "hotspot", "x86_64": { - "build": "9", - "sha256": "6972a6251bc88d6fbb64a188557cf165f1c415ded550d2a280bbcbc4272caff1", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jre_x64_alpine-linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "0ac795729cc11f47323a71713eac2a5b22d4615fd9b66c8766f964c03fb6e160", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jre_x64_alpine-linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" } }, "openjdk17": { - "packageType": "jre", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "b5dffd0be08c464d9c3903e2947508c1a5c21804ea1cff5556991a2a47d617d8", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jre_x64_alpine-linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" - } - }, - "openjdk18": { - "packageType": "jre", - "vmType": "hotspot", - "x86_64": { - "build": "1", - "sha256": "ad23309a82e690f769037b1e6417022f588702d214da533289f116bba0f61f4e", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jre_x64_alpine-linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - } - }, - "openjdk19": { "packageType": "jre", "vmType": "hotspot", "x86_64": { "build": "7", - "sha256": "6c0ce0ead2e7ce3e0f06b9578447499c8bd0509306c95fcd81dbecb634228933", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jre_x64_alpine-linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - } - }, - "openjdk20": { - "packageType": "jre", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "53b34747a3c042a4cccb2b8b78fba3330b105bc523f0861237baa9143dc39115", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2%2B9/OpenJDK20U-jre_x64_alpine-linux_hotspot_20.0.2_9.tar.gz", - "version": "20.0.2" + "sha256": "63bae276cc322532b451ae7473127c92a75db16cc95473577f133cd09349822a", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_x64_alpine-linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" } }, "openjdk21": { "aarch64": { - "build": "9", - "sha256": "54e8618da373258654fe788d509f087d3612de9e080eb6831601069dbc8a4b2b", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jre_aarch64_alpine-linux_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "f9410264235861deaf30f97bec80870cf3bc38b1d8e57d897d8bb1f706ae6705", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_aarch64_alpine-linux_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" }, "packageType": "jre", "vmType": "hotspot", "x86_64": { - "build": "9", - "sha256": "b3e7170deab11a7089fe8e14f9f398424fd86db085f745dad212f6cfc4121df6", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jre_x64_alpine-linux_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "0dfd0ebab44d777f65bceaff7f79e8e0b9deb74a5eb166922483f1864bcf2052", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_x64_alpine-linux_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" } }, "openjdk22": { "aarch64": { - "build": "8", - "sha256": "6cac56dde6793d887deea101cfff283dc5f285e1118c21cbd1c4cb69f1072e55", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jre_aarch64_alpine-linux_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "749e7372a7dba0de632592fe55a0e387d96922c84dcdc039e0efc1f7ecfcd70e", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_aarch64_alpine-linux_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" }, "packageType": "jre", "vmType": "hotspot", "x86_64": { - "build": "8", - "sha256": "e7c26ad00e3ded356b8c4b20b184ccf5bd63ccdccabde8d4a892389f178f1d5b", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jre_x64_alpine-linux_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "459342f5210cfd185aeed05abdc052fcd61cf6ff066541919b786236d69c5737", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_x64_alpine-linux_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" } }, "openjdk8": { "packageType": "jre", "vmType": "hotspot", "x86_64": { - "build": "8", - "sha256": "c82962d7378d1fd415db594fce6ec047939e9fab5301fa4407cd7faea9ea7e31", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jre_x64_alpine-linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "9a7a939638b9cdaa8e1a119b8f21bfdd4cb2390b8a47cc27ccf9effc90f4b437", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jre_x64_alpine-linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" } } } @@ -204,546 +134,332 @@ "jdk": { "openjdk11": { "aarch64": { - "build": "9", - "sha256": "e00476a7be3c4adfa9b3d55d30768967fd246a8352e518894e183fa444d4d3ce", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "04e21301fedc76841fb03929ac6cacfbbda30b5693acfd515a8f34d4a0cdeb28", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_aarch64_linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" }, "armv6l": { - "build": "9", - "sha256": "8077edc07a57d846c3d11286a7caf05ed6ca6d6c1234bf0e03611f18e187f075", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jdk_arm_linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "9d14a076d1440161ab4c9736644e8e9f4719eb8e9f44c03470640960c3cd5e00", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_arm_linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" }, "armv7l": { - "build": "9", - "sha256": "8077edc07a57d846c3d11286a7caf05ed6ca6d6c1234bf0e03611f18e187f075", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jdk_arm_linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "9d14a076d1440161ab4c9736644e8e9f4719eb8e9f44c03470640960c3cd5e00", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_arm_linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" }, "packageType": "jdk", "powerpc64le": { - "build": "9", - "sha256": "f56068bb64c6bf858894f75c2bc261f54db32932422eb07527f36ae40046e9a0", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "4dfdc498938a159c592a2f094576f09c94999e17327c1f5ff81794694992054d", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_ppc64le_linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" }, "vmType": "hotspot", "x86_64": { - "build": "9", - "sha256": "23e47ea7a3015be3240f21185fd902adebdcf76530757c9b482c7eb5bd3417c2", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" - } - }, - "openjdk16": { - "aarch64": { - "build": "7", - "sha256": "cb77d9d126f97898dfdc8b5fb694d1e0e5d93d13a0a6cb2aeda76f8635384340", - "url": "https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_aarch64_linux_hotspot_16.0.2_7.tar.gz", - "version": "16.0.2" - }, - "armv6l": { - "build": "7", - "sha256": "7721ef81416af8122a28448f3d661eb4bda40a9f78d400e4ecc55b58e627a00c", - "url": "https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_arm_linux_hotspot_16.0.2_7.tar.gz", - "version": "16.0.2" - }, - "armv7l": { - "build": "7", - "sha256": "7721ef81416af8122a28448f3d661eb4bda40a9f78d400e4ecc55b58e627a00c", - "url": "https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_arm_linux_hotspot_16.0.2_7.tar.gz", - "version": "16.0.2" - }, - "packageType": "jdk", - "powerpc64le": { - "build": "7", - "sha256": "36ebe6c72f2fc19b8b17371f731390e15fa3aab08c28b55b9a8b71d0a578adc9", - "url": "https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_ppc64le_linux_hotspot_16.0.2_7.tar.gz", - "version": "16.0.2" - }, - "vmType": "hotspot", - "x86_64": { - "build": "7", - "sha256": "323d6d7474a359a28eff7ddd0df8e65bd61554a8ed12ef42fd9365349e573c2c", - "url": "https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_x64_linux_hotspot_16.0.2_7.tar.gz", - "version": "16.0.2" + "build": "8", + "sha256": "0e71a01563a5c7b9988a168b0c4ce720a6dff966b3c27bb29d1ded461ff71d0e", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_x64_linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" } }, "openjdk17": { "aarch64": { - "build": "9", - "sha256": "a900acf3ae56b000afc35468a083b6d6fd695abec87a8abdb02743d5c72f6d6d", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_aarch64_linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" + "build": "7", + "sha256": "8257de06bf37f0c8f19f8d542e2ab5a4e17db3ca5f29d041bd0b02ab265db021", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_aarch64_linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" }, "armv6l": { - "build": "9", - "sha256": "9b5c375ed7ce654083c6c1137d8daadebaf8657650576115f0deafab00d0f1d7", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_arm_linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" + "build": "7", + "sha256": "ce7873ebf40ed0eb1089941ead4d3af79a205b1264f3162860d26ae957572b74", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_arm_linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" }, "armv7l": { - "build": "9", - "sha256": "9b5c375ed7ce654083c6c1137d8daadebaf8657650576115f0deafab00d0f1d7", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_arm_linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" + "build": "7", + "sha256": "ce7873ebf40ed0eb1089941ead4d3af79a205b1264f3162860d26ae957572b74", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_arm_linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" }, "packageType": "jdk", "powerpc64le": { - "build": "9", - "sha256": "44bdd662c3b832cfe0b808362866b8d7a700dd60e6e39716dee97211d35c230f", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_ppc64le_linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" - }, - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "aa7fb6bb342319d227a838af5c363bfa1b4a670c209372f9e6585bd79da6220c", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" + "build": "7", + "sha256": "c97988e5a99b8ae0c47ba330b0883398c7433312db0051d8c5ff97911bae1605", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_ppc64le_linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" }, "riscv64": { "build": "7", "sha256": "d024c100eba4709970716ddcac757ba5e3122a8ff9c6f539ff8bac5b47f51f3a", "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_riscv64_linux_hotspot_17.0.12_7.tar.gz", "version": "17.0.12" - } - }, - "openjdk18": { - "aarch64": { - "build": "1", - "sha256": "262be608e266fd76d7496af83b2832be853c3aaf7460d6a4da198cd40db74553", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jdk_aarch64_linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - }, - "armv6l": { - "build": "1", - "sha256": "4cd49b92d13847bfad7b3bf635cca349e2c89c7641748c5288bc40d612cdbbd6", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jdk_arm_linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - }, - "armv7l": { - "build": "1", - "sha256": "4cd49b92d13847bfad7b3bf635cca349e2c89c7641748c5288bc40d612cdbbd6", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jdk_arm_linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - }, - "packageType": "jdk", - "powerpc64le": { - "build": "1", - "sha256": "030261a2189a8f773fda543a85ab9beb4c430bf81ca5be37cf6cb970b5ccbb03", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jdk_ppc64le_linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - }, - "vmType": "hotspot", - "x86_64": { - "build": "1", - "sha256": "7d6beba8cfc0a8347f278f7414351191a95a707d46b6586e9a786f2669af0f8b", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jdk_x64_linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - } - }, - "openjdk19": { - "aarch64": { - "build": "7", - "sha256": "1c4be9aa173cb0deb0d215643d9509c8900e5497290b29eee4bee335fa57984f", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jdk_aarch64_linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - }, - "armv6l": { - "build": "7", - "sha256": "6a51cb3868b5a3b81848a0d276267230ff3f8639f20ba9ae9ef1d386440bf1fd", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jdk_arm_linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - }, - "armv7l": { - "build": "7", - "sha256": "6a51cb3868b5a3b81848a0d276267230ff3f8639f20ba9ae9ef1d386440bf1fd", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jdk_arm_linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - }, - "packageType": "jdk", - "powerpc64le": { - "build": "7", - "sha256": "173d1256dfb9d13d309b5390e6bdf72d143b512201b0868f9d349d5ed3d64072", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jdk_ppc64le_linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" }, "vmType": "hotspot", "x86_64": { "build": "7", - "sha256": "3a3ba7a3f8c3a5999e2c91ea1dca843435a0d1c43737bd2f6822b2f02fc52165", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jdk_x64_linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - } - }, - "openjdk20": { - "aarch64": { - "build": "9", - "sha256": "b475bcc23db0bd618c815bb8f11d8e084dc58288ea3bcdf4e7f389ed41c89f56", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2%2B9/OpenJDK20U-jdk_aarch64_linux_hotspot_20.0.2_9.tar.gz", - "version": "20.0.2" - }, - "packageType": "jdk", - "powerpc64le": { - "build": "36", - "sha256": "45dde71faf8cbb78fab3c976894259655c8d3de827347f23e0ebe5710921dded", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20%2B36/OpenJDK20U-jdk_ppc64le_linux_hotspot_20_36.tar.gz", - "version": "20.0.0" - }, - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "3d91842e9c172967ac397076523249d05a82ead51b0006838f5f0315ad52222c", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2%2B9/OpenJDK20U-jdk_x64_linux_hotspot_20.0.2_9.tar.gz", - "version": "20.0.2" + "sha256": "9d4dd339bf7e6a9dcba8347661603b74c61ab2a5083ae67bf76da6285da8a778", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" } }, "openjdk21": { "aarch64": { - "build": "9", - "sha256": "7d3ab0e8eba95bd682cfda8041c6cb6fa21e09d0d9131316fd7c96c78969de31", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jdk_aarch64_linux_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "d768eecddd7a515711659e02caef8516b7b7177fa34880a56398fd9822593a79", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_aarch64_linux_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" }, "packageType": "jdk", "powerpc64le": { - "build": "9", - "sha256": "9a1079d7f0fc72951fdc9a0029e49a15f6ba114683aee626f882ee2c761f1d57", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jdk_ppc64le_linux_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" - }, - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "fffa52c22d797b715a962e6c8d11ec7d79b90dd819b5bc51d62137ea4b22a340", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jdk_x64_linux_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "c208cd0fb90560644a90f928667d2f53bfe408c957a5e36206585ad874427761", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_ppc64le_linux_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" }, "riscv64": { "build": "7", "sha256": "b04fd7f52d18268a935f1a7144dae802b25db600ec97156ddd46b3100cbd13da", "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_riscv64_linux_hotspot_21.0.4_7.tar.gz", "version": "21.0.4" + }, + "vmType": "hotspot", + "x86_64": { + "build": "7", + "sha256": "51fb4d03a4429c39d397d3a03a779077159317616550e4e71624c9843083e7b9", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_x64_linux_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" } }, "openjdk22": { "aarch64": { - "build": "8", - "sha256": "d8488fa1e4e8c1e318cef4c0fc3842a7f15a4cf52b27054663bb94471f54b3fa", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jdk_aarch64_linux_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "dac62747b5158c4bf4c4636432e3bdb9dea47f80f0c9d1d007f19bd5483b7d29", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_aarch64_linux_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" }, "packageType": "jdk", "powerpc64le": { - "build": "8", - "sha256": "4113606ba65044a3cbd7678e1c0d41881d24a2441c8ab8b658b4ac58da624de5", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jdk_ppc64le_linux_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" - }, - "vmType": "hotspot", - "x86_64": { - "build": "8", - "sha256": "e59c6bf801cc023a1ea78eceb5e6756277f1564cd0a421ea984efe6cb96cfcf8", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jdk_x64_linux_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "1d678752d58e33ff951e75736b8415d6d7ae136b2421ca02e993f2603e9b259b", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_ppc64le_linux_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" }, "riscv64": { "build": "9", "sha256": "830a0d006c2dae95c0855aa70e193dba637831b491ccd67333322dea31bcf389", "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_riscv64_linux_hotspot_22.0.2_9.tar.gz", "version": "22.0.2" + }, + "vmType": "hotspot", + "x86_64": { + "build": "9", + "sha256": "05cd9359dacb1a1730f7c54f57e0fed47942a5292eb56a3a0ee6b13b87457a43", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_x64_linux_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" } }, "openjdk8": { "aarch64": { - "build": "8", - "sha256": "3504d748a93f23cac8c060bd33231bd51e90dcb620f38dadc6239b6cd2a5011c", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jdk_aarch64_linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "af98a839ec238106078bd360af9e405dc6665c05ee837178ed13b92193681923", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jdk_aarch64_linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" }, "armv6l": { - "build": "8", - "sha256": "be4aff6fa7bf6515f16f93dcaf9fdc61853fe1ef0d25b08a1bb1cf6e3d047391", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jdk_arm_linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "5bd0203b2b09b033e3a762299a4975939d7571b433eab8b59340cc966102bef1", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jdk_arm_linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" }, "armv7l": { - "build": "8", - "sha256": "be4aff6fa7bf6515f16f93dcaf9fdc61853fe1ef0d25b08a1bb1cf6e3d047391", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jdk_arm_linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "5bd0203b2b09b033e3a762299a4975939d7571b433eab8b59340cc966102bef1", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jdk_arm_linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" }, "packageType": "jdk", "powerpc64le": { - "build": "8", - "sha256": "6b7ed7996788075e182dd33349288346240fbce540e50fd77aecfc309a5ada19", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jdk_ppc64le_linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "78fbd7b01204cdf90bcb3f9fe6a8e9432bdaa75776fa333aa9cbcb5a79de34cd", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jdk_ppc64le_linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" }, "vmType": "hotspot", "x86_64": { - "build": "8", - "sha256": "b9884a96f78543276a6399c3eb8c2fd8a80e6b432ea50e87d3d12d495d1d2808", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "4c6056f6167fae73ace7c3080b78940be5c87d54f5b08894b3517eed1cbb2c06", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jdk_x64_linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" } } }, "jre": { "openjdk11": { "aarch64": { - "build": "9", - "sha256": "7290ace47a030d89ea023c28e7aa555c9da72b4194f73b39ec9d058011bf06dd", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jre_aarch64_linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "1fe97cdaad47d7d108f329c6e4560b46748ef7f2948a1027812ade0bbc2a3597", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jre_aarch64_linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" }, "armv6l": { - "build": "9", - "sha256": "025f994549708f7291ce3b0fa7c41f7e78ec3af3eae3f85fffe9c5fa4a54889f", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jre_arm_linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "bf893085627c6ec484e63aa1290276b23bcfee547459da6b0432ae9c5c1be22a", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jre_arm_linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" }, "armv7l": { - "build": "9", - "sha256": "025f994549708f7291ce3b0fa7c41f7e78ec3af3eae3f85fffe9c5fa4a54889f", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jre_arm_linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "bf893085627c6ec484e63aa1290276b23bcfee547459da6b0432ae9c5c1be22a", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jre_arm_linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" }, "packageType": "jre", "powerpc64le": { - "build": "9", - "sha256": "3b3fbd324620fd914bd8462e292124493fcf846fd69195c4b9a231131dc68d5f", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jre_ppc64le_linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "8ee351314182df93fbad96139bb74b97814944d66197896e388404a1ecfa06b3", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jre_ppc64le_linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" }, "vmType": "hotspot", "x86_64": { - "build": "9", - "sha256": "786a72296189ba8e43999532aa73730d87ec1fce558eb3c4e98b611b423375e3", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jre_x64_linux_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "e0c1938093da3780e4494d366a4e6b75584dde8d46a19acea6691ae11df4cda5", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jre_x64_linux_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" } }, "openjdk17": { "aarch64": { - "build": "9", - "sha256": "ccfa23c25790475c84df983cc5f729b94c04d9ea9863912deb15c6266782cf16", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jre_aarch64_linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" + "build": "7", + "sha256": "9dfe4c56463690ae67d22268980d8861eb46b907d7914f8f2e6fc7b25778c8ec", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_aarch64_linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" }, "armv6l": { - "build": "9", - "sha256": "2e06401aa3aa7a825d73a6af8e9462449b1a86e7705b793dc8ec90423b602ee2", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jre_arm_linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" + "build": "7", + "sha256": "f093094abe0cb2bb5a255d8180810030321073520541f289926c4682eda76136", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_arm_linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" }, "armv7l": { - "build": "9", - "sha256": "2e06401aa3aa7a825d73a6af8e9462449b1a86e7705b793dc8ec90423b602ee2", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jre_arm_linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" + "build": "7", + "sha256": "f093094abe0cb2bb5a255d8180810030321073520541f289926c4682eda76136", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_arm_linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" }, "packageType": "jre", "powerpc64le": { - "build": "9", - "sha256": "884b5cb817e50010b4d0a3252afb6a80db18995af19bbd16a37348b2c37949bc", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jre_ppc64le_linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" - }, - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "bcb1b7b8ad68c93093f09b591b7cb17161d39891f7d29d33a586f5a328603707", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jre_x64_linux_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" + "build": "7", + "sha256": "2759c48e1e56117871b04c851af18b92b6992cf67590f602949b96c3cff15c73", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_ppc64le_linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" }, "riscv64": { "build": "7", "sha256": "2d1ed42918305a1a0754a6e1e9294c7d4d7fda4bff6dba7bc5682037d860dbc9", "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_riscv64_linux_hotspot_17.0.12_7.tar.gz", "version": "17.0.12" - } - }, - "openjdk18": { - "aarch64": { - "build": "1", - "sha256": "e11e00438c2f6f79f86ff1ca2b015913b0e16bd9491953a082d5c786402cb50a", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jre_aarch64_linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - }, - "armv6l": { - "build": "1", - "sha256": "0ae7281fa883de0d39a75b39bfbbcec1d2a5f8ed8691af12226962ce1a761cd7", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jre_arm_linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - }, - "armv7l": { - "build": "1", - "sha256": "0ae7281fa883de0d39a75b39bfbbcec1d2a5f8ed8691af12226962ce1a761cd7", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jre_arm_linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - }, - "packageType": "jre", - "powerpc64le": { - "build": "1", - "sha256": "2298504c99b4c15f620f70415215e481766d2b2f784d066206eed8c583922f8f", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jre_ppc64le_linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - }, - "vmType": "hotspot", - "x86_64": { - "build": "1", - "sha256": "74f602ab5abaa554859a5e92a65e5bb6e23c2d4165228299c7f54ed56dbc5959", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jre_x64_linux_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - } - }, - "openjdk19": { - "aarch64": { - "build": "7", - "sha256": "3653f9e5ad21e4744e5a655e243fba2895651029bee23f3d2366d5debc41a736", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jre_aarch64_linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - }, - "armv6l": { - "build": "7", - "sha256": "d4588e8c01ca60da2ceed68b7d43d2fd9ec3350b93043f0dabd0eb6cb03cb23d", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jre_arm_linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - }, - "armv7l": { - "build": "7", - "sha256": "d4588e8c01ca60da2ceed68b7d43d2fd9ec3350b93043f0dabd0eb6cb03cb23d", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jre_arm_linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - }, - "packageType": "jre", - "powerpc64le": { - "build": "7", - "sha256": "a30203431c7c21602227d39368c5af6e7abd19000d6da5562de7f3f5c57cbad5", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jre_ppc64le_linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" }, "vmType": "hotspot", "x86_64": { "build": "7", - "sha256": "7386e10c74f00a4382be0540bc0494854804ad79427d8a50ac77a4c7208ff348", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jre_x64_linux_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - } - }, - "openjdk20": { - "aarch64": { - "build": "9", - "sha256": "63a730d5a3b6d21d31f7cba15dc44b019a8a4d8652e13acec45040f98584112c", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2%2B9/OpenJDK20U-jre_aarch64_linux_hotspot_20.0.2_9.tar.gz", - "version": "20.0.2" - }, - "packageType": "jre", - "powerpc64le": { - "build": "36", - "sha256": "a1c5a16d5a438ce7da4563cd51ff6778cdf62331c00a3096ab2388a916e076d2", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20%2B36/OpenJDK20U-jre_ppc64le_linux_hotspot_20_36.tar.gz", - "version": "20.0.0" - }, - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "e3592e86290c192804d9c6b5035d42cc32cf04141d1c0b9d1ecb67739826c8c5", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2%2B9/OpenJDK20U-jre_x64_linux_hotspot_20.0.2_9.tar.gz", - "version": "20.0.2" + "sha256": "0e8088d7a3a7496faba7ac8787db09dc0264c2bc6f568ea8024fd775a783e13c", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_x64_linux_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" } }, "openjdk21": { "aarch64": { - "build": "9", - "sha256": "c7c31bc6f5ab4c4b6f4559e11c2fa9541ae6757ab8da6dd85c29163913bd9238", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jre_aarch64_linux_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "58845ce4275f3ec74fba075597c8216bb201773da036c4703be8b7b7b457355d", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_aarch64_linux_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" }, "packageType": "jre", "powerpc64le": { - "build": "9", - "sha256": "aa628c6accc9d075b7b0f2bff6487f8ca0b8f057af31842a85fc8b363e1e10f3", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jre_ppc64le_linux_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" - }, - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "f1af100c4afca2035f446967323230150cfe5872b5a664d98c86963e5c066e0d", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jre_x64_linux_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "46cf93653e2b553fb1c91760cfe2ff20999ba358d648d2df69e5948784768440", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_ppc64le_linux_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" }, "riscv64": { "build": "7", "sha256": "bf814344429f53d11f8aace14d326e2580ea6e66dd81b109c79160bd41735237", "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_riscv64_linux_hotspot_21.0.4_7.tar.gz", "version": "21.0.4" + }, + "vmType": "hotspot", + "x86_64": { + "build": "7", + "sha256": "d3affbb011ca6c722948f6345d15eba09bded33f9947d4d67e09723e2518c12a", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_x64_linux_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" } }, "openjdk22": { "aarch64": { - "build": "8", - "sha256": "8e5996a2bbae2da9797cff5a62cb2080965e08fd66de24673b29a8e481ec769e", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jre_aarch64_linux_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "7cf494b51625505d1843ad032677d885bd8000a80d0d38396685f25acbdb5708", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_aarch64_linux_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" }, "packageType": "jre", "powerpc64le": { - "build": "8", - "sha256": "7df4a10fab324181a6c9e8b1e2a45042b8d30490f0fdb937a536f6cd17c907ef", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jre_ppc64le_linux_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" - }, - "vmType": "hotspot", - "x86_64": { - "build": "8", - "sha256": "154dbc7975cf765c59bdaa1e693d6c8b009635c9a182d6d6d9f0cfbec5317b4c", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jre_x64_linux_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "132191d6f23ad1ac558de67e3e9913d047db07efd979eb84bf5dc20a651ffe61", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_ppc64le_linux_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" }, "riscv64": { "build": "9", "sha256": "81aacc0ae75e65846e6207edf41b8c5927673eba5588eebc5ba8076ca9a6041c", "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_riscv64_linux_hotspot_22.0.2_9.tar.gz", "version": "22.0.2" + }, + "vmType": "hotspot", + "x86_64": { + "build": "9", + "sha256": "41e401f287e1850631b259b483929462217ac6b1cc3c7359d80b1cc01ee5a666", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_x64_linux_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" } }, "openjdk8": { "aarch64": { - "build": "8", - "sha256": "17550a6a4ddf71ac81ba8f276467bc58f036c123c0f1bafcafd69f70e3e49cf5", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jre_aarch64_linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "8fbefff2c578f73d95118d830347589ddc9aa84510200a5a5001901c2dea4810", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jre_aarch64_linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" }, "armv6l": { - "build": "8", - "sha256": "1a6b470ac83b241223447a1e6cb55c4a8f78af0146b9387e9842625041226654", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jre_arm_linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "13bdefdeae6f18bc9c87bba18c853b8b12c5442ce07ff0a3956ce28776d695ff", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jre_arm_linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" }, "armv7l": { - "build": "8", - "sha256": "1a6b470ac83b241223447a1e6cb55c4a8f78af0146b9387e9842625041226654", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jre_arm_linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "13bdefdeae6f18bc9c87bba18c853b8b12c5442ce07ff0a3956ce28776d695ff", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jre_arm_linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" }, "packageType": "jre", "powerpc64le": { - "build": "8", - "sha256": "d3157230c01b320e47ad6df650e83b15f8f76294d0df9f1c03867d07fe2883c9", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jre_ppc64le_linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "2991edbedee448c0f1edf131beca84b415dac64ea97365b9bfd85bc2f39893bb", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jre_ppc64le_linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" }, "vmType": "hotspot", "x86_64": { - "build": "8", - "sha256": "a8d994332a2ff15d48bf04405c3b2f6bd331a928dd96639b15e62891f7172363", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jre_x64_linux_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "0ac516cc1eadffb4cd3cfc9736a33d58ea6a396bf85729036c973482f7c063d9", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05/OpenJDK8U-jre_x64_linux_hotspot_8u422b05.tar.gz", + "version": "8.0.422" } } } @@ -752,258 +468,152 @@ "jdk": { "openjdk11": { "aarch64": { - "build": "9", - "sha256": "49122443bdeab2c9f468bd400f58f85a9ea462846faa79084fd6fd786d9b492d", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jdk_aarch64_mac_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "8bcbb98e293fb3c4d5cae3539f240ed478fae85962311fccd4c628ebad3a90e4", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_aarch64_mac_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" }, "packageType": "jdk", "vmType": "hotspot", "x86_64": { - "build": "9", - "sha256": "4dbd21d9a0311d321f5886eda50c3086026ed61d02e1a85f7b8c2e9ad557bf03", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jdk_x64_mac_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" - } - }, - "openjdk16": { - "packageType": "jdk", - "vmType": "hotspot", - "x86_64": { - "build": "7", - "sha256": "27975d9e695cfbb93861540926f9f7bcac973a254ceecbee549706a99cbbdf95", - "url": "https://github.com/adoptium/temurin16-binaries/releases/download/jdk-16.0.2%2B7/OpenJDK16U-jdk_x64_mac_hotspot_16.0.2_7.tar.gz", - "version": "16.0.2" + "build": "8", + "sha256": "07a1be21f45f0951db05516e57602c414295c51a920f7e9b6ddeaa325d619b28", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jdk_x64_mac_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" } }, "openjdk17": { - "aarch64": { - "build": "9", - "sha256": "09a162c58dd801f7cfacd87e99703ed11fb439adc71cfa14ceb2d3194eaca01c", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" - }, - "packageType": "jdk", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "f8b96724618f4df557c47f11048d1084e98ed3eb87f0dbd5b84f768a80c3348e", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jdk_x64_mac_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" - } - }, - "openjdk18": { - "aarch64": { - "build": "1", - "sha256": "c5ec423f52d8f3aa632941f29fd289f2e31dce5fe6f3abed9b72bd374f54cd41", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jdk_aarch64_mac_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - }, - "packageType": "jdk", - "vmType": "hotspot", - "x86_64": { - "build": "1", - "sha256": "2ed916b0c9d197a6bf71b76e84d94125023c2609e0a9b22c64553eff5c9c29c1", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jdk_x64_mac_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - } - }, - "openjdk19": { "aarch64": { "build": "7", - "sha256": "c419330cc8d6b9974d3bf1937f8f0e747c34c469afd5c546831d35aa19e03d49", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jdk_aarch64_mac_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" + "sha256": "d7910b1acaeb290c5c5da21811d2b2b8635f806612a2d6e8d1953b2f77580f78", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_aarch64_mac_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" }, "packageType": "jdk", "vmType": "hotspot", "x86_64": { "build": "7", - "sha256": "f59d4157b3b53a35e72db283659d47f14aecae0ff5936d5f8078000504299da6", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jdk_x64_mac_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - } - }, - "openjdk20": { - "aarch64": { - "build": "9", - "sha256": "6ef42b63581c0265c5a6b734e203bb922ee720571a8de46532ecca50a804c596", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2%2B9/OpenJDK20U-jdk_aarch64_mac_hotspot_20.0.2_9.tar.gz", - "version": "20.0.2" - }, - "packageType": "jdk", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "bdeb37322a7c9292434e417d4db9f5debd7477cf413335d3a653a4e5e50a2473", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2%2B9/OpenJDK20U-jdk_x64_mac_hotspot_20.0.2_9.tar.gz", - "version": "20.0.2" + "sha256": "d5230eeec88739aa7133e4c8635bbd4ab226708c12deaafa13cf26b02bc8e8c4", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jdk_x64_mac_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" } }, "openjdk21": { "aarch64": { - "build": "9", - "sha256": "b6be6a9568be83695ec6b7cb977f4902f7be47d74494c290bc2a5c3c951e254f", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jdk_aarch64_mac_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "dcf69a21601d9b1b25454bbad4f0f32784bb42cdbe4063492e15a851b74cb61e", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_aarch64_mac_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" }, "packageType": "jdk", "vmType": "hotspot", "x86_64": { - "build": "9", - "sha256": "f777103aab94330d14a29bd99f3a26d60abbab8e2c375cec9602746096721a7c", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jdk_x64_mac_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "e368e5de7111aa88e6bbabeff6f4c040772b57fb279cc4e197b51654085bbc18", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jdk_x64_mac_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" } }, "openjdk22": { "aarch64": { - "build": "8", - "sha256": "80d6fa75e87280202ae7660139870fe50f07fca9dc6c4fbd3f2837cbd70ec902", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jdk_aarch64_mac_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "6f7bd166c46094cf48018b018b161eae838a01dddce9d6fc5800eed353d37b84", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_aarch64_mac_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" }, "packageType": "jdk", "vmType": "hotspot", "x86_64": { - "build": "8", - "sha256": "9445952d4487451af024a9a3f56373df76fbd928d9ff9186988aa27be2e4f10c", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jdk_x64_mac_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "f3f411a4c685699980ad0ef2cac994d0450fc40d4a75d3d16b73857f76c9a982", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_x64_mac_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" } }, "openjdk8": { "packageType": "jdk", "vmType": "hotspot", "x86_64": { - "build": "8", - "sha256": "fd62491f7634c1cbed7557d6b21db7ef4818fbc0e63e678110d9d92cbea4ad8c", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jdk_x64_mac_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "14e93cac142c4e7734aab53d1e9f44ef2851cf1cc4657918abccdf99e78c8bad", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05.1/OpenJDK8U-jdk_x64_mac_hotspot_8u422b05.tar.gz", + "version": "8.0.422" } } }, "jre": { "openjdk11": { "aarch64": { - "build": "9", - "sha256": "8ecc59f0bda845717cecbc6025c4c7fcc26d6ffe48824b8f7a5db024216c5fb4", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jre_aarch64_mac_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "809c13c1c3abefe09c8396b18d6dd64837f30bf7bda7cbe317c6567bcd161d7a", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jre_aarch64_mac_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" }, "packageType": "jre", "vmType": "hotspot", "x86_64": { - "build": "9", - "sha256": "9855769dddc3f3b5a1fb530ce953025b1f7b3fac861628849b417676b1310b1f", - "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.23%2B9/OpenJDK11U-jre_x64_mac_hotspot_11.0.23_9.tar.gz", - "version": "11.0.23" + "build": "8", + "sha256": "764d30489541ae088d2d0a75d46524ec35797dcdbe4a11b6bfbaee7957d8f77e", + "url": "https://github.com/adoptium/temurin11-binaries/releases/download/jdk-11.0.24%2B8/OpenJDK11U-jre_x64_mac_hotspot_11.0.24_8.tar.gz", + "version": "11.0.24" } }, "openjdk17": { - "aarch64": { - "build": "9", - "sha256": "003d3e0a65a2f0633b8bfed42be133724b490acb323c174c708d3a446d5fc660", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jre_aarch64_mac_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" - }, - "packageType": "jre", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "232c40bebd6ddbb673862e86e7e6e09bcfe399e5a53c8a6b77bf1ceab8edefd0", - "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.11%2B9/OpenJDK17U-jre_x64_mac_hotspot_17.0.11_9.tar.gz", - "version": "17.0.11" - } - }, - "openjdk18": { - "aarch64": { - "build": "1", - "sha256": "071f073efb9550838bc02e429ef972f9450b477360f803dd1cf19096ca41182e", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jre_aarch64_mac_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - }, - "packageType": "jre", - "vmType": "hotspot", - "x86_64": { - "build": "1", - "sha256": "3629e3dc9dbab7ed13070fbea3a827030acdd62afa557496e88a6d01f9300474", - "url": "https://github.com/adoptium/temurin18-binaries/releases/download/jdk-18.0.2.1%2B1/OpenJDK18U-jre_x64_mac_hotspot_18.0.2.1_1.tar.gz", - "version": "18.0.2" - } - }, - "openjdk19": { "aarch64": { "build": "7", - "sha256": "1cd53e60478912fe5f2095313821e90c4926e74ff60a4aa9d99fc2ec912411c1", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jre_aarch64_mac_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" + "sha256": "5c1cb2cbd2ef3f2b529e2733d0ab55381e10c4c3607f4d62f2bf12f0942198bf", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_aarch64_mac_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" }, "packageType": "jre", "vmType": "hotspot", "x86_64": { "build": "7", - "sha256": "33a37be7a5d7a6003595eeee6d09e47abfa1a1065a4da9a6f592b4b09cfcea19", - "url": "https://github.com/adoptium/temurin19-binaries/releases/download/jdk-19.0.2%2B7/OpenJDK19U-jre_x64_mac_hotspot_19.0.2_7.tar.gz", - "version": "19.0.2" - } - }, - "openjdk20": { - "aarch64": { - "build": "9", - "sha256": "81b475ab029ab224b2c711ccdfa9c25e0300539faad342a4ceefd33772fb38b4", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2%2B9/OpenJDK20U-jre_aarch64_mac_hotspot_20.0.2_9.tar.gz", - "version": "20.0.2" - }, - "packageType": "jre", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "565d62faac325c098670705fb26a5cc3d4af0a25e86444ddd643f779ad2a3417", - "url": "https://github.com/adoptium/temurin20-binaries/releases/download/jdk-20.0.2%2B9/OpenJDK20U-jre_x64_mac_hotspot_20.0.2_9.tar.gz", - "version": "20.0.2" + "sha256": "331aceddc402263c5e47529234965927573ead684ea2b7a0358fbb6c279c1510", + "url": "https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.12%2B7/OpenJDK17U-jre_x64_mac_hotspot_17.0.12_7.tar.gz", + "version": "17.0.12" } }, "openjdk21": { "aarch64": { - "build": "9", - "sha256": "8df56361b834c4681ef304ae9dc8406ce3d79c8572d2d6c2fefcbea55be7d86b", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jre_aarch64_mac_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "14b39c00ec0ec6e0c465f784261449d0a1c4256b3b15c63c222397ccb31758aa", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_aarch64_mac_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" }, "packageType": "jre", "vmType": "hotspot", "x86_64": { - "build": "9", - "sha256": "d7fc89c196ed03deb8a98f6599e1b2e78859ec8ec752142549cd3710f3e1a025", - "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.3%2B9/OpenJDK21U-jre_x64_mac_hotspot_21.0.3_9.tar.gz", - "version": "21.0.3" + "build": "7", + "sha256": "f67f17413d012672da11163dd73600e0d92eef6f6ff27c6ae25523bd9df74222", + "url": "https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.4%2B7/OpenJDK21U-jre_x64_mac_hotspot_21.0.4_7.tar.gz", + "version": "21.0.4" } }, "openjdk22": { "aarch64": { - "build": "8", - "sha256": "73a8a0270534db7b4760399f41c573fd1cff5f86f4e68b08988afee0df814889", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jre_aarch64_mac_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "d1b72dcf7a5d18b9b394acb7a64667eb089a82c8112214fb5d1e5a24a4b09202", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_aarch64_mac_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" }, "packageType": "jre", "vmType": "hotspot", "x86_64": { - "build": "8", - "sha256": "d21e84edc1d7cc58fc04bcd9a214b71bf85e8ea348f8659197be3383afcb2b9a", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.1%2B8/OpenJDK22U-jre_x64_mac_hotspot_22.0.1_8.tar.gz", - "version": "22.0.1" + "build": "9", + "sha256": "ab0fe9b4cd5c38ea1ceb1c675b1722d510038f657f79ce97a811b3d13d3882a6", + "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_x64_mac_hotspot_22.0.2_9.tar.gz", + "version": "22.0.2" } }, "openjdk8": { "packageType": "jre", "vmType": "hotspot", "x86_64": { - "build": "8", - "sha256": "1237e4f4238211d9137eec838e5d7cabdc9d93d41001cf41f6de3a4eb90884ef", - "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u412-b08/OpenJDK8U-jre_x64_mac_hotspot_8u412b08.tar.gz", - "version": "8.0.412" + "build": "5", + "sha256": "814a1e262c10cb3f056adbdb20396564fe9ea0f039a863bae6b648f7680b30cc", + "url": "https://github.com/adoptium/temurin8-binaries/releases/download/jdk8u422-b05.1/OpenJDK8U-jre_x64_mac_hotspot_8u422b05.tar.gz", + "version": "8.0.422" } } } From 3da3ed012b059851d6f7b57cdde54e2ad0a6f351 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 24 Sep 2024 17:51:28 +0100 Subject: [PATCH 0041/1574] temurin-{,jre-}bin-23: init at 23.0.0 --- .../compilers/temurin-bin/generate-sources.py | 2 +- .../compilers/temurin-bin/jdk-darwin.nix | 3 + .../compilers/temurin-bin/jdk-linux.nix | 3 + .../compilers/temurin-bin/sources.json | 120 ++++++++++++++++++ pkgs/top-level/all-packages.nix | 4 + 5 files changed, 131 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/temurin-bin/generate-sources.py b/pkgs/development/compilers/temurin-bin/generate-sources.py index adeca0b73326..6f398c453c62 100755 --- a/pkgs/development/compilers/temurin-bin/generate-sources.py +++ b/pkgs/development/compilers/temurin-bin/generate-sources.py @@ -6,7 +6,7 @@ import re import requests import sys -feature_versions = (8, 11, 17, 21, 22) +feature_versions = (8, 11, 17, 21, 22, 23) oses = ("mac", "linux", "alpine-linux") types = ("jre", "jdk") impls = ("hotspot",) diff --git a/pkgs/development/compilers/temurin-bin/jdk-darwin.nix b/pkgs/development/compilers/temurin-bin/jdk-darwin.nix index 6f591a7e86f5..76c9aa332001 100644 --- a/pkgs/development/compilers/temurin-bin/jdk-darwin.nix +++ b/pkgs/development/compilers/temurin-bin/jdk-darwin.nix @@ -21,4 +21,7 @@ in jdk-22 = common { sourcePerArch = sources.jdk.openjdk22; }; jre-22 = common { sourcePerArch = sources.jre.openjdk22; }; + + jdk-23 = common { sourcePerArch = sources.jdk.openjdk23; }; + jre-23 = common { sourcePerArch = sources.jre.openjdk23; }; } diff --git a/pkgs/development/compilers/temurin-bin/jdk-linux.nix b/pkgs/development/compilers/temurin-bin/jdk-linux.nix index e05c5d40ae08..54a233590fe7 100644 --- a/pkgs/development/compilers/temurin-bin/jdk-linux.nix +++ b/pkgs/development/compilers/temurin-bin/jdk-linux.nix @@ -22,4 +22,7 @@ in jdk-22 = common { sourcePerArch = sources.jdk.openjdk22; }; jre-22 = common { sourcePerArch = sources.jre.openjdk22; }; + + jdk-23 = common { sourcePerArch = sources.jdk.openjdk23; }; + jre-23 = common { sourcePerArch = sources.jre.openjdk23; }; } diff --git a/pkgs/development/compilers/temurin-bin/sources.json b/pkgs/development/compilers/temurin-bin/sources.json index 025e90b5ea16..75ce8dfb0ae6 100644 --- a/pkgs/development/compilers/temurin-bin/sources.json +++ b/pkgs/development/compilers/temurin-bin/sources.json @@ -54,6 +54,22 @@ "version": "22.0.2" } }, + "openjdk23": { + "aarch64": { + "build": "37", + "sha256": "7e842c9b8a44a5a21d83a3e38ae3b141cfbdb429dde70ff264d3da4bff44e1c7", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jdk_aarch64_alpine-linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + }, + "packageType": "jdk", + "vmType": "hotspot", + "x86_64": { + "build": "37", + "sha256": "bff4c78f30d8d173e622bf2f40c36113df47337fc6d1ee5105ed2459841165aa", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jdk_x64_alpine-linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + } + }, "openjdk8": { "packageType": "jdk", "vmType": "hotspot", @@ -118,6 +134,22 @@ "version": "22.0.2" } }, + "openjdk23": { + "aarch64": { + "build": "37", + "sha256": "858aa6b255164e535e2fd6cc8dfbf129327a9126ebb9e8f24115c2089efd36f3", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jre_aarch64_alpine-linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + }, + "packageType": "jre", + "vmType": "hotspot", + "x86_64": { + "build": "37", + "sha256": "7acbc972b0dd84ca10ec6f192b20e76445a22f4c5558e1657ff393e4868e9343", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jre_x64_alpine-linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + } + }, "openjdk8": { "packageType": "jre", "vmType": "hotspot", @@ -262,6 +294,34 @@ "version": "22.0.2" } }, + "openjdk23": { + "aarch64": { + "build": "37", + "sha256": "e8043d1bd9c4f42c5cf7883aca1fc3ef6bcccf4a664f378818ac0fd4fb987b7e", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jdk_aarch64_linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + }, + "packageType": "jdk", + "powerpc64le": { + "build": "37", + "sha256": "4d3b0609c783dea1f6a899bfc8c84b4000d1f48f39e2489d70050bbf2c7f7d9c", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jdk_ppc64le_linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + }, + "riscv64": { + "build": "37", + "sha256": "d401699a92469de7bfb72909c1d11019537a0a2c21af01a8dce1831f09ef5165", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jdk_riscv64_linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + }, + "vmType": "hotspot", + "x86_64": { + "build": "37", + "sha256": "630c4f3870056e7e005736ec1edc34ee63a9b45e2027582c52f53a9bf44314b8", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jdk_x64_linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + } + }, "openjdk8": { "aarch64": { "build": "5", @@ -428,6 +488,34 @@ "version": "22.0.2" } }, + "openjdk23": { + "aarch64": { + "build": "37", + "sha256": "ec45f4f9a4a98d8a0af24b508ca84a411ea88fac8abb8ad2cfca85cb3902ab5d", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jre_aarch64_linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + }, + "packageType": "jre", + "powerpc64le": { + "build": "37", + "sha256": "9120876c35b904ac041c5a021330a6f11d4e6c7537ce28bdbb7170b944673435", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jre_ppc64le_linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + }, + "riscv64": { + "build": "37", + "sha256": "ca32d942ef5357fb948604cd8aea5c597130cf7fdf6ddee267b4aa99406ee471", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jre_riscv64_linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + }, + "vmType": "hotspot", + "x86_64": { + "build": "37", + "sha256": "9c3c3d42ffb2603b328b7154fc9eb449ef87488b3cbeb24a497d46677c7fd44d", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jre_x64_linux_hotspot_23_37.tar.gz", + "version": "23.0.0" + } + }, "openjdk8": { "aarch64": { "build": "5", @@ -530,6 +618,22 @@ "version": "22.0.2" } }, + "openjdk23": { + "aarch64": { + "build": "37", + "sha256": "411934ca9ede95671afc1e7e1d9c8912c43247c7e4fba97730f20c0875287d44", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jdk_aarch64_mac_hotspot_23_37.tar.gz", + "version": "23.0.0" + }, + "packageType": "jdk", + "vmType": "hotspot", + "x86_64": { + "build": "37", + "sha256": "0b4b14f7cb44cab89083fb72beafa6d4f12ee6722bf682e5dd026dab12cc8d23", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jdk_x64_mac_hotspot_23_37.tar.gz", + "version": "23.0.0" + } + }, "openjdk8": { "packageType": "jdk", "vmType": "hotspot", @@ -606,6 +710,22 @@ "version": "22.0.2" } }, + "openjdk23": { + "aarch64": { + "build": "37", + "sha256": "2c96b006080906951fb0ddae8e23ca3ef2bd327b77cac84b4302b8d84c7014f5", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jre_aarch64_mac_hotspot_23_37.tar.gz", + "version": "23.0.0" + }, + "packageType": "jre", + "vmType": "hotspot", + "x86_64": { + "build": "37", + "sha256": "1f41755494c45a8a88dfed926251f478544c0e51a71a011314fc282e915f804f", + "url": "https://github.com/adoptium/temurin23-binaries/releases/download/jdk-23%2B37/OpenJDK23U-jre_x64_mac_hotspot_23_37.tar.gz", + "version": "23.0.0" + } + }, "openjdk8": { "packageType": "jre", "vmType": "hotspot", diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c27b0e2ed6a6..ba97b6314ffb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14388,6 +14388,9 @@ with pkgs; ### DEVELOPMENT / COMPILERS + temurin-bin-23 = javaPackages.compiler.temurin-bin.jdk-23; + temurin-jre-bin-23 = javaPackages.compiler.temurin-bin.jre-23; + temurin-bin-22 = javaPackages.compiler.temurin-bin.jdk-22; temurin-jre-bin-22 = javaPackages.compiler.temurin-bin.jre-22; @@ -14399,6 +14402,7 @@ with pkgs; temurin-bin-11 = javaPackages.compiler.temurin-bin.jdk-11; temurin-jre-bin-11 = javaPackages.compiler.temurin-bin.jre-11; + temurin-bin-8 = javaPackages.compiler.temurin-bin.jdk-8; temurin-jre-bin-8 = javaPackages.compiler.temurin-bin.jre-8; From 44cdf2fe1c1f40fd1a453e41248a4e9f605619ac Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 25 Sep 2024 02:56:32 +0100 Subject: [PATCH 0042/1574] zulu8: 8.0.{392,402} -> 8.0.422 --- pkgs/development/compilers/zulu/8.nix | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/development/compilers/zulu/8.nix b/pkgs/development/compilers/zulu/8.nix index 05411149da68..175519bb8ab4 100644 --- a/pkgs/development/compilers/zulu/8.nix +++ b/pkgs/development/compilers/zulu/8.nix @@ -8,35 +8,35 @@ callPackage ./common.nix ({ # Note that the latest build may differ by platform dists = { x86_64-linux = { - zuluVersion = "8.76.0.17"; - jdkVersion = "8.0.402"; + zuluVersion = "8.80.0.17"; + jdkVersion = "8.0.422"; hash = - if enableJavaFX then "sha256-29aDAu8WVYQFSpMUFq4gG64BBz/ei/VDMg72xrpB9w4=" - else "sha256-34DI6O7T8iqDHsX63S3xk+BKDu8IHRRWNvtxpsnUJEk="; + if enableJavaFX then "sha256-Ls2sHCtP9htBIDwq5fNDRA3/bGN0bzaMp6nNkjU1zx8=" + else "sha256-YNxnNOFvTc0S3jt4F3UREi2196W7wSBmwieNJl7qamo="; }; aarch64-linux = { - zuluVersion = "8.74.0.17"; - jdkVersion = "8.0.392"; + zuluVersion = "8.80.0.17"; + jdkVersion = "8.0.422"; hash = - if enableJavaFX then throw "JavaFX is not available for aarch64-linux" - else "sha256-xESdKEmfkiE657X/xclwsJR5M+P72BpWErtAcYMcK0Y="; + if enableJavaFX then "sha256-aVBleFrj4OpUJh82rM8XQGy9SzGqjaeOBo20nAbtpJo=" + else "sha256-C5ebWtKAyKexOuEf4yM1y5tQZ2ICxREObwvMrcz5TXE="; }; x86_64-darwin = { - zuluVersion = "8.76.0.17"; - jdkVersion = "8.0.402"; + zuluVersion = "8.80.0.17"; + jdkVersion = "8.0.422"; hash = - if enableJavaFX then "sha256-oqFpKeWwfiXr3oX78LGvAyDGAAS2GON2gAm6fHGH7Ow=" - else "sha256-edZqDEsydQCDEwC1ZCDF/MjWVTnuQNWcKR2k/RjaIEI="; + if enableJavaFX then "sha256-7NB0OH194nZdpIGyX8gLxJzjJdi2UIxmGsGI5M0yqJ4=" + else "sha256-vyB1Fepnpwsi9KjwFjEF+YbiCgmqZcirZu0zmRAp8PA="; }; aarch64-darwin = { - zuluVersion = "8.76.0.17"; - jdkVersion = "8.0.402"; + zuluVersion = "8.80.0.17"; + jdkVersion = "8.0.422"; hash = - if enableJavaFX then "sha256-UCWRXCz4v381IWzWPDYzwJwbhsmZOYxKPLGJBQGjPmc=" - else "sha256-0VPlOuNB39gDnU+pK0DGTSUjTHTtYoxaRg3YD2LyLXg="; + if enableJavaFX then "sha256-JuQkY923tizx5HQo4WC3YCk75a4qHJYNRFKpZ8XES58=" + else "sha256-Q/hU2ICVwmJehrXmACm4/X48ULTqM6WSc55JDVgkBvM="; }; }; } // builtins.removeAttrs args [ "callPackage" ]) From 72f2e946d74f7c7559ea359789373d99eb163389 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 25 Sep 2024 02:56:32 +0100 Subject: [PATCH 0043/1574] zulu11: 11.0.22 -> 11.0.24 --- pkgs/development/compilers/zulu/11.nix | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/development/compilers/zulu/11.nix b/pkgs/development/compilers/zulu/11.nix index afe33634820c..ce4d15629b81 100644 --- a/pkgs/development/compilers/zulu/11.nix +++ b/pkgs/development/compilers/zulu/11.nix @@ -8,35 +8,35 @@ callPackage ./common.nix ({ # Note that the latest build may differ by platform dists = { x86_64-linux = { - zuluVersion = "11.70.15"; - jdkVersion = "11.0.22"; + zuluVersion = "11.74.15"; + jdkVersion = "11.0.24"; hash = - if enableJavaFX then "sha256-FxTHgng7/oDY3n3qy8j1ztbpBQeoGcEBJbEXqaE4Zr4=" - else "sha256-V41ZRrJtkle3joKhwoID5bvWkN5I4gFjmbEnTD7no8U="; + if enableJavaFX then "sha256-eP2BCD77uRmukd48+pDlIlhos9RjL9VYx8tpQdq2uNo=" + else "sha256-p6rA5pqZv2Sho+yW8IFJrAaaW72q766SLuOnRl/ZGLM="; }; aarch64-linux = { - zuluVersion = "11.70.15"; - jdkVersion = "11.0.22"; + zuluVersion = "11.74.15"; + jdkVersion = "11.0.24"; hash = - if enableJavaFX then throw "JavaFX is not available for aarch64-linux" - else "sha256-u6XWMXAArUhMMb6j3KFOhkIxpVYR1oYLF0Wde7/tI0k="; + if enableJavaFX then "sha256-nAUjPk9gktO0UJk7gAKygq+ztSJY5wk+EoG1LgJidJ8=" + else "sha256-T0c+YwfEZcA3iJmBriyzxBM2SECcczG25XVApIlgM+E="; }; x86_64-darwin = { - zuluVersion = "11.70.15"; - jdkVersion = "11.0.22"; + zuluVersion = "11.74.15"; + jdkVersion = "11.0.24"; hash = - if enableJavaFX then "sha256-JkJZwk+D28wHWqwUoLo7WW5ypwTrT5biSoP+70YI3eQ=" - else "sha256-ca/ttkPe2tbcm1ruguDgPsxKWbEdKcICsKCDXaup9N4="; + if enableJavaFX then "sha256-hanQw2FWbqsmGR1WixbM0BNWGeXmS2vt9tbaaEY7D1c=" + else "sha256-CH6pVui0PInHMt+AJOE0T2hrAmEcLFRJvmR4KZuanaw="; }; aarch64-darwin = { - zuluVersion = "11.70.15"; - jdkVersion = "11.0.22"; + zuluVersion = "11.74.15"; + jdkVersion = "11.0.24"; hash = - if enableJavaFX then "sha256-bAgH4lCxPvvFOeif5gI2aoLt1aC4EXPzb2YmiS9bQsU=" - else "sha256-PWQOF+P9djZarjAJaE3I0tuI1E4H/9584VN04BMzmvM="; + if enableJavaFX then "sha256-WbzpfPgoT3CTazKBnI1Fg+q+YQP6MwCWkon6VOeLZsA=" + else "sha256-+KxFgHbBDxN1O3NCAzqqBztxXveYAjrPFVuoFL/2dRQ="; }; }; } // builtins.removeAttrs args [ "callPackage" ]) From 3afd5ff68b65f4bb01439e3c4a64678a2e03147b Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 25 Sep 2024 02:56:32 +0100 Subject: [PATCH 0044/1574] zulu17: 17.0.10 -> 17.0.12 --- pkgs/development/compilers/zulu/17.nix | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/development/compilers/zulu/17.nix b/pkgs/development/compilers/zulu/17.nix index 74e00df88c68..3e94e824d55d 100644 --- a/pkgs/development/compilers/zulu/17.nix +++ b/pkgs/development/compilers/zulu/17.nix @@ -8,35 +8,35 @@ callPackage ./common.nix ({ # Note that the latest build may differ by platform dists = { x86_64-linux = { - zuluVersion = "17.48.15"; - jdkVersion = "17.0.10"; + zuluVersion = "17.52.17"; + jdkVersion = "17.0.12"; hash = - if enableJavaFX then "sha256-YvuD/n84+DARPm+38TxIUB727SIhASFo+WX9+PtJqyw=" - else "sha256-VyhNob2G1Tq/WCKT0g0Y//f+JD2hWgj6QU9idfvUj+I="; + if enableJavaFX then "sha256-qKpkvk7/IEnlOJoy7An0AVGUXWkWeuuiQzqKKE/+Ec4=" + else "sha256-JCRcjQzkkV2G5wsoi13psbTHjxCtuw5rqT4pEAOarRk="; }; aarch64-linux = { - zuluVersion = "17.48.15"; - jdkVersion = "17.0.10"; + zuluVersion = "17.52.17"; + jdkVersion = "17.0.12"; hash = - if enableJavaFX then throw "JavaFX is not available for aarch64-linux" - else "sha256-9OZl8ruaLvjdpg42fC3IM5mC/9lmshCppNfUuz/Sf8E="; + if enableJavaFX then "sha256-mpTM/43oyDsOnoZM8AW1Z7EFTznnPAnYoC+T6csc8Fw=" + else "sha256-uIz2D5WjqySy5lobuvWp3kFTGsBKhXzT56QgCGyXwSY="; }; x86_64-darwin = { - zuluVersion = "17.48.15"; - jdkVersion = "17.0.10"; + zuluVersion = "17.52.17"; + jdkVersion = "17.0.12"; hash = - if enableJavaFX then "sha256-VOIcFtjQiYsA4AiP1TCa0Q76Ew5FdeJCICwsYGU+Dnw=" - else "sha256-huSKGvOnrEUAiE2MJbdHWtF2saeLGaQkZllXzDo8o+g="; + if enableJavaFX then "sha256-jb1oPmRzlYUMONovdsHowlC44X3/PFZ8KilxSsR924U=" + else "sha256-8VlGFUhCn3NE2A42xi69KzZqu0RoGOV1ZYj8oaqCnTc="; }; aarch64-darwin = { - zuluVersion = "17.48.15"; - jdkVersion = "17.0.10"; + zuluVersion = "17.52.17"; + jdkVersion = "17.0.12"; hash = - if enableJavaFX then "sha256-fxBDhHMeL5IP4eRw9ykXrRRh7Nl9DnvDB1YLaQwFHLg=" - else "sha256-kuEiHSkb4WFtPB3m0A968LPZw7Wl0sKquhbzDF8vQS8="; + if enableJavaFX then "sha256-rEILTKTpX8DEoOGhlrhbxpcCyF2+QrjW92h0ox9ezp0=" + else "sha256-RZ3hNQQFE+spTT9lFHLjmkolSkpHDg2Hvro6xi7uNww="; }; }; } // builtins.removeAttrs args [ "callPackage" ]) From c12e8ac25f00ec34961c04ac7e5d35cc7bceb606 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 25 Sep 2024 02:56:32 +0100 Subject: [PATCH 0045/1574] zulu21: 21.0.2 -> 21.0.4 --- pkgs/development/compilers/zulu/21.nix | 32 +++++++++++++------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/pkgs/development/compilers/zulu/21.nix b/pkgs/development/compilers/zulu/21.nix index db2d3a397871..9e86e0bc748b 100644 --- a/pkgs/development/compilers/zulu/21.nix +++ b/pkgs/development/compilers/zulu/21.nix @@ -8,35 +8,35 @@ callPackage ./common.nix ({ # Note that the latest build may differ by platform dists = { x86_64-linux = { - zuluVersion = "21.32.17"; - jdkVersion = "21.0.2"; + zuluVersion = "21.36.17"; + jdkVersion = "21.0.4"; hash = - if enableJavaFX then "sha256-CEM2lMjyZLWS1tBcS1tBTUxBwAyzW3vrpRWFVVSFVGY=" - else "sha256-Wtcw++5rtJv/8QvznoQ5LnKNiRA9NHSn5d7w/RNLMAo="; + if enableJavaFX then "sha256-Q2bdM0/a2t5aBRCIzXBlhXamf8N7wdSUsK5VhaU9DcY=" + else "sha256-MY0MLtPIdvt+oslSlFzc997PtSZMpRrs4VnmNaxT1UQ="; }; aarch64-linux = { - zuluVersion = "21.32.17"; - jdkVersion = "21.0.2"; + zuluVersion = "21.36.17"; + jdkVersion = "21.0.4"; hash = - if enableJavaFX then throw "JavaFX is not available for aarch64-linux" - else "sha256-zn3xr11EqfRVYXxLiJFEP74+Syacd32Lgu1m93Fnz+A="; + if enableJavaFX then "sha256-BzNEcDrQo5yOWnEsJxw9JfXYdZGN6/wxnTDB0qC1i/0=" + else "sha256-2jwtfbM2cLz2ZTJEGut/M9zw0ifI2v5841zuZ/aCnEw="; }; x86_64-darwin = { - zuluVersion = "21.32.17"; - jdkVersion = "21.0.2"; + zuluVersion = "21.36.17"; + jdkVersion = "21.0.4"; hash = - if enableJavaFX then "sha256-CbEKa9Z/ItFqVM4BqsWXyRf5ejQZXPK8OqkULr9Cpqk=" - else "sha256-Otj+KI61fZdcJ4auRToDaqRuR6sqw9gVOOuuKlTTwCU="; + if enableJavaFX then "sha256-H3gM2XCCcuUxlAEzX6IO7Cp6NtH85PYHlH54k5XvNAc=" + else "sha256-XOdaaiR8cCm3TEynz29g/SstaM4eiVb7RI0phDFrX+o="; }; aarch64-darwin = { - zuluVersion = "21.32.17"; - jdkVersion = "21.0.2"; + zuluVersion = "21.36.17"; + jdkVersion = "21.0.4"; hash = - if enableJavaFX then "sha256-PK+cafgQsnK6acuQxun4IUiyYHQJsBfUawwfGV8OCfQ=" - else "sha256-6CYFFt6LYGYUIqcl8d8sNu+Ij2+zU5NWawDnMl2z0E4="; + if enableJavaFX then "sha256-lLAb8MABo95A5WcayBLNvsBSdVFptnO4EmhX2gjo6r8=" + else "sha256-vCdQ+BoWbMbpwwroqrpU8lOoyOydjPwEpVX+IHEse/8="; }; }; } // builtins.removeAttrs args [ "callPackage" ]) From 309cfa50b6b7ce1bae1105326c7f02c362a48965 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 24 Sep 2024 17:51:28 +0100 Subject: [PATCH 0046/1574] zulu23: init at 23.0.0 --- pkgs/development/compilers/zulu/23.nix | 42 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 1 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/compilers/zulu/23.nix diff --git a/pkgs/development/compilers/zulu/23.nix b/pkgs/development/compilers/zulu/23.nix new file mode 100644 index 000000000000..3208944f981f --- /dev/null +++ b/pkgs/development/compilers/zulu/23.nix @@ -0,0 +1,42 @@ +{ callPackage +, enableJavaFX ? false +, ... +}@args: + +callPackage ./common.nix ({ + # Details from https://www.azul.com/downloads/?version=java-23-lts&package=jdk + # Note that the latest build may differ by platform + dists = { + x86_64-linux = { + zuluVersion = "23.28.85"; + jdkVersion = "23.0.0"; + hash = + if enableJavaFX then "sha256-HEQ0lxHsoyHG+ZWIlWsbkqMf/rauARafzWoiElRwekA=" + else "sha256-a1YPqBMaWkoruNFoSckLyx00LCOZNsowlSn2L3XCDJA="; + }; + + aarch64-linux = { + zuluVersion = "23.28.85"; + jdkVersion = "23.0.0"; + hash = + if enableJavaFX then throw "JavaFX is not available for aarch64-linux" + else "sha256-/i+ch7BMAwMQ1C4e3shp9BHuQ67vVXfmIK1YKs7L24M="; + }; + + x86_64-darwin = { + zuluVersion = "23.28.85"; + jdkVersion = "23.0.0"; + hash = + if enableJavaFX then "sha256-1/YmLWA/men8jMjnhkZVMf2irf6Tc/5x7UECxqKJcL4=" + else "sha256-rEr8M3KF9Z95gV8sHqi5lQD2RJjtssZx8Q8goy6danw="; + }; + + aarch64-darwin = { + zuluVersion = "23.28.85"; + jdkVersion = "23.0.0"; + hash = + if enableJavaFX then "sha256-TumPJoHmvklMlcpF4PFY/Arcdc5fkX5z0xeIuNFxluQ=" + else "sha256-gFvfJL0RQgIOATLTMdfa+fStUCrdHYC3rxy0j5eNVDc="; + }; + }; +} // builtins.removeAttrs args [ "callPackage" ]) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index ba97b6314ffb..32d4792fb528 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -16137,6 +16137,7 @@ with pkgs; zulu11 = callPackage ../development/compilers/zulu/11.nix { }; zulu17 = callPackage ../development/compilers/zulu/17.nix { }; zulu21 = callPackage ../development/compilers/zulu/21.nix { }; + zulu23 = callPackage ../development/compilers/zulu/23.nix { }; zulu = zulu21; ### DEVELOPMENT / INTERPRETERS From adf045901d3448b3d36503628d5ae8c933cef836 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 26 Sep 2024 11:14:06 +0100 Subject: [PATCH 0047/1574] openjdk: remove unused bootstrap files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit These will still be available in the Git history if anyone wants to try resurrecting a source‐based OpenJDK bootstrap in the future. In the meantime they’re just confusing to have around unreferenced. --- .../compilers/openjdk/bootstrap.nix | 40 ------------------- .../compilers/openjdk/make-bootstrap.nix | 31 -------------- 2 files changed, 71 deletions(-) delete mode 100644 pkgs/development/compilers/openjdk/bootstrap.nix delete mode 100644 pkgs/development/compilers/openjdk/make-bootstrap.nix diff --git a/pkgs/development/compilers/openjdk/bootstrap.nix b/pkgs/development/compilers/openjdk/bootstrap.nix deleted file mode 100644 index e58888cc9ed8..000000000000 --- a/pkgs/development/compilers/openjdk/bootstrap.nix +++ /dev/null @@ -1,40 +0,0 @@ -{ stdenv -, runCommand, fetchurl, zlib - -, version -}: - -assert stdenv.hostPlatform.libc == "glibc"; - -let - fetchboot = version: arch: sha256: fetchurl { - name = "openjdk${version}-bootstrap-${arch}-linux.tar.xz"; - url = "http://tarballs.nixos.org/openjdk/2018-03-31/${version}/${arch}-linux.tar.xz"; - inherit sha256; - }; - - src = if stdenv.hostPlatform.system == "x86_64-linux" then - (if version == "10" then fetchboot "10" "x86_64" "08085fsxc1qhqiv3yi38w8lrg3vm7s0m2yvnwr1c92v019806yq2" - else if version == "8" then fetchboot "8" "x86_64" "18zqx6jhm3lizn9hh6ryyqc9dz3i96pwaz8f6nxfllk70qi5gvks" - else throw "No bootstrap jdk for version ${version}") - else if stdenv.hostPlatform.system == "i686-linux" then - (if version == "10" then fetchboot "10" "i686" "1blb9gyzp8gfyggxvggqgpcgfcyi00ndnnskipwgdm031qva94p7" - else if version == "8" then fetchboot "8" "i686" "1yx04xh8bqz7amg12d13rw5vwa008rav59mxjw1b9s6ynkvfgqq9" - else throw "No bootstrap for version") - else throw "No bootstrap jdk for system ${stdenv.hostPlatform.system}"; - - bootstrap = runCommand "openjdk-bootstrap" { - passthru.home = "${bootstrap}/lib/openjdk"; - } '' - tar xvf ${src} - mv openjdk-bootstrap $out - - LIBDIRS="$(find $out -name \*.so\* -exec dirname {} \; | sort | uniq | tr '\n' ':')" - - find "$out" -type f -print0 | while IFS= read -r -d "" elf; do - isELF "$elf" || continue - patchelf --set-interpreter $(cat "${stdenv.cc}/nix-support/dynamic-linker") "$elf" || true - patchelf --set-rpath "${stdenv.cc.libc}/lib:${stdenv.cc.cc.lib}/lib:${zlib}/lib:$LIBDIRS" "$elf" || true - done - ''; -in bootstrap diff --git a/pkgs/development/compilers/openjdk/make-bootstrap.nix b/pkgs/development/compilers/openjdk/make-bootstrap.nix deleted file mode 100644 index aac54417e2a8..000000000000 --- a/pkgs/development/compilers/openjdk/make-bootstrap.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ runCommand, openjdk, nukeReferences }: - -runCommand "${openjdk.name}-bootstrap.tar.xz" {} '' - mkdir -pv openjdk-bootstrap/lib - - # Do a deep copy of the openjdk - cp -vrL ${openjdk.home} openjdk-bootstrap/lib - - # Includes are needed for building the native jvm - cp -vrL ${openjdk}/include openjdk-bootstrap - - # The binaries are actually stored in the openjdk lib - ln -sv lib/openjdk/bin openjdk-bootstrap/bin - find . -name libjli.so - (cd openjdk-bootstrap/lib; find . -name libjli.so -exec ln -sfv {} libjli.so \;) - - chmod -R +w openjdk-bootstrap - - # Remove components we don't need - find openjdk-bootstrap -name \*.diz -exec rm {} \; - find openjdk-bootstrap -name \*.ttf -exec rm {} \; - find openjdk-bootstrap -name \*.gif -exec rm {} \; - find openjdk-bootstrap -name src.zip -exec rm {} \; - rm -rf openjdk-bootstrap/lib/openjdk/jre/bin - - # Remove all of the references to the native nix store - find openjdk-bootstrap -print0 | xargs -0 ${nukeReferences}/bin/nuke-refs - - # Create the output tarball - tar cv openjdk-bootstrap | xz > $out -'' From 45bb40231383a4488b459c2cca664980b3b63ef0 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 26 Sep 2024 11:16:23 +0100 Subject: [PATCH 0048/1574] openjdk21: remove from `info.json` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The derivation doesn’t use this, so it’s confusing and misleading to have it in there. --- pkgs/development/compilers/openjdk/info.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/pkgs/development/compilers/openjdk/info.json b/pkgs/development/compilers/openjdk/info.json index d55f95f799ae..ba18cf504923 100644 --- a/pkgs/development/compilers/openjdk/info.json +++ b/pkgs/development/compilers/openjdk/info.json @@ -3,10 +3,5 @@ "version": "22.0.2-ga", "repo": "jdk22u", "hash": "sha256-Zo1LOumkt9zTaPqbDcRL8lVJMqVle0QqzThtIz0JRNo=" - }, - "21": { - "version": "21.0.3-ga", - "repo": "jdk21u", - "hash": "sha256-zRN16lrc5gtDlTVIQJRRx103w/VbRkatCLeEc9AXWPE=" } } From bc12b04da7b2cdc7a88be388f7d1ab3d4068dd81 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 26 Sep 2024 11:16:23 +0100 Subject: [PATCH 0049/1574] openjdk8: 8u412-ga -> 8u422-ga --- pkgs/development/compilers/openjdk/8.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/openjdk/8.nix b/pkgs/development/compilers/openjdk/8.nix index b77b058e2cac..831d5e8d49c3 100644 --- a/pkgs/development/compilers/openjdk/8.nix +++ b/pkgs/development/compilers/openjdk/8.nix @@ -20,7 +20,7 @@ let powerpc64le-linux = "ppc64le"; }.${stdenv.system} or (throw "Unsupported platform ${stdenv.system}"); - update = "412"; + update = "422"; build = "ga"; # when building a headless jdk, also bootstrap it with a headless jdk @@ -34,7 +34,7 @@ let owner = "openjdk"; repo = "jdk8u"; rev = "jdk${version}"; - sha256 = "sha256-o+H5n5p6JG1giJj9OADgMbQPaoKMzLMFquKH536SHhM="; + hash = "sha256-uMo1DIkji+FPTbFRwURXybkLE5xv+teSClWP9RfAvfo="; }; outputs = [ "out" "jre" ]; From 0a94520cc7d810b443d3c337e46c67466c1b9c47 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 26 Sep 2024 11:16:23 +0100 Subject: [PATCH 0050/1574] openjdk11: 11.0.23+9 -> 11.0.24+8 --- pkgs/development/compilers/openjdk/11.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/openjdk/11.nix b/pkgs/development/compilers/openjdk/11.nix index a5110cb24d27..dfa1a0ab25ae 100644 --- a/pkgs/development/compilers/openjdk/11.nix +++ b/pkgs/development/compilers/openjdk/11.nix @@ -11,8 +11,8 @@ let major = "11"; minor = "0"; - update = "23"; - build = "9"; + update = "24"; + build = "8"; # when building a headless jdk, also bootstrap it with a headless jdk openjdk-bootstrap = openjdk11-bootstrap.override { gtkSupport = !headless; }; @@ -25,7 +25,7 @@ let owner = "openjdk"; repo = "jdk${major}u"; rev = "jdk-${version}"; - sha256 = "sha256-6y6wge8ZuSKBpb5QNihvAlD4Pv/0d3AQCPOkxUm/sJk="; + hash = "sha256-H/VmT6NYbbZBba7Js8xk+epVZ2kLfvlwTNgg5SQ4ljA="; }; nativeBuildInputs = [ pkg-config autoconf unzip ]; From 64e24d184d3ba17d6bdbc2d107d6bf363cd46837 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 26 Sep 2024 11:16:23 +0100 Subject: [PATCH 0051/1574] openjdk17: 17.0.11+9 -> 17.0.12+7 --- pkgs/development/compilers/openjdk/17.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/openjdk/17.nix b/pkgs/development/compilers/openjdk/17.nix index d0c954d1b023..fc2f50fc1157 100644 --- a/pkgs/development/compilers/openjdk/17.nix +++ b/pkgs/development/compilers/openjdk/17.nix @@ -11,8 +11,8 @@ let version = { feature = "17"; - interim = ".0.11"; - build = "9"; + interim = ".0.12"; + build = "7"; }; # when building a headless jdk, also bootstrap it with a headless jdk @@ -26,7 +26,7 @@ let owner = "openjdk"; repo = "jdk${version.feature}u"; rev = "jdk-${version.feature}${version.interim}+${version.build}"; - sha256 = "sha256-aO4iSc9MklW/4q9U86WEfiiWnlq6iZSbxzq2fbsqd0A="; + hash = "sha256-9UB1H3gd+b4wWxOMgsdDPgX/IGWNORKk1gMsSjYoZMw="; }; nativeBuildInputs = [ pkg-config autoconf unzip ]; From fac90a74ac58646dd48ab72878cdbf6d19c26cf0 Mon Sep 17 00:00:00 2001 From: Emily Date: Thu, 26 Sep 2024 11:16:23 +0100 Subject: [PATCH 0052/1574] openjdk21: 21.0.3+9 -> 21.0.4+7 --- pkgs/development/compilers/openjdk/21.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/compilers/openjdk/21.nix b/pkgs/development/compilers/openjdk/21.nix index 7a650fa4a30f..3576f5af8e4a 100644 --- a/pkgs/development/compilers/openjdk/21.nix +++ b/pkgs/development/compilers/openjdk/21.nix @@ -14,8 +14,8 @@ let version = { feature = "21"; - interim = ".0.3"; - build = "9"; + interim = ".0.4"; + build = "7"; }; # when building a headless jdk, also bootstrap it with a headless jdk @@ -29,7 +29,7 @@ let owner = "openjdk"; repo = "jdk${version.feature}u"; rev = "jdk-${version.feature}${version.interim}+${version.build}"; - hash = "sha256-zRN16lrc5gtDlTVIQJRRx103w/VbRkatCLeEc9AXWPE="; + hash = "sha256-+xpQtQ1IQ7btVWnENT9XS5A/2VP101/+XR3BMo8BqYI="; }; nativeBuildInputs = [ pkg-config autoconf unzip ensureNewerSourcesForZipFilesHook ]; From 00a8a1c7f3c34996fab82bb8e9848af40830a4f7 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 24 Sep 2024 17:51:28 +0100 Subject: [PATCH 0053/1574] {openjdk,openjfx}23: init at 23-ga --- pkgs/development/compilers/openjdk/23.nix | 274 ++++++++++++++++++ pkgs/development/compilers/openjdk/info.json | 5 + .../compilers/openjdk/openjfx/23/default.nix | 111 +++++++ .../compilers/openjdk/openjfx/23/deps.json | 152 ++++++++++ pkgs/top-level/all-packages.nix | 7 +- pkgs/top-level/java-packages.nix | 10 +- 6 files changed, 557 insertions(+), 2 deletions(-) create mode 100644 pkgs/development/compilers/openjdk/23.nix create mode 100644 pkgs/development/compilers/openjdk/openjfx/23/default.nix create mode 100644 pkgs/development/compilers/openjdk/openjfx/23/deps.json diff --git a/pkgs/development/compilers/openjdk/23.nix b/pkgs/development/compilers/openjdk/23.nix new file mode 100644 index 000000000000..25b49356664a --- /dev/null +++ b/pkgs/development/compilers/openjdk/23.nix @@ -0,0 +1,274 @@ +{ stdenv +, lib +, fetchurl +, fetchpatch +, fetchFromGitHub +, pkg-config +, autoconf +, cpio +, file +, which +, unzip +, zip +, perl +, cups +, freetype +, alsa-lib +, libjpeg +, giflib +, libpng +, zlib +, lcms2 +, libX11 +, libICE +, libXrender +, libXext +, libXt +, libXtst +, libXi +, libXinerama +, libXcursor +, libXrandr +, fontconfig +, openjdk23-bootstrap +, ensureNewerSourcesForZipFilesHook +, setJavaClassPath + # TODO(@sternenseemann): gtk3 fails to evaluate in pkgsCross.ghcjs.buildPackages + # which should be fixable, this is a no-rebuild workaround for GHC. +, headless ? stdenv.targetPlatform.isGhcjs +, enableJavaFX ? false +, openjfx +, enableGtk ? true +, gtk3 +, glib +, writeShellScript +, versionCheckHook +}: + +let + + # Java version format: + # $FEATURE.$INTERIM.$UPDATE.$PATCH + # See + # https://openjdk.org/jeps/223 + # https://docs.oracle.com/en/java/javase/23/docs/api/java.base/java/lang/Runtime.Version.html + featureVersion = "23"; + info = builtins.getAttr featureVersion (lib.importJSON ./info.json); + version = info.version; + + # when building a headless jdk, also bootstrap it with a headless jdk + openjdk-bootstrap = openjdk23-bootstrap.override { gtkSupport = !headless; }; +in + +stdenv.mkDerivation (finalAttrs: { + pname = "openjdk" + lib.optionalString headless "-headless"; + inherit version; + + src = fetchFromGitHub { + owner = "openjdk"; + repo = info.repo; + rev = "jdk-${version}"; + hash = info.hash; + }; + + nativeBuildInputs = [ pkg-config autoconf unzip ensureNewerSourcesForZipFilesHook ]; + buildInputs = [ + cpio + file + which + zip + perl + zlib + cups + freetype + alsa-lib + libjpeg + giflib + libpng + zlib + lcms2 + libX11 + libICE + libXrender + libXext + libXtst + libXt + libXtst + libXi + libXinerama + libXcursor + libXrandr + fontconfig + openjdk-bootstrap + ] ++ lib.optionals (!headless && enableGtk) [ + gtk3 + glib + ]; + + patches = [ + ./fix-java-home-jdk21.patch + ./read-truststore-from-env-jdk10.patch + ./increase-javadoc-heap-jdk13.patch + ./ignore-LegalNoticeFilePlugin-jdk18.patch + + # Fix build for gnumake-4.4.1: + # https://github.com/openjdk/jdk/pull/12992 + (fetchpatch { + name = "gnumake-4.4.1"; + url = "https://github.com/openjdk/jdk/commit/9341d135b855cc208d48e47d30cd90aafa354c36.patch"; + hash = "sha256-Qcm3ZmGCOYLZcskNjj7DYR85R4v07vYvvavrVOYL8vg="; + }) + ] ++ lib.optionals (!headless && enableGtk) [ + ./swing-use-gtk-jdk13.patch + ]; + + postPatch = '' + chmod +x configure + patchShebangs --build configure + ''; + + # JDK's build system attempts to specifically detect + # and special-case WSL, and we don't want it to do that, + # so pass the correct platform names explicitly + configurePlatforms = [ "build" "host" ]; + + + # https://openjdk.org/groups/build/doc/building.html + configureFlags = [ + "--with-boot-jdk=${openjdk-bootstrap.home}" + "--with-version-string=${version}" + "--with-vendor-version-string=(nix)" + "--enable-unlimited-crypto" + "--with-native-debug-symbols=internal" + "--with-libjpeg=system" + "--with-giflib=system" + "--with-libpng=system" + "--with-zlib=system" + "--with-lcms=system" + "--with-stdc++lib=dynamic" + ] + ++ lib.optionals stdenv.cc.isClang [ + "--with-toolchain-type=clang" + # Explicitly tell Clang to compile C++ files as C++, see + # https://github.com/NixOS/nixpkgs/issues/150655#issuecomment-1935304859 + "--with-extra-cxxflags=-xc++" + ] + ++ lib.optional headless "--enable-headless-only" + ++ lib.optional (!headless && enableJavaFX) "--with-import-modules=${openjfx}"; + + separateDebugInfo = true; + + env.NIX_CFLAGS_COMPILE = "-Wno-error"; + + NIX_LDFLAGS = toString (lib.optionals (!headless) [ + "-lfontconfig" + "-lcups" + "-lXinerama" + "-lXrandr" + "-lmagic" + ] ++ lib.optionals (!headless && enableGtk) [ + "-lgtk-3" + "-lgio-2.0" + ]); + + # -j flag is explicitly rejected by the build system: + # Error: 'make -jN' is not supported, use 'make JOBS=N' + # Note: it does not make build sequential. Build system + # still runs in parallel. + enableParallelBuilding = false; + + buildFlags = [ "images" ]; + + installPhase = '' + mkdir -p $out/lib + + mv build/*/images/jdk $out/lib/openjdk + + # Remove some broken manpages. + rm -rf $out/lib/openjdk/man/ja* + + # Mirror some stuff in top-level. + mkdir -p $out/share + ln -s $out/lib/openjdk/include $out/include + ln -s $out/lib/openjdk/man $out/share/man + + # IDEs use the provided src.zip to navigate the Java codebase (https://github.com/NixOS/nixpkgs/pull/95081) + ln -s $out/lib/openjdk/lib/src.zip $out/lib/src.zip + + # jni.h expects jni_md.h to be in the header search path. + ln -s $out/include/linux/*_md.h $out/include/ + + # Remove crap from the installation. + rm -rf $out/lib/openjdk/demo + ${lib.optionalString headless '' + rm $out/lib/openjdk/lib/{libjsound,libfontmanager}.so + ''} + + ln -s $out/lib/openjdk/bin $out/bin + ''; + + preFixup = '' + # Propagate the setJavaClassPath setup hook so that any package + # that depends on the JDK has $CLASSPATH set up properly. + mkdir -p $out/nix-support + #TODO or printWords? cf https://github.com/NixOS/nixpkgs/pull/27427#issuecomment-317293040 + echo -n "${setJavaClassPath}" > $out/nix-support/propagated-build-inputs + + # Set JAVA_HOME automatically. + mkdir -p $out/nix-support + cat < $out/nix-support/setup-hook + if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out/lib/openjdk; fi + EOF + ''; + + postFixup = '' + # Build the set of output library directories to rpath against + LIBDIRS="" + for output in $(getAllOutputNames); do + if [ "$output" = debug ]; then continue; fi + LIBDIRS="$(find $(eval echo \$$output) -name \*.so\* -exec dirname {} \+ | sort -u | tr '\n' ':'):$LIBDIRS" + done + # Add the local library paths to remove dependencies on the bootstrap + for output in $(getAllOutputNames); do + if [ "$output" = debug ]; then continue; fi + OUTPUTDIR=$(eval echo \$$output) + BINLIBS=$(find $OUTPUTDIR/bin/ -type f; find $OUTPUTDIR -name \*.so\*) + echo "$BINLIBS" | while read i; do + patchelf --set-rpath "$LIBDIRS:$(patchelf --print-rpath "$i")" "$i" || true + patchelf --shrink-rpath "$i" || true + done + done + ''; + + disallowedReferences = [ openjdk-bootstrap ]; + + pos = __curPos; + meta = import ./meta.nix lib featureVersion; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgram = "${placeholder "out"}/bin/java"; + + doInstallCheck = true; + + passthru = { + updateScript = + let + java-json = fetchurl { + url = "https://search.maven.org/remotecontent?filepath=org/json/json/20240303/json-20240303.jar"; + hash = "sha256-PPbNaJLjLitMHDng9S9SSKL1s3ZG/fu3mma0a2GEFO0="; + }; + in + writeShellScript "update-java" '' + ${finalAttrs.finalPackage}/bin/java \ + -cp ${java-json} \ + ${./JavaUpdater.java} \ + ${featureVersion} pkgs/development/compilers/openjdk/info.json + ''; + + home = "${finalAttrs.finalPackage}/lib/openjdk"; + + inherit gtk3; + }; +}) diff --git a/pkgs/development/compilers/openjdk/info.json b/pkgs/development/compilers/openjdk/info.json index ba18cf504923..c9b609de0b21 100644 --- a/pkgs/development/compilers/openjdk/info.json +++ b/pkgs/development/compilers/openjdk/info.json @@ -1,4 +1,9 @@ { + "23": { + "version": "23-ga", + "repo": "jdk23u", + "hash": "sha256-lcLnWAiskWindOqWmOWiIHiYKXGSJZK4d20k19QZfrE=" + }, "22": { "version": "22.0.2-ga", "repo": "jdk22u", diff --git a/pkgs/development/compilers/openjdk/openjfx/23/default.nix b/pkgs/development/compilers/openjdk/openjfx/23/default.nix new file mode 100644 index 000000000000..70677e247646 --- /dev/null +++ b/pkgs/development/compilers/openjdk/openjfx/23/default.nix @@ -0,0 +1,111 @@ +{ stdenv +, lib +, pkgs +, fetchFromGitHub +, fetchpatch2 +, writeText +, openjdk23_headless +, gradle +, pkg-config +, perl +, cmake +, gperf +, gtk2 +, gtk3 +, libXtst +, libXxf86vm +, glib +, alsa-lib +, ffmpeg +, python3 +, ruby +, withMedia ? true +, withWebKit ? false +}: + +let + pname = "openjfx-modular-sdk"; + major = "23"; + update = ""; + build = "-ga"; + repover = "${major}${update}${build}"; + jdk = openjdk23_headless; + +in stdenv.mkDerivation { + inherit pname; + version = "${major}${update}${build}"; + + src = fetchFromGitHub { + owner = "openjdk"; + repo = "jfx23u"; + rev = repover; + hash = "sha256-a/ev91Rq7D3z9O56ZZQCgvvbfj5GBt5Lonow2NH3s/E="; + }; + + patches = [ + # 8338701: Provide media support for libavcodec version 61 + # + (fetchpatch2 { + url = "https://github.com/openjdk/jfx23u/commit/aba60fda1c82f00e8e685107592305c403a31287.patch?full_index=1"; + hash = "sha256-+aRhTwi4VQthAq1SH1jxPl0mTosNMKoTY52jm+jiKso="; + }) + ]; + + buildInputs = [ gtk2 gtk3 libXtst libXxf86vm glib alsa-lib ffmpeg ]; + nativeBuildInputs = [ gradle perl pkg-config cmake gperf python3 ruby ]; + + dontUseCmakeConfigure = true; + + config = writeText "gradle.properties" '' + CONF = Release + JDK_HOME = ${jdk.home} + COMPILE_MEDIA = ${lib.boolToString withMedia} + COMPILE_WEBKIT = ${lib.boolToString withWebKit} + ''; + + postPatch = '' + ln -s $config gradle.properties + ''; + + mitmCache = gradle.fetchDeps { + attrPath = "openjfx${major}"; + pkg = pkgs."openjfx${major}".override { withWebKit = true; }; + data = ./deps.json; + }; + + __darwinAllowLocalNetworking = true; + + preBuild = '' + export NUMBER_OF_PROCESSORS=$NIX_BUILD_CORES + export NIX_CFLAGS_COMPILE="$(pkg-config --cflags glib-2.0) $NIX_CFLAGS_COMPILE" + ''; + + enableParallelBuilding = false; + + gradleBuildTask = "sdk"; + + installPhase = '' + cp -r build/modular-sdk $out + ''; + + stripDebugList = [ "." ]; + + postFixup = '' + # Remove references to bootstrap. + export openjdkOutPath='${jdk.outPath}' + find "$out" -name \*.so | while read lib; do + new_refs="$(patchelf --print-rpath "$lib" | perl -pe 's,:?\Q$ENV{openjdkOutPath}\E[^:]*,,')" + patchelf --set-rpath "$new_refs" "$lib" + done + ''; + + disallowedReferences = [ jdk gradle.jdk ]; + + meta = with lib; { + homepage = "https://openjdk.org/projects/openjfx/"; + license = licenses.gpl2Classpath; + description = "Next-generation Java client toolkit"; + maintainers = with maintainers; [ abbradar ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/development/compilers/openjdk/openjfx/23/deps.json b/pkgs/development/compilers/openjdk/openjfx/23/deps.json new file mode 100644 index 000000000000..a5b5a76852bf --- /dev/null +++ b/pkgs/development/compilers/openjdk/openjfx/23/deps.json @@ -0,0 +1,152 @@ +{ + "!comment": "This is a nixpkgs Gradle dependency lockfile. For more details, refer to the Gradle section in the nixpkgs manual.", + "!version": 1, + "https://download.eclipse.org": { + "eclipse/updates/4.30/R-4.30-202312010110/plugins/org.eclipse.swt.gtk.linux.x86_64_3.124.200.v20231113-1355": { + "jar": "sha256-Q048o4oWnZ9Y33AxXiSxbxEeayfbWOf1HoxtoLS4SIs=" + } + }, + "https://github.com": { + "unicode-org/icu/releases/download/release-74-2/icu4c-74_2-data-bin-l": { + "zip": "sha256-Ks2xuYIigECWPRg7LdnTISUsYT4PTbIT1LvBBBfN5Wk=" + } + }, + "https://repo.maven.apache.org/maven2": { + "com/ibm/icu#icu4j/61.1": { + "jar": "sha256-VcmOsYOLKku5oH3Da9N4Uy1k0M3LfO7pFCNoZqfeRGQ=", + "pom": "sha256-E7h6QHnOsFUVsZrHoVIDlHB1YB1JQj9xk1ikmACYBWs=" + }, + "junit#junit/4.13.2": { + "jar": "sha256-jklbY0Rp1k+4rPo0laBly6zIoP/1XOHjEAe+TBbcV9M=", + "pom": "sha256-Vptpd+5GA8llwcRsMFj6bpaSkbAWDraWTdCSzYnq3ZQ=" + }, + "net/java#jvnet-parent/3": { + "pom": "sha256-MPV4nvo53b+WCVqto/wSYMRWH68vcUaGcXyy3FBJR1o=" + }, + "org/abego/treelayout#org.abego.treelayout.core/1.0.3": { + "jar": "sha256-+l4xOVw5wufUasoPgfcgYJMWB7L6Qb02A46yy2+5MyY=", + "pom": "sha256-o7KyI3lDcDVeeSQzrwEvyZNmfAMxviusrYTbwJrOSgw=" + }, + "org/antlr#ST4/4.1": { + "jar": "sha256-ixzK7Z7cVc0lXZwZxNjaR1bZtvy0NWcSkrQ0cLFtddg=", + "pom": "sha256-cz5r2XyjTMbfk6QkPlEeVnPLm4jHSxiETgQqRdUWmHw=" + }, + "org/antlr#antlr-master/3.5.2": { + "pom": "sha256-QtkaUx6lEA6wm1QaoALDuQjo8oK9c7bi9S83HvEzG9Y=" + }, + "org/antlr#antlr-runtime/3.5.2": { + "jar": "sha256-zj/I7LEPOemjzdy7LONQ0nLZzT0LHhjm/nPDuTichzQ=", + "pom": "sha256-RqnCIAu4sSvXEkqnpQl/9JCZkIMpyFGgTLIFFCCqfyU=" + }, + "org/antlr#antlr4-master/4.7.2": { + "pom": "sha256-upnLJdI5DzhoDHUChCoO4JWdHmQD4BPM/2mP1YVu6tE=" + }, + "org/antlr#antlr4-runtime/4.7.2": { + "jar": "sha256-TFGLh9S9/4tEzYy8GvgW6US2Kj/luAt4FQHPH0dZu8Q=", + "pom": "sha256-3AnLqYwl08BuSuxRaIXUw68DBiulX0/mKD/JzxdqYPs=" + }, + "org/antlr#antlr4/4.7.2": { + "pom": "sha256-z56zaUD6xEiBA4wb4/LFjgbmjRq/v9SmjTS72LrFV3E=" + }, + "org/antlr#antlr4/4.7.2/complete": { + "jar": "sha256-aFI4bXl17/KRcdrgAswiMlFRDTXyka4neUjzgaezgLQ=" + }, + "org/apache#apache/13": { + "pom": "sha256-/1E9sDYf1BI3vvR4SWi8FarkeNTsCpSW+BEHLMrzhB0=" + }, + "org/apache/lucene#lucene-core/7.7.3": { + "jar": "sha256-jrAzNcGjxqixiN9012G6qDVplTWCq0QLU0yIRJ6o4N4=", + "pom": "sha256-gvilIoHGyLp5dKy6rESzLXbiYAgvP0u+FlwPbkuJFCo=" + }, + "org/apache/lucene#lucene-grouping/7.7.3": { + "jar": "sha256-L1vNY7JXQ9MMMTmGIk0Qf3XFKThxSVQlNRDFfT9nvrg=", + "pom": "sha256-HwStk+IETUCP2SXu4K6ktKHvjAdXe0Jme7U2BgKCImU=" + }, + "org/apache/lucene#lucene-parent/7.7.3": { + "pom": "sha256-6PrdU9XwBMQN3SNdQ4ZI5yxyVZn+4VQ+ViTV+1AQcwU=" + }, + "org/apache/lucene#lucene-queries/7.7.3": { + "jar": "sha256-PLWS2wpulWnGrMvbiKmtex2nQo28p5Ia0cWlhl1bQiY=", + "pom": "sha256-rkBsiiuw12SllERCefRiihl2vQlB551CzmTgmHxYnFA=" + }, + "org/apache/lucene#lucene-queryparser/7.7.3": { + "jar": "sha256-F3XJ/o7dlobTt6ZHd4+kTqqW8cwMSZMVCHEz4amDnoQ=", + "pom": "sha256-z2klkhWscjC5+tYKXInKDp9bm6rM7dFGlY/76Q9OsNI=" + }, + "org/apache/lucene#lucene-sandbox/7.7.3": { + "jar": "sha256-VfG38J2uKwytMhw00Vw8/FmgIRviM/Yp0EbEK/FwErc=", + "pom": "sha256-1vbdxsz1xvymRH1HD1BJ4WN6xje/HbWuDV8WaP34EiI=" + }, + "org/apache/lucene#lucene-solr-grandparent/7.7.3": { + "pom": "sha256-Oig3WAynavNq99/i3B0zT8b/XybRDySJnbd3CtfP2f4=" + }, + "org/apiguardian#apiguardian-api/1.1.2": { + "jar": "sha256-tQlEisUG1gcxnxglN/CzXXEAdYLsdBgyofER5bW3Czg=", + "module": "sha256-4IAoExN1s1fR0oc06aT7QhbahLJAZByz7358fWKCI/w=", + "pom": "sha256-MjVQgdEJCVw9XTdNWkO09MG3XVSemD71ByPidy5TAqA=" + }, + "org/glassfish#javax.json/1.0.4": { + "jar": "sha256-Dh3sQKHt6WWUElHtqWiu7gUsxPUDeLwxbMSOgVm9vrQ=", + "pom": "sha256-a6+Dg/+pi2bqls1b/B7H8teUY7uYrJgFKWSxIcIhLVQ=" + }, + "org/glassfish#json/1.0.4": { + "pom": "sha256-bXxoQjEV+SFxjZRPhZkktMaFIX7AOkn3BFWossqpcuY=" + }, + "org/hamcrest#hamcrest-core/1.3": { + "jar": "sha256-Zv3vkelzk0jfeglqo4SlaF9Oh1WEzOiThqekclHE2Ok=", + "pom": "sha256-/eOGp5BRc6GxA95quCBydYS1DQ4yKC4nl3h8IKZP+pM=" + }, + "org/hamcrest#hamcrest-parent/1.3": { + "pom": "sha256-bVNflO+2Y722gsnyelAzU5RogAlkK6epZ3UEvBvkEps=" + }, + "org/junit#junit-bom/5.8.1": { + "module": "sha256-a4LLpSoTSxPBmC8M+WIsbUhTcdQLmJJG8xJOOwpbGFQ=", + "pom": "sha256-733Ef45KFoZPR3lyjofteFOYGeT7iSdoqdprjvkD+GM=" + }, + "org/junit/jupiter#junit-jupiter-api/5.8.1": { + "jar": "sha256-zjN0p++6YF4tK2mj/vkBNAMrqz7MPthXmkhxscLEcpw=", + "module": "sha256-DWnbwja33Kq0ynNpqlYOmwqbvvf5WIgv+0hTPLunwJ0=", + "pom": "sha256-d61+1KYwutH8h0agpuZ1wj+2lAsnq2LMyzTk/Pz+Ob8=" + }, + "org/junit/jupiter#junit-jupiter-engine/5.8.1": { + "jar": "sha256-Rom8kCJVoZ/pgndoO6MjHAlNEHxUyNNfK2+cl9ImQY4=", + "module": "sha256-aHkP7DP5ew7IQM9HrEDuDHLgVvEiyg88ZkZ0M0mTdpk=", + "pom": "sha256-qjIKMYpyceMyYsSA/POZZbmobap2Zm63dTQrgOnN1F4=" + }, + "org/junit/jupiter#junit-jupiter-params/5.8.1": { + "jar": "sha256-OJuNE6jYhy/L1PDrp7LEavxihBn5obKjqfkyQaBqchg=", + "module": "sha256-Ek1gPG2AMzZtjKRxY2tEbji5zBvQEPMpVCNYGHr6hl4=", + "pom": "sha256-OrrKWfvfJTMg9yRCwQPjnOQDjcEf6MSJ28ScwjoHHws=" + }, + "org/junit/jupiter#junit-jupiter/5.8.1": { + "jar": "sha256-jxBJ7iSzShC2DNgQBICZ94HCZYzeIYHoMUlqswqYKYU=", + "module": "sha256-LjS6TIWMOM0KNlr//syTKnGWzpOF4utUBZQuWBwV/1w=", + "pom": "sha256-rssFDSMtOT9Az/EfjMMPUrZslQpB+IOSXIEULt7l9PU=" + }, + "org/junit/platform#junit-platform-commons/1.8.1": { + "jar": "sha256-+k+mjIvVTdDLScP8vpsuQvTaa+2+fnzPKgXxoeYJtZM=", + "module": "sha256-aY/QVBrLfv/GZZhI/Qx91QEKSfFfDBy6Q+U1gH+Q9ms=", + "pom": "sha256-4ZcoLlLnANEriJie3FSJh0aTUC5KqJB6zwgpgBq6bUQ=" + }, + "org/junit/platform#junit-platform-engine/1.8.1": { + "jar": "sha256-cCho7X6GubRnLt4PHhhekFusqa+rV3RqfGUL48e8oEc=", + "module": "sha256-2fQgpkU5o+32D4DfDG/XIrdQcldEx5ykD30lrlbKS6Q=", + "pom": "sha256-hqrU5ld1TkOgDfIm3VTIrsHsarZTP1ASGQfkZi3i5fI=" + }, + "org/junit/vintage#junit-vintage-engine/5.8.1": { + "jar": "sha256-F2tTzRvb+SM+lsiwx6nluGQoL7veukO1zq/e2ymkkVY=", + "module": "sha256-nOn6Lk7mp0DWEBAlMEYqcc4PqdLxQYUi5LK9tgcvZ5o=", + "pom": "sha256-Ndc3M08dvouMVnZ/oVCKwbVEsB1P5cmXl76QA+5YGxI=" + }, + "org/opentest4j#opentest4j/1.2.0": { + "jar": "sha256-WIEt5giY2Xb7ge87YtoFxmBMGP1KJJ9QRCgkefwoavI=", + "pom": "sha256-qW5nGBbB/4gDvex0ySQfAlvfsnfaXStO4CJmQFk2+ZQ=" + }, + "org/sonatype/oss#oss-parent/7": { + "pom": "sha256-tR+IZ8kranIkmVV/w6H96ne9+e9XRyL+kM5DailVlFQ=" + }, + "org/sonatype/oss#oss-parent/9": { + "pom": "sha256-+0AmX5glSCEv+C42LllzKyGH7G8NgBgohcFO8fmCgno=" + } + } +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 32d4792fb528..834ca0781769 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15201,7 +15201,7 @@ with pkgs; hugs = callPackage ../development/interpreters/hugs { }; - inherit (javaPackages) openjfx11 openjfx17 openjfx21 openjfx22; + inherit (javaPackages) openjfx11 openjfx17 openjfx21 openjfx22 openjfx23; openjfx = openjfx17; openjdk8-bootstrap = javaPackages.compiler.openjdk8-bootstrap; @@ -15234,6 +15234,11 @@ with pkgs; jdk22 = openjdk22; jdk22_headless = openjdk22_headless; + openjdk23 = javaPackages.compiler.openjdk23; + openjdk23_headless = javaPackages.compiler.openjdk23.headless; + jdk23 = openjdk23; + jdk23_headless = openjdk23_headless; + /* default JDK */ jdk = jdk21; jdk_headless = jdk21_headless; diff --git a/pkgs/top-level/java-packages.nix b/pkgs/top-level/java-packages.nix index 5b72824f1d7f..62b2a037e19d 100644 --- a/pkgs/top-level/java-packages.nix +++ b/pkgs/top-level/java-packages.nix @@ -7,9 +7,10 @@ let openjfx17 = callPackage ../development/compilers/openjdk/openjfx/17 { }; openjfx21 = callPackage ../development/compilers/openjdk/openjfx/21 { }; openjfx22 = callPackage ../development/compilers/openjdk/openjfx/22 { }; + openjfx23 = callPackage ../development/compilers/openjdk/openjfx/23 { }; in { - inherit openjfx11 openjfx17 openjfx21 openjfx22; + inherit openjfx11 openjfx17 openjfx21 openjfx22 openjfx23; compiler = let mkOpenjdk = path-linux: path-darwin: args: @@ -70,6 +71,13 @@ in { openjfx = openjfx22; }; + openjdk23 = mkOpenjdk + ../development/compilers/openjdk/23.nix + ../development/compilers/zulu/23.nix + openjdk23-bootstrap = temurin-bin.jdk-23; + openjfx = openjfx23; + }; + temurin-bin = recurseIntoAttrs (callPackage ( if stdenv.hostPlatform.isLinux then ../development/compilers/temurin-bin/jdk-linux.nix From 81c3d76c5e0ce4dd9114201fde504798d96da685 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 24 Sep 2024 17:51:28 +0100 Subject: [PATCH 0054/1574] jextract: pin JDK 23, mark as broken --- pkgs/by-name/je/jextract/package.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/je/jextract/package.nix b/pkgs/by-name/je/jextract/package.nix index 891eac01ae79..c6fd96de393a 100644 --- a/pkgs/by-name/je/jextract/package.nix +++ b/pkgs/by-name/je/jextract/package.nix @@ -3,7 +3,7 @@ , fetchFromGitHub , makeBinaryWrapper , gradle -, jdk22 +, jdk23 , llvmPackages }: @@ -25,7 +25,7 @@ stdenv.mkDerivation { gradleFlags = [ "-Pllvm_home=${llvmPackages.libclang.lib}" - "-Pjdk22_home=${jdk22}" + "-Pjdk22_home=${jdk23}" ]; doCheck = true; @@ -46,8 +46,10 @@ stdenv.mkDerivation { description = "Tool which mechanically generates Java bindings from a native library headers"; mainProgram = "jextract"; homepage = "https://github.com/openjdk/jextract"; - platforms = jdk22.meta.platforms; + platforms = jdk23.meta.platforms; license = licenses.gpl2Only; maintainers = with maintainers; [ jlesquembre sharzy ]; + # Not yet updated for JDK 23 + broken = true; }; } From 092c108f77a9ef8f7ed4bb86ebe3396646b04268 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 25 Sep 2024 04:18:00 +0100 Subject: [PATCH 0055/1574] cryptomator: pin JDK 23, mark as broken --- pkgs/tools/security/cryptomator/default.nix | 2 ++ pkgs/top-level/all-packages.nix | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/cryptomator/default.nix b/pkgs/tools/security/cryptomator/default.nix index 38d3aa2a86ba..ce3f9cc47f71 100644 --- a/pkgs/tools/security/cryptomator/default.nix +++ b/pkgs/tools/security/cryptomator/default.nix @@ -96,5 +96,7 @@ maven.buildMavenPackage rec { license = licenses.gpl3Plus; maintainers = with maintainers; [ bachp ]; platforms = [ "x86_64-linux" ]; + # Uses abandoned JEP 430 string template preview, removed in JDK 23 + broken = true; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 834ca0781769..b43ecc8c24f2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25756,7 +25756,7 @@ with pkgs; criu = callPackage ../os-specific/linux/criu { }; cryptomator = callPackage ../tools/security/cryptomator { - jdk = jdk22.override { enableJavaFX = true; }; + jdk = jdk23.override { enableJavaFX = true; }; }; cryptsetup = callPackage ../os-specific/linux/cryptsetup { }; From 56d6fe119194cce6ff0e63553bf0af82e7e51879 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 24 Sep 2024 17:51:28 +0100 Subject: [PATCH 0056/1574] moneydance: pin OpenJDK 23 --- pkgs/by-name/mo/moneydance/package.nix | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/pkgs/by-name/mo/moneydance/package.nix b/pkgs/by-name/mo/moneydance/package.nix index a5e897db2ec7..636584a20fe0 100644 --- a/pkgs/by-name/mo/moneydance/package.nix +++ b/pkgs/by-name/mo/moneydance/package.nix @@ -1,9 +1,7 @@ -{ lib, stdenv, fetchzip, makeWrapper, openjdk22, openjfx22, jvmFlags ? [ ] }: +{ lib, stdenv, fetchzip, makeWrapper, openjdk23, jvmFlags ? [ ] }: let - openjfx = openjfx22; - jdk = openjdk22.override { + jdk = openjdk23.override { enableJavaFX = true; - inherit openjfx; }; in stdenv.mkDerivation (finalAttrs: { @@ -16,7 +14,7 @@ stdenv.mkDerivation (finalAttrs: { }; nativeBuildInputs = [ makeWrapper ]; - buildInputs = [ jdk openjfx ]; + buildInputs = [ jdk ]; # Note the double escaping in the call to makeWrapper. The escapeShellArgs # call quotes each element of the flags list as a word[1] and returns a From b32d2c0ae73ac15f91966a1665ddede4a95bdcec Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 24 Sep 2024 17:51:28 +0100 Subject: [PATCH 0057/1574] jabref: pin JDK 21 and OpenJFX 23 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This requires Java 21 but OpenJFX ≥ 22. As OpenJFX 22 is EOL, we use OpenJFX 23, which technically only supports down to JDK 21, but let’s hope for the best. --- pkgs/top-level/all-packages.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b43ecc8c24f2..24aa362cb3a3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -30586,9 +30586,9 @@ with pkgs; }; jabref = callPackage ../applications/office/jabref { - jdk = jdk.override { + jdk = jdk21.override { enableJavaFX = true; - openjfx = openjfx22.override { withWebKit = true; }; + openjfx = openjfx23.override { withWebKit = true; }; }; }; From 35cc1474efc9464798a6aaeacbf65466f6769c33 Mon Sep 17 00:00:00 2001 From: Emily Date: Wed, 25 Sep 2024 02:29:04 +0100 Subject: [PATCH 0058/1574] zulu22: drop MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Actually, nobody even got around to making an alias for this one… --- pkgs/development/compilers/zulu/22.nix | 42 -------------------------- 1 file changed, 42 deletions(-) delete mode 100644 pkgs/development/compilers/zulu/22.nix diff --git a/pkgs/development/compilers/zulu/22.nix b/pkgs/development/compilers/zulu/22.nix deleted file mode 100644 index 93891d6511c7..000000000000 --- a/pkgs/development/compilers/zulu/22.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ callPackage -, enableJavaFX ? false -, ... -}@args: - -callPackage ./common.nix ({ - # Details from https://www.azul.com/downloads/?version=java-22-lts&package=jdk - # Note that the latest build may differ by platform - dists = { - x86_64-linux = { - zuluVersion = "22.28.91"; - jdkVersion = "22.0.0"; - hash = - if enableJavaFX then "sha256-+qUrZ+GlspSP3RLTAbgEtFm0B0fzX/VD1WUl6mk2c/0=" - else "sha256-HvMiODsz+puu1xtxG2RRXH/PWCk91PGNZ7UcOd9orqQ="; - }; - - aarch64-linux = { - zuluVersion = "22.28.91"; - jdkVersion = "22.0.0"; - hash = - if enableJavaFX then throw "JavaFX is not available for aarch64-linux" - else "sha256-3RLNNEbMk5wAZsQmbQj/jpx9iTL/yr9N3wL4t7m6c+s="; - }; - - x86_64-darwin = { - zuluVersion = "22.28.91"; - jdkVersion = "22.0.0"; - hash = - if enableJavaFX then "sha256-QkFwbc2YFEWb5rddhH4a+zmtsrXxUBSuS8yg9qUb728=" - else "sha256-Y6PSNQjHRXukwux2sVbvpTIqT+Cg+KeG1C0iSEwyKZw="; - }; - - aarch64-darwin = { - zuluVersion = "22.28.91"; - jdkVersion = "22.0.0"; - hash = - if enableJavaFX then "sha256-256UP6MtUReQYqCKVt0ThN9BVDyKLAMXQTdpcDB9t24=" - else "sha256-o0VkWB4+PzBmNNWy+FZlyjTgukBTe6owfydb3YNfEE0="; - }; - }; -} // builtins.removeAttrs args [ "callPackage" ]) From 732642b891b5ea2981e2d487c3a0dab0a3b9855f Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 24 Sep 2024 17:51:28 +0100 Subject: [PATCH 0059/1574] {openjdk,openjfx}22: drop --- pkgs/development/compilers/openjdk/22.nix | 284 ------------------ pkgs/development/compilers/openjdk/info.json | 5 - .../compilers/openjdk/openjfx/22/default.nix | 111 ------- .../compilers/openjdk/openjfx/22/deps.json | 152 ---------- pkgs/top-level/aliases.nix | 5 + pkgs/top-level/all-packages.nix | 7 +- pkgs/top-level/java-packages.nix | 12 +- 7 files changed, 8 insertions(+), 568 deletions(-) delete mode 100644 pkgs/development/compilers/openjdk/22.nix delete mode 100644 pkgs/development/compilers/openjdk/openjfx/22/default.nix delete mode 100644 pkgs/development/compilers/openjdk/openjfx/22/deps.json diff --git a/pkgs/development/compilers/openjdk/22.nix b/pkgs/development/compilers/openjdk/22.nix deleted file mode 100644 index b022e492e3f9..000000000000 --- a/pkgs/development/compilers/openjdk/22.nix +++ /dev/null @@ -1,284 +0,0 @@ -{ stdenv -, lib -, fetchurl -, fetchpatch -, fetchFromGitHub -, pkg-config -, autoconf -, cpio -, file -, which -, unzip -, zip -, perl -, cups -, freetype -, alsa-lib -, libjpeg -, giflib -, libpng -, zlib -, lcms2 -, libX11 -, libICE -, libXrender -, libXext -, libXt -, libXtst -, libXi -, libXinerama -, libXcursor -, libXrandr -, fontconfig -, openjdk22-bootstrap -, ensureNewerSourcesForZipFilesHook -, setJavaClassPath - # TODO(@sternenseemann): gtk3 fails to evaluate in pkgsCross.ghcjs.buildPackages - # which should be fixable, this is a no-rebuild workaround for GHC. -, headless ? stdenv.targetPlatform.isGhcjs -, enableJavaFX ? false -, openjfx -, enableGtk ? true -, gtk3 -, glib -, writeShellScript -, versionCheckHook -}: - -let - - # Java version format: - # $FEATURE.$INTERIM.$UPDATE.$PATCH - # See - # https://openjdk.org/jeps/223 - # https://docs.oracle.com/en/java/javase/22/docs/api/java.base/java/lang/Runtime.Version.html - featureVersion = "22"; - info = builtins.getAttr featureVersion (lib.importJSON ./info.json); - version = info.version; - - # when building a headless jdk, also bootstrap it with a headless jdk - openjdk-bootstrap = openjdk22-bootstrap.override { gtkSupport = !headless; }; -in - -stdenv.mkDerivation (finalAttrs: { - pname = "openjdk" + lib.optionalString headless "-headless"; - inherit version; - - src = fetchFromGitHub { - owner = "openjdk"; - repo = info.repo; - rev = "jdk-${version}"; - hash = info.hash; - }; - - nativeBuildInputs = [ pkg-config autoconf unzip ensureNewerSourcesForZipFilesHook ]; - buildInputs = [ - cpio - file - which - zip - perl - zlib - cups - freetype - alsa-lib - libjpeg - giflib - libpng - zlib - lcms2 - libX11 - libICE - libXrender - libXext - libXtst - libXt - libXtst - libXi - libXinerama - libXcursor - libXrandr - fontconfig - openjdk-bootstrap - ] ++ lib.optionals (!headless && enableGtk) [ - gtk3 - glib - ]; - - patches = [ - ./fix-java-home-jdk21.patch - ./read-truststore-from-env-jdk10.patch - ./currency-date-range-jdk10.patch - ./increase-javadoc-heap-jdk13.patch - ./ignore-LegalNoticeFilePlugin-jdk18.patch - - # -Wformat etc. are stricter in newer gccs, per - # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=79677 - # so grab the work-around from - # https://src.fedoraproject.org/rpms/java-openjdk/pull-request/24 - (fetchurl { - url = "https://src.fedoraproject.org/rpms/java-openjdk/raw/06c001c7d87f2e9fe4fedeef2d993bcd5d7afa2a/f/rh1673833-remove_removal_of_wformat_during_test_compilation.patch"; - sha256 = "082lmc30x64x583vqq00c8y0wqih3y4r0mp1c4bqq36l22qv6b6r"; - }) - - # Fix build for gnumake-4.4.1: - # https://github.com/openjdk/jdk/pull/12992 - (fetchpatch { - name = "gnumake-4.4.1"; - url = "https://github.com/openjdk/jdk/commit/9341d135b855cc208d48e47d30cd90aafa354c36.patch"; - hash = "sha256-Qcm3ZmGCOYLZcskNjj7DYR85R4v07vYvvavrVOYL8vg="; - }) - ] ++ lib.optionals (!headless && enableGtk) [ - ./swing-use-gtk-jdk13.patch - ]; - - postPatch = '' - chmod +x configure - patchShebangs --build configure - ''; - - # JDK's build system attempts to specifically detect - # and special-case WSL, and we don't want it to do that, - # so pass the correct platform names explicitly - configurePlatforms = [ "build" "host" ]; - - - # https://openjdk.org/groups/build/doc/building.html - configureFlags = [ - "--with-boot-jdk=${openjdk-bootstrap.home}" - "--with-version-string=${version}" - "--with-vendor-version-string=(nix)" - "--enable-unlimited-crypto" - "--with-native-debug-symbols=internal" - "--with-libjpeg=system" - "--with-giflib=system" - "--with-libpng=system" - "--with-zlib=system" - "--with-lcms=system" - "--with-stdc++lib=dynamic" - ] - ++ lib.optionals stdenv.cc.isClang [ - "--with-toolchain-type=clang" - # Explicitly tell Clang to compile C++ files as C++, see - # https://github.com/NixOS/nixpkgs/issues/150655#issuecomment-1935304859 - "--with-extra-cxxflags=-xc++" - ] - ++ lib.optional headless "--enable-headless-only" - ++ lib.optional (!headless && enableJavaFX) "--with-import-modules=${openjfx}"; - - separateDebugInfo = true; - - env.NIX_CFLAGS_COMPILE = "-Wno-error"; - - NIX_LDFLAGS = toString (lib.optionals (!headless) [ - "-lfontconfig" - "-lcups" - "-lXinerama" - "-lXrandr" - "-lmagic" - ] ++ lib.optionals (!headless && enableGtk) [ - "-lgtk-3" - "-lgio-2.0" - ]); - - # -j flag is explicitly rejected by the build system: - # Error: 'make -jN' is not supported, use 'make JOBS=N' - # Note: it does not make build sequential. Build system - # still runs in parallel. - enableParallelBuilding = false; - - buildFlags = [ "images" ]; - - installPhase = '' - mkdir -p $out/lib - - mv build/*/images/jdk $out/lib/openjdk - - # Remove some broken manpages. - rm -rf $out/lib/openjdk/man/ja* - - # Mirror some stuff in top-level. - mkdir -p $out/share - ln -s $out/lib/openjdk/include $out/include - ln -s $out/lib/openjdk/man $out/share/man - - # IDEs use the provided src.zip to navigate the Java codebase (https://github.com/NixOS/nixpkgs/pull/95081) - ln -s $out/lib/openjdk/lib/src.zip $out/lib/src.zip - - # jni.h expects jni_md.h to be in the header search path. - ln -s $out/include/linux/*_md.h $out/include/ - - # Remove crap from the installation. - rm -rf $out/lib/openjdk/demo - ${lib.optionalString headless '' - rm $out/lib/openjdk/lib/{libjsound,libfontmanager}.so - ''} - - ln -s $out/lib/openjdk/bin $out/bin - ''; - - preFixup = '' - # Propagate the setJavaClassPath setup hook so that any package - # that depends on the JDK has $CLASSPATH set up properly. - mkdir -p $out/nix-support - #TODO or printWords? cf https://github.com/NixOS/nixpkgs/pull/27427#issuecomment-317293040 - echo -n "${setJavaClassPath}" > $out/nix-support/propagated-build-inputs - - # Set JAVA_HOME automatically. - mkdir -p $out/nix-support - cat < $out/nix-support/setup-hook - if [ -z "\''${JAVA_HOME-}" ]; then export JAVA_HOME=$out/lib/openjdk; fi - EOF - ''; - - postFixup = '' - # Build the set of output library directories to rpath against - LIBDIRS="" - for output in $(getAllOutputNames); do - if [ "$output" = debug ]; then continue; fi - LIBDIRS="$(find $(eval echo \$$output) -name \*.so\* -exec dirname {} \+ | sort -u | tr '\n' ':'):$LIBDIRS" - done - # Add the local library paths to remove dependencies on the bootstrap - for output in $(getAllOutputNames); do - if [ "$output" = debug ]; then continue; fi - OUTPUTDIR=$(eval echo \$$output) - BINLIBS=$(find $OUTPUTDIR/bin/ -type f; find $OUTPUTDIR -name \*.so\*) - echo "$BINLIBS" | while read i; do - patchelf --set-rpath "$LIBDIRS:$(patchelf --print-rpath "$i")" "$i" || true - patchelf --shrink-rpath "$i" || true - done - done - ''; - - disallowedReferences = [ openjdk-bootstrap ]; - - pos = __curPos; - meta = import ./meta.nix lib featureVersion; - - nativeInstallCheckInputs = [ - versionCheckHook - ]; - versionCheckProgram = "${placeholder "out"}/bin/java"; - - doInstallCheck = true; - - passthru = { - updateScript = - let - java-json = fetchurl { - url = "https://search.maven.org/remotecontent?filepath=org/json/json/20240303/json-20240303.jar"; - hash = "sha256-PPbNaJLjLitMHDng9S9SSKL1s3ZG/fu3mma0a2GEFO0="; - }; - in - writeShellScript "update-java" '' - ${finalAttrs.finalPackage}/bin/java \ - -cp ${java-json} \ - ${./JavaUpdater.java} \ - 22 pkgs/development/compilers/openjdk/info.json - ''; - - home = "${finalAttrs.finalPackage}/lib/openjdk"; - - inherit gtk3; - }; -}) diff --git a/pkgs/development/compilers/openjdk/info.json b/pkgs/development/compilers/openjdk/info.json index c9b609de0b21..3bfa23fb0e49 100644 --- a/pkgs/development/compilers/openjdk/info.json +++ b/pkgs/development/compilers/openjdk/info.json @@ -3,10 +3,5 @@ "version": "23-ga", "repo": "jdk23u", "hash": "sha256-lcLnWAiskWindOqWmOWiIHiYKXGSJZK4d20k19QZfrE=" - }, - "22": { - "version": "22.0.2-ga", - "repo": "jdk22u", - "hash": "sha256-Zo1LOumkt9zTaPqbDcRL8lVJMqVle0QqzThtIz0JRNo=" } } diff --git a/pkgs/development/compilers/openjdk/openjfx/22/default.nix b/pkgs/development/compilers/openjdk/openjfx/22/default.nix deleted file mode 100644 index 5dde07c2d022..000000000000 --- a/pkgs/development/compilers/openjdk/openjfx/22/default.nix +++ /dev/null @@ -1,111 +0,0 @@ -{ stdenv -, lib -, pkgs -, fetchFromGitHub -, fetchpatch2 -, writeText -, openjdk21_headless -, gradle -, pkg-config -, perl -, cmake -, gperf -, gtk2 -, gtk3 -, libXtst -, libXxf86vm -, glib -, alsa-lib -, ffmpeg -, python3 -, ruby -, withMedia ? true -, withWebKit ? false -}: - -let - pname = "openjfx-modular-sdk"; - major = "22"; - update = ".0.2"; - build = "-ga"; - repover = "${major}${update}${build}"; - jdk = openjdk21_headless; - -in stdenv.mkDerivation { - inherit pname; - version = "${major}${update}${build}"; - - src = fetchFromGitHub { - owner = "openjdk"; - repo = "jfx22u"; - rev = repover; - hash = "sha256-7Q9nZ2p3KfQPt1A2ULwk64OU/5/ghEkcsf9ECD6Ln2g="; - }; - - patches = [ - # 8338701: Provide media support for libavcodec version 61 - # - (fetchpatch2 { - url = "https://github.com/openjdk/jfx/commit/6115b396bacf62f39dcaa93c7c0adcd60b428b8c.patch?full_index=1"; - hash = "sha256-6EES4qsumFgXePZSDEetJC1Li65zquz3UjwRbq/6YJM="; - }) - ]; - - buildInputs = [ gtk2 gtk3 libXtst libXxf86vm glib alsa-lib ffmpeg ]; - nativeBuildInputs = [ gradle perl pkg-config cmake gperf python3 ruby ]; - - dontUseCmakeConfigure = true; - - config = writeText "gradle.properties" '' - CONF = Release - JDK_HOME = ${jdk.home} - COMPILE_MEDIA = ${lib.boolToString withMedia} - COMPILE_WEBKIT = ${lib.boolToString withWebKit} - ''; - - postPatch = '' - ln -s $config gradle.properties - ''; - - mitmCache = gradle.fetchDeps { - attrPath = "openjfx${major}"; - pkg = pkgs."openjfx${major}".override { withWebKit = true; }; - data = ./deps.json; - }; - - __darwinAllowLocalNetworking = true; - - preBuild = '' - export NUMBER_OF_PROCESSORS=$NIX_BUILD_CORES - export NIX_CFLAGS_COMPILE="$(pkg-config --cflags glib-2.0) $NIX_CFLAGS_COMPILE" - ''; - - enableParallelBuilding = false; - - gradleBuildTask = "sdk"; - - installPhase = '' - cp -r build/modular-sdk $out - ''; - - stripDebugList = [ "." ]; - - postFixup = '' - # Remove references to bootstrap. - export openjdkOutPath='${jdk.outPath}' - find "$out" -name \*.so | while read lib; do - new_refs="$(patchelf --print-rpath "$lib" | perl -pe 's,:?\Q$ENV{openjdkOutPath}\E[^:]*,,')" - patchelf --set-rpath "$new_refs" "$lib" - done - ''; - - disallowedReferences = [ jdk gradle.jdk ]; - - meta = with lib; { - homepage = "https://openjdk.org/projects/openjfx/"; - license = licenses.gpl2Classpath; - description = "Next-generation Java client toolkit"; - maintainers = with maintainers; [ abbradar ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/development/compilers/openjdk/openjfx/22/deps.json b/pkgs/development/compilers/openjdk/openjfx/22/deps.json deleted file mode 100644 index a5b5a76852bf..000000000000 --- a/pkgs/development/compilers/openjdk/openjfx/22/deps.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "!comment": "This is a nixpkgs Gradle dependency lockfile. For more details, refer to the Gradle section in the nixpkgs manual.", - "!version": 1, - "https://download.eclipse.org": { - "eclipse/updates/4.30/R-4.30-202312010110/plugins/org.eclipse.swt.gtk.linux.x86_64_3.124.200.v20231113-1355": { - "jar": "sha256-Q048o4oWnZ9Y33AxXiSxbxEeayfbWOf1HoxtoLS4SIs=" - } - }, - "https://github.com": { - "unicode-org/icu/releases/download/release-74-2/icu4c-74_2-data-bin-l": { - "zip": "sha256-Ks2xuYIigECWPRg7LdnTISUsYT4PTbIT1LvBBBfN5Wk=" - } - }, - "https://repo.maven.apache.org/maven2": { - "com/ibm/icu#icu4j/61.1": { - "jar": "sha256-VcmOsYOLKku5oH3Da9N4Uy1k0M3LfO7pFCNoZqfeRGQ=", - "pom": "sha256-E7h6QHnOsFUVsZrHoVIDlHB1YB1JQj9xk1ikmACYBWs=" - }, - "junit#junit/4.13.2": { - "jar": "sha256-jklbY0Rp1k+4rPo0laBly6zIoP/1XOHjEAe+TBbcV9M=", - "pom": "sha256-Vptpd+5GA8llwcRsMFj6bpaSkbAWDraWTdCSzYnq3ZQ=" - }, - "net/java#jvnet-parent/3": { - "pom": "sha256-MPV4nvo53b+WCVqto/wSYMRWH68vcUaGcXyy3FBJR1o=" - }, - "org/abego/treelayout#org.abego.treelayout.core/1.0.3": { - "jar": "sha256-+l4xOVw5wufUasoPgfcgYJMWB7L6Qb02A46yy2+5MyY=", - "pom": "sha256-o7KyI3lDcDVeeSQzrwEvyZNmfAMxviusrYTbwJrOSgw=" - }, - "org/antlr#ST4/4.1": { - "jar": "sha256-ixzK7Z7cVc0lXZwZxNjaR1bZtvy0NWcSkrQ0cLFtddg=", - "pom": "sha256-cz5r2XyjTMbfk6QkPlEeVnPLm4jHSxiETgQqRdUWmHw=" - }, - "org/antlr#antlr-master/3.5.2": { - "pom": "sha256-QtkaUx6lEA6wm1QaoALDuQjo8oK9c7bi9S83HvEzG9Y=" - }, - "org/antlr#antlr-runtime/3.5.2": { - "jar": "sha256-zj/I7LEPOemjzdy7LONQ0nLZzT0LHhjm/nPDuTichzQ=", - "pom": "sha256-RqnCIAu4sSvXEkqnpQl/9JCZkIMpyFGgTLIFFCCqfyU=" - }, - "org/antlr#antlr4-master/4.7.2": { - "pom": "sha256-upnLJdI5DzhoDHUChCoO4JWdHmQD4BPM/2mP1YVu6tE=" - }, - "org/antlr#antlr4-runtime/4.7.2": { - "jar": "sha256-TFGLh9S9/4tEzYy8GvgW6US2Kj/luAt4FQHPH0dZu8Q=", - "pom": "sha256-3AnLqYwl08BuSuxRaIXUw68DBiulX0/mKD/JzxdqYPs=" - }, - "org/antlr#antlr4/4.7.2": { - "pom": "sha256-z56zaUD6xEiBA4wb4/LFjgbmjRq/v9SmjTS72LrFV3E=" - }, - "org/antlr#antlr4/4.7.2/complete": { - "jar": "sha256-aFI4bXl17/KRcdrgAswiMlFRDTXyka4neUjzgaezgLQ=" - }, - "org/apache#apache/13": { - "pom": "sha256-/1E9sDYf1BI3vvR4SWi8FarkeNTsCpSW+BEHLMrzhB0=" - }, - "org/apache/lucene#lucene-core/7.7.3": { - "jar": "sha256-jrAzNcGjxqixiN9012G6qDVplTWCq0QLU0yIRJ6o4N4=", - "pom": "sha256-gvilIoHGyLp5dKy6rESzLXbiYAgvP0u+FlwPbkuJFCo=" - }, - "org/apache/lucene#lucene-grouping/7.7.3": { - "jar": "sha256-L1vNY7JXQ9MMMTmGIk0Qf3XFKThxSVQlNRDFfT9nvrg=", - "pom": "sha256-HwStk+IETUCP2SXu4K6ktKHvjAdXe0Jme7U2BgKCImU=" - }, - "org/apache/lucene#lucene-parent/7.7.3": { - "pom": "sha256-6PrdU9XwBMQN3SNdQ4ZI5yxyVZn+4VQ+ViTV+1AQcwU=" - }, - "org/apache/lucene#lucene-queries/7.7.3": { - "jar": "sha256-PLWS2wpulWnGrMvbiKmtex2nQo28p5Ia0cWlhl1bQiY=", - "pom": "sha256-rkBsiiuw12SllERCefRiihl2vQlB551CzmTgmHxYnFA=" - }, - "org/apache/lucene#lucene-queryparser/7.7.3": { - "jar": "sha256-F3XJ/o7dlobTt6ZHd4+kTqqW8cwMSZMVCHEz4amDnoQ=", - "pom": "sha256-z2klkhWscjC5+tYKXInKDp9bm6rM7dFGlY/76Q9OsNI=" - }, - "org/apache/lucene#lucene-sandbox/7.7.3": { - "jar": "sha256-VfG38J2uKwytMhw00Vw8/FmgIRviM/Yp0EbEK/FwErc=", - "pom": "sha256-1vbdxsz1xvymRH1HD1BJ4WN6xje/HbWuDV8WaP34EiI=" - }, - "org/apache/lucene#lucene-solr-grandparent/7.7.3": { - "pom": "sha256-Oig3WAynavNq99/i3B0zT8b/XybRDySJnbd3CtfP2f4=" - }, - "org/apiguardian#apiguardian-api/1.1.2": { - "jar": "sha256-tQlEisUG1gcxnxglN/CzXXEAdYLsdBgyofER5bW3Czg=", - "module": "sha256-4IAoExN1s1fR0oc06aT7QhbahLJAZByz7358fWKCI/w=", - "pom": "sha256-MjVQgdEJCVw9XTdNWkO09MG3XVSemD71ByPidy5TAqA=" - }, - "org/glassfish#javax.json/1.0.4": { - "jar": "sha256-Dh3sQKHt6WWUElHtqWiu7gUsxPUDeLwxbMSOgVm9vrQ=", - "pom": "sha256-a6+Dg/+pi2bqls1b/B7H8teUY7uYrJgFKWSxIcIhLVQ=" - }, - "org/glassfish#json/1.0.4": { - "pom": "sha256-bXxoQjEV+SFxjZRPhZkktMaFIX7AOkn3BFWossqpcuY=" - }, - "org/hamcrest#hamcrest-core/1.3": { - "jar": "sha256-Zv3vkelzk0jfeglqo4SlaF9Oh1WEzOiThqekclHE2Ok=", - "pom": "sha256-/eOGp5BRc6GxA95quCBydYS1DQ4yKC4nl3h8IKZP+pM=" - }, - "org/hamcrest#hamcrest-parent/1.3": { - "pom": "sha256-bVNflO+2Y722gsnyelAzU5RogAlkK6epZ3UEvBvkEps=" - }, - "org/junit#junit-bom/5.8.1": { - "module": "sha256-a4LLpSoTSxPBmC8M+WIsbUhTcdQLmJJG8xJOOwpbGFQ=", - "pom": "sha256-733Ef45KFoZPR3lyjofteFOYGeT7iSdoqdprjvkD+GM=" - }, - "org/junit/jupiter#junit-jupiter-api/5.8.1": { - "jar": "sha256-zjN0p++6YF4tK2mj/vkBNAMrqz7MPthXmkhxscLEcpw=", - "module": "sha256-DWnbwja33Kq0ynNpqlYOmwqbvvf5WIgv+0hTPLunwJ0=", - "pom": "sha256-d61+1KYwutH8h0agpuZ1wj+2lAsnq2LMyzTk/Pz+Ob8=" - }, - "org/junit/jupiter#junit-jupiter-engine/5.8.1": { - "jar": "sha256-Rom8kCJVoZ/pgndoO6MjHAlNEHxUyNNfK2+cl9ImQY4=", - "module": "sha256-aHkP7DP5ew7IQM9HrEDuDHLgVvEiyg88ZkZ0M0mTdpk=", - "pom": "sha256-qjIKMYpyceMyYsSA/POZZbmobap2Zm63dTQrgOnN1F4=" - }, - "org/junit/jupiter#junit-jupiter-params/5.8.1": { - "jar": "sha256-OJuNE6jYhy/L1PDrp7LEavxihBn5obKjqfkyQaBqchg=", - "module": "sha256-Ek1gPG2AMzZtjKRxY2tEbji5zBvQEPMpVCNYGHr6hl4=", - "pom": "sha256-OrrKWfvfJTMg9yRCwQPjnOQDjcEf6MSJ28ScwjoHHws=" - }, - "org/junit/jupiter#junit-jupiter/5.8.1": { - "jar": "sha256-jxBJ7iSzShC2DNgQBICZ94HCZYzeIYHoMUlqswqYKYU=", - "module": "sha256-LjS6TIWMOM0KNlr//syTKnGWzpOF4utUBZQuWBwV/1w=", - "pom": "sha256-rssFDSMtOT9Az/EfjMMPUrZslQpB+IOSXIEULt7l9PU=" - }, - "org/junit/platform#junit-platform-commons/1.8.1": { - "jar": "sha256-+k+mjIvVTdDLScP8vpsuQvTaa+2+fnzPKgXxoeYJtZM=", - "module": "sha256-aY/QVBrLfv/GZZhI/Qx91QEKSfFfDBy6Q+U1gH+Q9ms=", - "pom": "sha256-4ZcoLlLnANEriJie3FSJh0aTUC5KqJB6zwgpgBq6bUQ=" - }, - "org/junit/platform#junit-platform-engine/1.8.1": { - "jar": "sha256-cCho7X6GubRnLt4PHhhekFusqa+rV3RqfGUL48e8oEc=", - "module": "sha256-2fQgpkU5o+32D4DfDG/XIrdQcldEx5ykD30lrlbKS6Q=", - "pom": "sha256-hqrU5ld1TkOgDfIm3VTIrsHsarZTP1ASGQfkZi3i5fI=" - }, - "org/junit/vintage#junit-vintage-engine/5.8.1": { - "jar": "sha256-F2tTzRvb+SM+lsiwx6nluGQoL7veukO1zq/e2ymkkVY=", - "module": "sha256-nOn6Lk7mp0DWEBAlMEYqcc4PqdLxQYUi5LK9tgcvZ5o=", - "pom": "sha256-Ndc3M08dvouMVnZ/oVCKwbVEsB1P5cmXl76QA+5YGxI=" - }, - "org/opentest4j#opentest4j/1.2.0": { - "jar": "sha256-WIEt5giY2Xb7ge87YtoFxmBMGP1KJJ9QRCgkefwoavI=", - "pom": "sha256-qW5nGBbB/4gDvex0ySQfAlvfsnfaXStO4CJmQFk2+ZQ=" - }, - "org/sonatype/oss#oss-parent/7": { - "pom": "sha256-tR+IZ8kranIkmVV/w6H96ne9+e9XRyL+kM5DailVlFQ=" - }, - "org/sonatype/oss#oss-parent/9": { - "pom": "sha256-+0AmX5glSCEv+C42LllzKyGH7G8NgBgohcFO8fmCgno=" - } - } -} diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 17682f14430c..022452aab4bb 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1166,8 +1166,13 @@ mapAliases { openjdk20_headless = openjdk20; # Added 2024-08-01 jdk20 = openjdk20; # Added 2024-08-01 jdk20_headless = openjdk20; # Added 2024-08-01 + openjdk22 = throw "OpenJDK 22 was removed as it has reached its end of life"; # Added 2024-09-24 + openjdk22_headless = openjdk22; # Added 2024-09-24 + jdk22 = openjdk22; # Added 2024-09-24 + jdk22_headless = openjdk22; # Added 2024-09-24 openjfx19 = throw "OpenJFX 19 was removed as it has reached its end of life"; # Added 2024-08-01 openjfx20 = throw "OpenJFX 20 was removed as it has reached its end of life"; # Added 2024-08-01 + openjfx22 = throw "OpenJFX 22 was removed as it has reached its end of life"; # Added 2024-09-24 openjpeg_2 = openjpeg; # Added 2021-01-25 openlens = throw "Lens Closed its source code, package obsolete/stale - consider lens as replacement"; # Added 2024-09-04 openlp = throw "openlp has been removed for now because the outdated version depended on insecure and removed packages and it needs help to upgrade and maintain it; see https://github.com/NixOS/nixpkgs/pull/314882"; # Added 2024-07-29 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 24aa362cb3a3..0427d35b4a64 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -15201,7 +15201,7 @@ with pkgs; hugs = callPackage ../development/interpreters/hugs { }; - inherit (javaPackages) openjfx11 openjfx17 openjfx21 openjfx22 openjfx23; + inherit (javaPackages) openjfx11 openjfx17 openjfx21 openjfx23; openjfx = openjfx17; openjdk8-bootstrap = javaPackages.compiler.openjdk8-bootstrap; @@ -15229,11 +15229,6 @@ with pkgs; jdk21 = openjdk21; jdk21_headless = openjdk21_headless; - openjdk22 = javaPackages.compiler.openjdk22; - openjdk22_headless = javaPackages.compiler.openjdk22.headless; - jdk22 = openjdk22; - jdk22_headless = openjdk22_headless; - openjdk23 = javaPackages.compiler.openjdk23; openjdk23_headless = javaPackages.compiler.openjdk23.headless; jdk23 = openjdk23; diff --git a/pkgs/top-level/java-packages.nix b/pkgs/top-level/java-packages.nix index 62b2a037e19d..43e5167d1260 100644 --- a/pkgs/top-level/java-packages.nix +++ b/pkgs/top-level/java-packages.nix @@ -6,11 +6,10 @@ let openjfx11 = callPackage ../development/compilers/openjdk/openjfx/11 { }; openjfx17 = callPackage ../development/compilers/openjdk/openjfx/17 { }; openjfx21 = callPackage ../development/compilers/openjdk/openjfx/21 { }; - openjfx22 = callPackage ../development/compilers/openjdk/openjfx/22 { }; openjfx23 = callPackage ../development/compilers/openjdk/openjfx/23 { }; in { - inherit openjfx11 openjfx17 openjfx21 openjfx22 openjfx23; + inherit openjfx11 openjfx17 openjfx21 openjfx23; compiler = let mkOpenjdk = path-linux: path-darwin: args: @@ -63,17 +62,10 @@ in { openjfx = openjfx21; }; - openjdk22 = mkOpenjdk - ../development/compilers/openjdk/22.nix - ../development/compilers/zulu/22.nix - { - openjdk22-bootstrap = temurin-bin.jdk-22; - openjfx = openjfx22; - }; - openjdk23 = mkOpenjdk ../development/compilers/openjdk/23.nix ../development/compilers/zulu/23.nix + { openjdk23-bootstrap = temurin-bin.jdk-23; openjfx = openjfx23; }; From d19c7e8b164b2803ab5ad6efdb5fb45973c7d4a2 Mon Sep 17 00:00:00 2001 From: Emily Date: Tue, 24 Sep 2024 17:51:28 +0100 Subject: [PATCH 0060/1574] temurin-{,jre-}bin-22: drop --- .../compilers/temurin-bin/generate-sources.py | 2 +- .../compilers/temurin-bin/jdk-darwin.nix | 3 - .../compilers/temurin-bin/jdk-linux.nix | 3 - .../compilers/temurin-bin/sources.json | 120 ------------------ pkgs/top-level/aliases.nix | 2 + pkgs/top-level/all-packages.nix | 3 - 6 files changed, 3 insertions(+), 130 deletions(-) diff --git a/pkgs/development/compilers/temurin-bin/generate-sources.py b/pkgs/development/compilers/temurin-bin/generate-sources.py index 6f398c453c62..a5c5d6f9ffb8 100755 --- a/pkgs/development/compilers/temurin-bin/generate-sources.py +++ b/pkgs/development/compilers/temurin-bin/generate-sources.py @@ -6,7 +6,7 @@ import re import requests import sys -feature_versions = (8, 11, 17, 21, 22, 23) +feature_versions = (8, 11, 17, 21, 23) oses = ("mac", "linux", "alpine-linux") types = ("jre", "jdk") impls = ("hotspot",) diff --git a/pkgs/development/compilers/temurin-bin/jdk-darwin.nix b/pkgs/development/compilers/temurin-bin/jdk-darwin.nix index 76c9aa332001..8363905118f8 100644 --- a/pkgs/development/compilers/temurin-bin/jdk-darwin.nix +++ b/pkgs/development/compilers/temurin-bin/jdk-darwin.nix @@ -19,9 +19,6 @@ in jdk-21 = common { sourcePerArch = sources.jdk.openjdk21; }; jre-21 = common { sourcePerArch = sources.jre.openjdk21; }; - jdk-22 = common { sourcePerArch = sources.jdk.openjdk22; }; - jre-22 = common { sourcePerArch = sources.jre.openjdk22; }; - jdk-23 = common { sourcePerArch = sources.jdk.openjdk23; }; jre-23 = common { sourcePerArch = sources.jre.openjdk23; }; } diff --git a/pkgs/development/compilers/temurin-bin/jdk-linux.nix b/pkgs/development/compilers/temurin-bin/jdk-linux.nix index 54a233590fe7..2c633f150fdb 100644 --- a/pkgs/development/compilers/temurin-bin/jdk-linux.nix +++ b/pkgs/development/compilers/temurin-bin/jdk-linux.nix @@ -20,9 +20,6 @@ in jdk-21 = common { sourcePerArch = sources.jdk.openjdk21; }; jre-21 = common { sourcePerArch = sources.jre.openjdk21; }; - jdk-22 = common { sourcePerArch = sources.jdk.openjdk22; }; - jre-22 = common { sourcePerArch = sources.jre.openjdk22; }; - jdk-23 = common { sourcePerArch = sources.jdk.openjdk23; }; jre-23 = common { sourcePerArch = sources.jre.openjdk23; }; } diff --git a/pkgs/development/compilers/temurin-bin/sources.json b/pkgs/development/compilers/temurin-bin/sources.json index 75ce8dfb0ae6..9443eb45f401 100644 --- a/pkgs/development/compilers/temurin-bin/sources.json +++ b/pkgs/development/compilers/temurin-bin/sources.json @@ -38,22 +38,6 @@ "version": "21.0.4" } }, - "openjdk22": { - "aarch64": { - "build": "9", - "sha256": "8ac93a2d5a55aabbc0f7156c2f9032026e87c185689d628ef8a4184b6e9ab006", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_aarch64_alpine-linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - }, - "packageType": "jdk", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "49f73414824b1a7c268a611225fa4d7ce5e25600201e0f1cd59f94d1040b5264", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_x64_alpine-linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - } - }, "openjdk23": { "aarch64": { "build": "37", @@ -118,22 +102,6 @@ "version": "21.0.4" } }, - "openjdk22": { - "aarch64": { - "build": "9", - "sha256": "749e7372a7dba0de632592fe55a0e387d96922c84dcdc039e0efc1f7ecfcd70e", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_aarch64_alpine-linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - }, - "packageType": "jre", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "459342f5210cfd185aeed05abdc052fcd61cf6ff066541919b786236d69c5737", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_x64_alpine-linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - } - }, "openjdk23": { "aarch64": { "build": "37", @@ -266,34 +234,6 @@ "version": "21.0.4" } }, - "openjdk22": { - "aarch64": { - "build": "9", - "sha256": "dac62747b5158c4bf4c4636432e3bdb9dea47f80f0c9d1d007f19bd5483b7d29", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_aarch64_linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - }, - "packageType": "jdk", - "powerpc64le": { - "build": "9", - "sha256": "1d678752d58e33ff951e75736b8415d6d7ae136b2421ca02e993f2603e9b259b", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_ppc64le_linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - }, - "riscv64": { - "build": "9", - "sha256": "830a0d006c2dae95c0855aa70e193dba637831b491ccd67333322dea31bcf389", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_riscv64_linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - }, - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "05cd9359dacb1a1730f7c54f57e0fed47942a5292eb56a3a0ee6b13b87457a43", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_x64_linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - } - }, "openjdk23": { "aarch64": { "build": "37", @@ -460,34 +400,6 @@ "version": "21.0.4" } }, - "openjdk22": { - "aarch64": { - "build": "9", - "sha256": "7cf494b51625505d1843ad032677d885bd8000a80d0d38396685f25acbdb5708", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_aarch64_linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - }, - "packageType": "jre", - "powerpc64le": { - "build": "9", - "sha256": "132191d6f23ad1ac558de67e3e9913d047db07efd979eb84bf5dc20a651ffe61", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_ppc64le_linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - }, - "riscv64": { - "build": "9", - "sha256": "81aacc0ae75e65846e6207edf41b8c5927673eba5588eebc5ba8076ca9a6041c", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_riscv64_linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - }, - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "41e401f287e1850631b259b483929462217ac6b1cc3c7359d80b1cc01ee5a666", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_x64_linux_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - } - }, "openjdk23": { "aarch64": { "build": "37", @@ -602,22 +514,6 @@ "version": "21.0.4" } }, - "openjdk22": { - "aarch64": { - "build": "9", - "sha256": "6f7bd166c46094cf48018b018b161eae838a01dddce9d6fc5800eed353d37b84", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_aarch64_mac_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - }, - "packageType": "jdk", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "f3f411a4c685699980ad0ef2cac994d0450fc40d4a75d3d16b73857f76c9a982", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jdk_x64_mac_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - } - }, "openjdk23": { "aarch64": { "build": "37", @@ -694,22 +590,6 @@ "version": "21.0.4" } }, - "openjdk22": { - "aarch64": { - "build": "9", - "sha256": "d1b72dcf7a5d18b9b394acb7a64667eb089a82c8112214fb5d1e5a24a4b09202", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_aarch64_mac_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - }, - "packageType": "jre", - "vmType": "hotspot", - "x86_64": { - "build": "9", - "sha256": "ab0fe9b4cd5c38ea1ceb1c675b1722d510038f657f79ce97a811b3d13d3882a6", - "url": "https://github.com/adoptium/temurin22-binaries/releases/download/jdk-22.0.2%2B9/OpenJDK22U-jre_x64_mac_hotspot_22.0.2_9.tar.gz", - "version": "22.0.2" - } - }, "openjdk23": { "aarch64": { "build": "37", diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 022452aab4bb..ee39bb44c477 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -1548,6 +1548,8 @@ mapAliases { temurin-bin-18 = throw "Temurin 18 has been removed as it has reached its end of life"; # Added 2024-08-01 temurin-jre-bin-18 = throw "Temurin 18 has been removed as it has reached its end of life"; # Added 2024-08-01 temurin-bin-16 = throw "Temurin 16 has been removed as it has reached its end of life"; # Added 2024-08-01 + temurin-jre-bin-22 = throw "Temurin 22 has been removed as it has reached its end of life"; # Added 2024-09-24 + temurin-bin-22 = throw "Temurin 22 has been removed as it has reached its end of life"; # Added 2024-09-24 tensile = throw "'tensile' has been replaced with 'rocmPackages.tensile'"; # Added 2023-10-08 tepl = libgedit-tepl; # Added 2024-04-29 testVersion = testers.testVersion; # Added 2022-04-20 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0427d35b4a64..cbdc47c0db6d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -14391,9 +14391,6 @@ with pkgs; temurin-bin-23 = javaPackages.compiler.temurin-bin.jdk-23; temurin-jre-bin-23 = javaPackages.compiler.temurin-bin.jre-23; - temurin-bin-22 = javaPackages.compiler.temurin-bin.jdk-22; - temurin-jre-bin-22 = javaPackages.compiler.temurin-bin.jre-22; - temurin-bin-21 = javaPackages.compiler.temurin-bin.jdk-21; temurin-jre-bin-21 = javaPackages.compiler.temurin-bin.jre-21; From de4ad2a6ace9f2428804cf515bbc5600aa340981 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 24 Aug 2024 18:54:54 +0200 Subject: [PATCH 0061/1574] postgresql: use newer libuuid instead of ossp-uuid Since PostgreSQL 9.4 it's possible to build with different uuid libraries. Eversince, the postgres docs [1] have this to say: [..] the OSSP UUID library [..] is not well maintained, and is becoming increasingly difficult to port to newer platforms. [..] On Linux, OS X, and some other platforms, suitable functions are provided in the libuuid library, which originally came from the e2fsprogs project (though on modern Linux it is considered part of util-linux-ng). Using e2fs for Darwin was introduced 9 years ago in #8574, which library to use for Linux was never considered again. Thus, start building with newer libs now. As a side effect, we require one less patch if we decide to build with meson later. [1]: https://www.postgresql.org/docs/current/uuid-ossp.html --- pkgs/servers/sql/postgresql/generic.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 9a52c556afcb..e92b3eac18fe 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -3,7 +3,7 @@ let generic = # dependencies { stdenv, lib, fetchurl, fetchpatch, makeWrapper - , glibc, zlib, readline, openssl, icu, lz4, zstd, systemdLibs, libossp_uuid + , glibc, zlib, readline, openssl, icu, lz4, zstd, systemdLibs, libuuid , pkg-config, libxml2, tzdata, libkrb5, substituteAll, darwin , linux-pam @@ -102,6 +102,7 @@ let openssl (libxml2.override {enableHttp = true;}) icu + libuuid ] ++ lib.optionals (olderThan "13") [ libxcrypt ] ++ lib.optionals jitSupport [ llvmPackages.llvm ] @@ -110,8 +111,7 @@ let ++ lib.optionals systemdSupport' [ systemdLibs ] ++ lib.optionals pythonSupport [ python3 ] ++ lib.optionals gssSupport [ libkrb5 ] - ++ lib.optionals stdenv'.hostPlatform.isLinux [ linux-pam ] - ++ lib.optionals (!stdenv'.hostPlatform.isDarwin) [ libossp_uuid ]; + ++ lib.optionals stdenv'.hostPlatform.isLinux [ linux-pam ]; nativeBuildInputs = [ makeWrapper @@ -145,7 +145,7 @@ let "--with-system-tzdata=${tzdata}/share/zoneinfo" "--enable-debug" (lib.optionalString systemdSupport' "--with-systemd") - (if stdenv'.hostPlatform.isDarwin then "--with-uuid=e2fs" else "--with-ossp-uuid") + "--with-uuid=e2fs" ] ++ lib.optionals lz4Enabled [ "--with-lz4" ] ++ lib.optionals zstdEnabled [ "--with-zstd" ] ++ lib.optionals gssSupport [ "--with-gssapi" ] From a7fdf2256ae643876035c863dc9bbd3fd95101da Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Sat, 8 Jun 2024 14:10:10 +0200 Subject: [PATCH 0062/1574] postgresql: simplify systemdSupport default value systemd is not available on static platforms, so the isStatic check is redundant. --- pkgs/servers/sql/postgresql/generic.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index e92b3eac18fe..49c35b2ac62b 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -9,8 +9,7 @@ let , removeReferencesTo, writeShellApplication - # This is important to obtain a version of `libpq` that does not depend on systemd. - , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs && !stdenv.hostPlatform.isStatic + , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs , enableSystemd ? null , gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic From 6178e9bd3c37f1398f92ee433fb76e32e50ed874 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 24 Sep 2024 20:04:32 +0200 Subject: [PATCH 0063/1574] postgresql: remove deprecated enableSystemd override This was deprecated in e6bfabf366b7dfdf67e24877dc5a24c5c1f8e62e, where we agreed on removing this after one release in [1]. Time has come! [1]: https://github.com/NixOS/nixpkgs/pull/292993#discussion_r1518883146 --- nixos/doc/manual/release-notes/rl-2411.section.md | 2 ++ pkgs/servers/sql/postgresql/generic.nix | 7 ++----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/nixos/doc/manual/release-notes/rl-2411.section.md b/nixos/doc/manual/release-notes/rl-2411.section.md index 68fd59fa96c2..0bb2c0eccf97 100644 --- a/nixos/doc/manual/release-notes/rl-2411.section.md +++ b/nixos/doc/manual/release-notes/rl-2411.section.md @@ -218,6 +218,8 @@ - The nvidia driver no longer defaults to the proprietary driver starting with version 560. You will need to manually set `hardware.nvidia.open` to select the proprietary or open driver. +- `postgresql` no longer accepts the `enableSystemd` override. Use `systemdSupport` instead. + - The dhcpcd service (`networking.useDHCP`) has been hardened and now runs exclusively as the "dhcpcd" user. Users that were relying on the root privileges in `networking.dhcpcd.runHook` will have to write specific [sudo](security.sudo.extraRules) or [polkit](security.polkit.extraConfig) rules to allow dhcpcd to perform privileged actions. diff --git a/pkgs/servers/sql/postgresql/generic.nix b/pkgs/servers/sql/postgresql/generic.nix index 49c35b2ac62b..539a4d05019d 100644 --- a/pkgs/servers/sql/postgresql/generic.nix +++ b/pkgs/servers/sql/postgresql/generic.nix @@ -10,7 +10,6 @@ let , removeReferencesTo, writeShellApplication , systemdSupport ? lib.meta.availableOn stdenv.hostPlatform systemdLibs - , enableSystemd ? null , gssSupport ? with stdenv.hostPlatform; !isWindows && !isStatic # for postgresql.pkgs @@ -43,8 +42,6 @@ let dlSuffix = if olderThan "16" then ".so" else stdenv.hostPlatform.extensions.sharedLibrary; - systemdSupport' = if enableSystemd == null then systemdSupport else (lib.warn "postgresql: argument enableSystemd is deprecated, please use systemdSupport instead." enableSystemd); - pname = "postgresql"; stdenv' = @@ -107,7 +104,7 @@ let ++ lib.optionals jitSupport [ llvmPackages.llvm ] ++ lib.optionals lz4Enabled [ lz4 ] ++ lib.optionals zstdEnabled [ zstd ] - ++ lib.optionals systemdSupport' [ systemdLibs ] + ++ lib.optionals systemdSupport [ systemdLibs ] ++ lib.optionals pythonSupport [ python3 ] ++ lib.optionals gssSupport [ libkrb5 ] ++ lib.optionals stdenv'.hostPlatform.isLinux [ linux-pam ]; @@ -143,7 +140,7 @@ let "--sysconfdir=/etc" "--with-system-tzdata=${tzdata}/share/zoneinfo" "--enable-debug" - (lib.optionalString systemdSupport' "--with-systemd") + (lib.optionalString systemdSupport "--with-systemd") "--with-uuid=e2fs" ] ++ lib.optionals lz4Enabled [ "--with-lz4" ] ++ lib.optionals zstdEnabled [ "--with-zstd" ] From e791a35b58b1324be6adbb2d1444a416f6986073 Mon Sep 17 00:00:00 2001 From: Artturin Date: Thu, 12 Sep 2024 07:58:28 +0300 Subject: [PATCH 0064/1574] cc-wrapper: Use `getExe` for `expand-response-params` The binary in `expand-response-params` may have an extension like `.exe` `expand-response-params` is `""` in bootstrapping --- pkgs/build-support/cc-wrapper/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index 7717c5015cb7..f4a78254d3de 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -733,7 +733,7 @@ stdenvNoCC.mkDerivation { # for substitution in utils.bash # TODO(@sternenseemann): invent something cleaner than passing in "" in case of absence - expandResponseParams = "${expand-response-params}/bin/expand-response-params"; + expandResponseParams = lib.optionalString (expand-response-params != "") (lib.getExe expand-response-params); # TODO(@sternenseemann): rename env var via stdenv rebuild shell = getBin runtimeShell + runtimeShell.shellPath or ""; gnugrep_bin = optionalString (!nativeTools) gnugrep; From 8d8a065cdc8ea78ed88b9ec8364595bbf6b821c2 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 26 Sep 2024 22:12:56 +0100 Subject: [PATCH 0065/1574] libcamera: 0.3.1 -> 0.3.2 Changes: https://lists.libcamera.org/pipermail/libcamera-devel/2024-September/045145.html --- pkgs/by-name/li/libcamera/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libcamera/package.nix b/pkgs/by-name/li/libcamera/package.nix index 9af2eda79e60..f576c74cc824 100644 --- a/pkgs/by-name/li/libcamera/package.nix +++ b/pkgs/by-name/li/libcamera/package.nix @@ -25,12 +25,12 @@ stdenv.mkDerivation rec { pname = "libcamera"; - version = "0.3.1"; + version = "0.3.2"; src = fetchgit { url = "https://git.libcamera.org/libcamera/libcamera.git"; rev = "v${version}"; - hash = "sha256-vB7dxBDG0y8YvG/2vCgrhyBJmumGG66Vl7yZwprxj5c="; + hash = "sha256-rW1BG5blozQKA73P5vH5dGkwQG5JJzxdOU2GCB3xIns="; }; outputs = [ "out" "dev" ]; From 222485bb0c51df935629c464df206396434e746e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20=C4=8Cun=C3=A1t?= Date: Fri, 27 Sep 2024 09:23:35 +0200 Subject: [PATCH 0066/1574] libtiff: avoid parallel checking (completely) See 9f92114fc85e96f8c208fc92642205cee3a053bc --- pkgs/by-name/li/libtiff/package.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/by-name/li/libtiff/package.nix b/pkgs/by-name/li/libtiff/package.nix index 6622acf533a3..7ad8f84fc2a1 100644 --- a/pkgs/by-name/li/libtiff/package.nix +++ b/pkgs/by-name/li/libtiff/package.nix @@ -84,8 +84,7 @@ stdenv.mkDerivation (finalAttrs: { doCheck = true; # Avoid flakiness like https://gitlab.com/libtiff/libtiff/-/commit/94f6f7315b1 - # - except that we have many x86_64-linux binaries depending on this already - enableParallelChecking = stdenv.system == "x86_64-linux"; + enableParallelChecking = false; passthru = { tests = { From 7c4e9bcab46957f073c2d433722fb1d4571234a6 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 27 Sep 2024 09:16:23 +0100 Subject: [PATCH 0067/1574] bash: 5.2p32 -> 5.2p37 --- pkgs/shells/bash/bash-5.2-patches.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/shells/bash/bash-5.2-patches.nix b/pkgs/shells/bash/bash-5.2-patches.nix index fb4c9c4e3678..da5380c7a55a 100644 --- a/pkgs/shells/bash/bash-5.2-patches.nix +++ b/pkgs/shells/bash/bash-5.2-patches.nix @@ -33,4 +33,9 @@ patch: [ (patch "030" "13v9fqgim082dmvkslsr0hs793yzhsij2s91mjswsfhj1qip7zy3") (patch "031" "15d7rddj6spwc1fy997lxx6zvzq0zbxgf2h20mhi4wgp5nzbglf2") (patch "032" "05ia6yf32hjprmyyxqawhgckxs3684ikfx8xg08zfgx9xkd7g73v") +(patch "033" "1qm2aad9mf2xah6xwchga7s5pk3v308mrv9lgh50d65d236ccgh1") +(patch "034" "0bi38dhkkwpm2qrzp8zpykglq6gibvv2n9f8m59gwj406cxvp7w9") +(patch "035" "1r8k34y82v02yfkgws17j7i53ybb74dqnwl2jjiv0av9z93hl6l2") +(patch "036" "0mwhr9hfbh2czf8klbxg6nbd2g9xl9kygvgk061vird56r4kzj8m") +(patch "037" "156sbi3srzkyxajkmhb7iigq0j4nvwnpsbw88xdsxn95a4xiqb4a") ] From 053e3fe1f4b5602f05084dba63be651592069231 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Fri, 27 Sep 2024 19:01:42 +0200 Subject: [PATCH 0068/1574] cups: apply patches for CVE-2024-47175 Based on the information provided in https://www.openwall.com/lists/oss-security/2024/09/27/3 https://github.com/OpenPrinting/libppd/security/advisories/GHSA-7xfx-47qg-grp6 --- pkgs/misc/cups/default.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/pkgs/misc/cups/default.nix b/pkgs/misc/cups/default.nix index 4c9d2de10873..ffec1bd0792b 100644 --- a/pkgs/misc/cups/default.nix +++ b/pkgs/misc/cups/default.nix @@ -1,5 +1,6 @@ { lib, stdenv , fetchurl +, fetchpatch , pkg-config , removeReferencesTo , zlib @@ -32,6 +33,34 @@ stdenv.mkDerivation rec { outputs = [ "out" "lib" "dev" "man" ]; + patches = [ + (fetchpatch { + name = "CVE-2024-47175_0.patch"; + url = "https://github.com/OpenPrinting/cups/commit/9939a70b750edd9d05270060cc5cf62ca98cfbe5.patch"; + hash = "sha256-Nt6/JwoaHkzFxCl1BuXOQRfki8Oquk2rIwvw7qekTQI="; + }) + (fetchpatch { + name = "CVE-2024-47175_1.patch"; + url = "https://github.com/OpenPrinting/cups/commit/04bb2af4521b56c1699a2c2431c56c05a7102e69.patch"; + hash = "sha256-ZyvVAv96pK6ldSQf5IOiIXk8xYeNJOWNHX0S5pyn6pw="; + }) + (fetchpatch { + name = "CVE-2024-47175_2.patch"; + url = "https://github.com/OpenPrinting/cups/commit/e0630cd18f76340d302000f2bf6516e99602b844.patch"; + hash = "sha256-uDUOIwkRGZo+XXheDt+HGsXujtEJ3b4o5yNWdnz5uIY="; + }) + (fetchpatch { + name = "CVE-2024-47175_3.patch"; + url = "https://github.com/OpenPrinting/cups/commit/1e6ca5913eceee906038bc04cc7ccfbe2923bdfd.patch"; + hash = "sha256-SiYUsa+DUNPua0/r/rvzzRAYra2AP49ImbyWG5RnCI0="; + }) + (fetchpatch { + name = "CVE-2024-47175_4.patch"; + url = "https://github.com/OpenPrinting/cups/commit/2abe1ba8a66864aa82cd9836b37e57103b8e1a3b.patch"; + hash = "sha256-oeZ3nNmPMkusxZhmmKOCcD/AD+QzkVE8acNXapGK/Ew="; + }) + ]; + postPatch = '' substituteInPlace cups/testfile.c \ --replace 'cupsFileFind("cat", "/bin' 'cupsFileFind("cat", "${coreutils}/bin' From 650072229d789b6c83ef110b9e665a9680ace842 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Fri, 27 Sep 2024 19:44:17 +0200 Subject: [PATCH 0069/1574] curlpp: remove deprecated curl flag The flag did not work anyway: https://github.com/curl/curl/commit/ae76ebe2d1202a09b009c9294f63c2a1bc228bd8 --- .../curlpp/curl_8_10_build_failure.patch | 25 +++++++++++++++++++ pkgs/development/libraries/curlpp/default.nix | 5 ++++ 2 files changed, 30 insertions(+) create mode 100644 pkgs/development/libraries/curlpp/curl_8_10_build_failure.patch diff --git a/pkgs/development/libraries/curlpp/curl_8_10_build_failure.patch b/pkgs/development/libraries/curlpp/curl_8_10_build_failure.patch new file mode 100644 index 000000000000..c90dd96b6e7c --- /dev/null +++ b/pkgs/development/libraries/curlpp/curl_8_10_build_failure.patch @@ -0,0 +1,25 @@ +diff --git a/doc/guide.tex b/doc/guide.tex +index 12165e7..76b5c59 100644 +--- a/doc/guide.tex ++++ b/doc/guide.tex +@@ -623,8 +623,6 @@ see the ``how to enhance cURLpp'' section. + cURL::CURLOPT_LOW_SPEED_TIME > LowSpeedTime; + typedef cURLpp::OptionTrait< long, + cURL::CURLOPT_MAXCONNECTS > MaxConnects; +- typedef cURLpp::OptionTrait< cURL::curl_closepolicy, +- cURL::CURLOPT_CLOSEPOLICY > ClosePolicy; + typedef cURLpp::OptionTrait< bool, + cURL::CURLOPT_FRESH_CONNECT > FreshConnect; + typedef cURLpp::OptionTrait< bool, +diff --git a/include/curlpp/Options.hpp b/include/curlpp/Options.hpp +index c705c9d..ca6fec6 100644 +--- a/include/curlpp/Options.hpp ++++ b/include/curlpp/Options.hpp +@@ -278,7 +278,6 @@ namespace options + typedef curlpp::OptionTrait LowSpeedLimit; + typedef curlpp::OptionTrait LowSpeedTime; + typedef curlpp::OptionTrait MaxConnects; +- typedef curlpp::OptionTrait ClosePolicy; + typedef curlpp::OptionTrait FreshConnect; + typedef curlpp::OptionTrait ForbidReuse; + typedef curlpp::OptionTrait ConnectTimeout; diff --git a/pkgs/development/libraries/curlpp/default.nix b/pkgs/development/libraries/curlpp/default.nix index c8fe78d0462f..26f52d9dbaed 100644 --- a/pkgs/development/libraries/curlpp/default.nix +++ b/pkgs/development/libraries/curlpp/default.nix @@ -10,6 +10,11 @@ stdenv.mkDerivation rec { sha256 = "1b0ylnnrhdax4kwjq64r1fk0i24n5ss6zfzf4hxwgslny01xiwrk"; }; + patches = [ + # https://github.com/jpbarrette/curlpp/pull/171 + ./curl_8_10_build_failure.patch + ]; + buildInputs = [ curl ]; nativeBuildInputs = [ cmake ]; From 11cdf8d9e50f1633495bb331e52f77475552d27a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 28 Sep 2024 00:00:03 +0200 Subject: [PATCH 0070/1574] python312Packages.pdm-backend: 2.3.3 -> 2.4.1 https://github.com/pdm-project/pdm-backend/releases/tag/2.4.1 --- pkgs/development/python-modules/pdm-backend/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/pdm-backend/default.nix b/pkgs/development/python-modules/pdm-backend/default.nix index 64ad22dd1651..b8bc3fd40902 100644 --- a/pkgs/development/python-modules/pdm-backend/default.nix +++ b/pkgs/development/python-modules/pdm-backend/default.nix @@ -17,14 +17,14 @@ buildPythonPackage rec { pname = "pdm-backend"; - version = "2.3.3"; + version = "2.4.1"; pyproject = true; src = fetchFromGitHub { owner = "pdm-project"; repo = "pdm-backend"; rev = "refs/tags/${version}"; - hash = "sha256-gM8Sx6nMiq84e3sLJn35shF2jy6Ce1qPlERi2XpS89k="; + hash = "sha256-YQavUP3RaZns9byli54feVtG92Stozr3T66WouQwF+s="; }; env.PDM_BUILD_SCM_VERSION = version; From 2c2d71985767f75fed36ac259aa574c49ad348a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Mon, 2 Sep 2024 14:12:40 -0700 Subject: [PATCH 0071/1574] python312Packages.yarl: 1.9.4 -> 1.13.1 Diff: https://github.com/aio-libs/yarl/compare/refs/tags/v1.9.4...v1.13.1 Changelog: https://github.com/aio-libs/yarl/blob/v1.13.1/CHANGES.rst --- .../python-modules/yarl/default.nix | 27 +++++++++---------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/yarl/default.nix b/pkgs/development/python-modules/yarl/default.nix index 0fd0f0ae6898..356e3f792639 100644 --- a/pkgs/development/python-modules/yarl/default.nix +++ b/pkgs/development/python-modules/yarl/default.nix @@ -1,45 +1,43 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, pythonOlder, cython, expandvars, setuptools, idna, multidict, - typing-extensions, + pytest-cov-stub, pytest-xdist, pytestCheckHook, }: buildPythonPackage rec { pname = "yarl"; - version = "1.9.4"; + version = "1.13.1"; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; pyproject = true; - src = fetchPypi { - inherit pname version; - hash = "sha256-Vm24ZxfPgIC5m1iwg7dzqQiuQPBmgeh+WJqXb6+CRr8="; + src = fetchFromGitHub { + owner = "aio-libs"; + repo = "yarl"; + rev = "refs/tags/v${version}"; + hash = "sha256-I6/c5Q6/SRw8PIW4rPLKhVRVPRIC+n+Cz+UrKn5Pv/0="; }; - postPatch = '' - sed -i '/cov/d' pytest.ini - ''; - - nativeBuildInputs = [ + build-system = [ cython expandvars setuptools ]; - propagatedBuildInputs = [ + dependencies = [ idna multidict - ] ++ lib.optionals (pythonOlder "3.8") [ typing-extensions ]; + ]; preCheck = '' # don't import yarl from ./ so the C extension is available @@ -47,6 +45,7 @@ buildPythonPackage rec { ''; nativeCheckInputs = [ + pytest-cov-stub pytest-xdist pytestCheckHook ]; From 78e1585d771727881df3f4453d9c07c8585f11c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=BCtz?= Date: Tue, 24 Sep 2024 16:44:02 -0700 Subject: [PATCH 0072/1574] python312Packages.aiohttp: 3.10.5 -> 3.10.7 Diff: https://github.com/aio-libs/aiohttp/compare/refs/tags/v3.10.5...v3.10.7 Changelog: https://github.com/aio-libs/aiohttp/blob/v3.10.7/CHANGES.rst --- pkgs/development/python-modules/aiohttp/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/aiohttp/default.nix b/pkgs/development/python-modules/aiohttp/default.nix index 75db6b645291..84516aac4fb4 100644 --- a/pkgs/development/python-modules/aiohttp/default.nix +++ b/pkgs/development/python-modules/aiohttp/default.nix @@ -39,7 +39,7 @@ buildPythonPackage rec { pname = "aiohttp"; - version = "3.10.5"; + version = "3.10.7"; pyproject = true; disabled = pythonOlder "3.8"; @@ -48,7 +48,7 @@ buildPythonPackage rec { owner = "aio-libs"; repo = "aiohttp"; rev = "refs/tags/v${version}"; - hash = "sha256-HN2TJ8hVbClakV3ldTOn3wbrhCuf2Qn9EjWCSlSyJpw="; + hash = "sha256-UOsWC5P/KT5YMzkAM6WuoOum30b8s4sgSUgR6EskHy0="; }; patches = [ From bb52842d62976b9cb402a0d7e5a9188d82ae056c Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Fri, 27 Sep 2024 15:29:42 +0200 Subject: [PATCH 0073/1574] python312Packages.aiohappyeyeballs: 2.3.6 -> 2.4.2 https://github.com/bdraco/aiohappyeyeballs/blob/v2.4.2/CHANGELOG.md --- .../development/python-modules/aiohappyeyeballs/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/aiohappyeyeballs/default.nix b/pkgs/development/python-modules/aiohappyeyeballs/default.nix index 9ff8b61feed8..51b923c86df6 100644 --- a/pkgs/development/python-modules/aiohappyeyeballs/default.nix +++ b/pkgs/development/python-modules/aiohappyeyeballs/default.nix @@ -21,7 +21,7 @@ buildPythonPackage rec { pname = "aiohappyeyeballs"; - version = "2.3.6"; + version = "2.4.2"; pyproject = true; disabled = pythonOlder "3.10"; @@ -30,7 +30,7 @@ buildPythonPackage rec { owner = "bdraco"; repo = "aiohappyeyeballs"; rev = "refs/tags/v${version}"; - hash = "sha256-3cin755WD3e75l+mm//KG+g2UEkHvdYYEFvkJ9j9D6s="; + hash = "sha256-ZHxAup3Qf+ejW5Lz9ucuiWAQAwSG0Rf5giPSwk9A0ww="; }; outputs = [ @@ -38,7 +38,7 @@ buildPythonPackage rec { "doc" ]; - nativeBuildInputs = [ poetry-core ] ++ optional-dependencies.docs; + build-system = [ poetry-core ] ++ optional-dependencies.docs; optional-dependencies = { docs = [ From c4a12396e52640f43076ce6f1e0781b60427f7bb Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sat, 28 Sep 2024 12:48:45 +0200 Subject: [PATCH 0074/1574] python312Packages.hass-nabucasa: backport aiohttp 3.10.6 compat patch --- .../python-modules/hass-nabucasa/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix index 62ccb7ef91d0..c0ea7712615d 100644 --- a/pkgs/development/python-modules/hass-nabucasa/default.nix +++ b/pkgs/development/python-modules/hass-nabucasa/default.nix @@ -8,6 +8,7 @@ ciso8601, cryptography, fetchFromGitHub, + fetchpatch2, pycognito, pyjwt, pytest-aiohttp, @@ -34,8 +35,15 @@ buildPythonPackage rec { hash = "sha256-/sY/JijBCcGcbMjoX0yuhFIWvU+TFVN8sRxBx+CDVVs="; }; - pythonRelaxDeps = [ "acme" ]; + patches = [ + (fetchpatch2 { + name = "aiohttp-3.10.6-compat.patch"; + url = "https://github.com/NabuCasa/hass-nabucasa/commit/b53bc12924ca6260583e250f49f663b2d1c11541.patch"; + hash = "sha256-Z5vTl0zuidFIo92Po8oLB0VfMC7c6mlq/mJkeHXOSpQ="; + }) + ]; + pythonRelaxDeps = [ "acme" ]; build-system = [ setuptools ]; From 61c636a5ce0746866340eaa64087303b3e5879c1 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sun, 29 Sep 2024 09:09:58 +0000 Subject: [PATCH 0075/1574] gdb: 15.1 -> 15.2 --- pkgs/development/tools/misc/gdb/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/misc/gdb/default.nix b/pkgs/development/tools/misc/gdb/default.nix index ac1bd1627d1c..40808bcdb439 100644 --- a/pkgs/development/tools/misc/gdb/default.nix +++ b/pkgs/development/tools/misc/gdb/default.nix @@ -30,11 +30,11 @@ assert pythonSupport -> python3 != null; stdenv.mkDerivation rec { pname = targetPrefix + basename + lib.optionalString hostCpuOnly "-host-cpu-only"; - version = "15.1"; + version = "15.2"; src = fetchurl { url = "mirror://gnu/gdb/${basename}-${version}.tar.xz"; - hash = "sha256-OCVOrNRXITS8qcWlqk1MpWTLvTDDadiB9zP7a5AzVPI="; + hash = "sha256-gzUMzTW1taDLprM0xBKU6paBWMVzlAkE8AuS92NFMU0="; }; postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' From 40b974d78ec24cd662c77cf5ad140b23ee908b08 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 29 Sep 2024 11:17:57 +0100 Subject: [PATCH 0076/1574] lksctp-tools: 1.0.20 -> 1.0.21 Changes: https://github.com/sctp/lksctp-tools/compare/v1.0.20...v1.0.21 --- pkgs/os-specific/linux/lksctp-tools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/lksctp-tools/default.nix b/pkgs/os-specific/linux/lksctp-tools/default.nix index d416ddd14b97..de370c5b5c85 100644 --- a/pkgs/os-specific/linux/lksctp-tools/default.nix +++ b/pkgs/os-specific/linux/lksctp-tools/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "lksctp-tools"; - version = "1.0.20"; + version = "1.0.21"; src = fetchFromGitHub { owner = "sctp"; repo = "lksctp-tools"; rev = "v${version}"; - hash = "sha256-h+wMrnx+u/4feNjZr2Gc+y6/80qJ8IVXsrDvHyixMxo="; + hash = "sha256-+vbdNvHuJLYp901QgtBzMejlbzMyr9Z1eXxR3Zy7eAE="; }; nativeBuildInputs = [ autoreconfHook ]; From 0b77f4ad4f3e5b3ed90cd95fc62d88c95910b414 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Thu, 26 Sep 2024 10:45:51 -0700 Subject: [PATCH 0077/1574] srcOnly: some readability improvements --- pkgs/build-support/src-only/default.nix | 36 ++++++++++++++++--------- 1 file changed, 24 insertions(+), 12 deletions(-) diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix index cd8572629cad..13a768f7f36b 100644 --- a/pkgs/build-support/src-only/default.nix +++ b/pkgs/build-support/src-only/default.nix @@ -1,4 +1,5 @@ -{ stdenv }: +{ lib, stdenv }: + # srcOnly is a utility builder that only fetches and unpacks the given `src`, # and optionally patching with `patches` or adding build inputs. # @@ -6,17 +7,28 @@ # # > srcOnly pkgs.hello # + attrs: let - args = if builtins.hasAttr "drvAttrs" attrs then attrs.drvAttrs else attrs; - name = if builtins.hasAttr "name" args then args.name else "${args.pname}-${args.version}"; + args = attrs.drvAttrs or attrs; + name = args.name or "${args.pname}-${args.version}"; + drv = stdenv.mkDerivation ( + args + // { + name = "${name}-source"; + + phases = [ + "unpackPhase" + "patchPhase" + "installPhase" + ]; + separateDebugInfo = false; + + dontUnpack = false; + + dontInstall = false; + installPhase = "cp -pr --reflink=auto -- . $out"; + } + ); in -stdenv.mkDerivation (args // { - name = "${name}-source"; - installPhase = "cp -pr --reflink=auto -- . $out"; - outputs = [ "out" ]; - separateDebugInfo = false; - dontUnpack = false; - dontInstall = false; - phases = ["unpackPhase" "patchPhase" "installPhase"]; -}) +drv From 13f0f6e596873df7209590308dedce8166b8c9b6 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Sat, 28 Sep 2024 15:34:36 -0700 Subject: [PATCH 0078/1574] srcOnly: Add warning if dontUnpack is set --- pkgs/build-support/src-only/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix index 13a768f7f36b..46650060dbf0 100644 --- a/pkgs/build-support/src-only/default.nix +++ b/pkgs/build-support/src-only/default.nix @@ -31,4 +31,4 @@ let } ); in -drv +lib.warnIf (args.dontUnpack or false) "srcOnly: derivation has dontUnpack set, overriding" drv From 1463fe69c656747c75a8f34547bc0877aa5eceb4 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Sat, 28 Sep 2024 15:35:14 -0700 Subject: [PATCH 0079/1574] srcOnly: use derivation's stdenv and default to stdenvNoCC --- pkgs/build-support/src-only/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix index 46650060dbf0..d303d35231a9 100644 --- a/pkgs/build-support/src-only/default.nix +++ b/pkgs/build-support/src-only/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv }: +{ lib, stdenvNoCC }: # srcOnly is a utility builder that only fetches and unpacks the given `src`, # and optionally patching with `patches` or adding build inputs. @@ -12,6 +12,7 @@ attrs: let args = attrs.drvAttrs or attrs; name = args.name or "${args.pname}-${args.version}"; + stdenv = args.stdenv or (lib.warn "srcOnly: stdenv not provided, using stdenvNoCC" stdenvNoCC); drv = stdenv.mkDerivation ( args // { From 28ee6e7979405feb704d8715ece9749e57277456 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Sat, 28 Sep 2024 15:43:03 -0700 Subject: [PATCH 0080/1574] (WIP) srcOnly: Add noogle-compatible documentation --- pkgs/build-support/src-only/default.nix | 41 ++++++++++++++++++++----- 1 file changed, 34 insertions(+), 7 deletions(-) diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix index d303d35231a9..86fdda489077 100644 --- a/pkgs/build-support/src-only/default.nix +++ b/pkgs/build-support/src-only/default.nix @@ -1,12 +1,39 @@ { lib, stdenvNoCC }: -# srcOnly is a utility builder that only fetches and unpacks the given `src`, -# and optionally patching with `patches` or adding build inputs. -# -# It can be invoked directly, or be used to wrap an existing derivation. Eg: -# -# > srcOnly pkgs.hello -# +/** + A utility builder to get the source code of the input derivation, with any patches applied. + + # Examples + + ```nix + srcOnly pkgs.hello + => «derivation /nix/store/gyfk2jg9079ga5g5gfms5i4h0k9jhf0f-hello-2.12.1-source.drv» + + srcOnly { + inherit (pkgs.hello) name version src stdenv; + } + => «derivation /nix/store/vf9hdhz38z7rfhzhrk0vi70h755fnsw7-hello-2.12.1-source.drv» + ``` + + # Type + + ``` + srcOnly :: (Derivation | AttrSet) -> Derivation + ``` + + # Input + + `attrs` + + : One of the following: + + - A derivation with (at minimum) an unpackPhase and a patchPhase. + - A set of attributes that would be passed to a `stdenv.mkDerivation` or `stdenvNoCC.mkDerivation` call. + + # Output + + A derivation that runs a derivation's `unpackPhase` and `patchPhase`, and then copies the result to the output path. +*/ attrs: let From 2402f64fe9498708192b77b445ab2e5d121bb1ac Mon Sep 17 00:00:00 2001 From: Gavin John Date: Sat, 28 Sep 2024 15:43:20 -0700 Subject: [PATCH 0081/1574] doc/rl-2411: Document srcOnly changes --- nixos/doc/manual/release-notes/rl-2411.section.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2411.section.md b/nixos/doc/manual/release-notes/rl-2411.section.md index ced4c591e712..18f6b3a1d081 100644 --- a/nixos/doc/manual/release-notes/rl-2411.section.md +++ b/nixos/doc/manual/release-notes/rl-2411.section.md @@ -38,6 +38,8 @@ Users can use it by `services.displayManager.ly.enable` and config it by `services.displayManager.ly.settings` to generate `/etc/ly/config.ini` +- `srcOnly` was rewritten to be more readable, have additional warnings in the event that something is probably wrong, use the `stdenv` provided by the derivation, and Noogle-compatible documentation was added. + - The default sound server for most graphical sessions has been switched from PulseAudio to PipeWire. Users that want to keep PulseAudio will want to set `services.pipewire.enable = false;` and `hardware.pulseaudio.enable = true;`. There is currently no plan to fully deprecate and remove PulseAudio, however, PipeWire should generally be preferred for new installs. From fbcfd5812569148bac57d79ff27225b0afd3c205 Mon Sep 17 00:00:00 2001 From: Gavin John Date: Sun, 29 Sep 2024 09:56:58 -0700 Subject: [PATCH 0082/1574] treewide: specify stdenv in srcOnly calls --- pkgs/applications/editors/vscode/vscode.nix | 2 ++ pkgs/development/compilers/ghc/common-hadrian.nix | 3 +++ pkgs/development/tools/build-managers/gradle/update-deps.nix | 3 +++ 3 files changed, 8 insertions(+) diff --git a/pkgs/applications/editors/vscode/vscode.nix b/pkgs/applications/editors/vscode/vscode.nix index 35f6601d60be..5d1b5926f749 100644 --- a/pkgs/applications/editors/vscode/vscode.nix +++ b/pkgs/applications/editors/vscode/vscode.nix @@ -1,4 +1,5 @@ { stdenv +, stdenvNoCC , lib , callPackage , fetchurl @@ -70,6 +71,7 @@ in url = "https://update.code.visualstudio.com/commit:${rev}/server-linux-x64/stable"; sha256 = "0cxpv9q681nk7gjcs1msn2rnj8i86hlrkb0x4ja1id42aj4xwrqy"; }; + stdenv = stdenvNoCC; }; tests = { inherit (nixosTests) vscode-remote-ssh; }; diff --git a/pkgs/development/compilers/ghc/common-hadrian.nix b/pkgs/development/compilers/ghc/common-hadrian.nix index 31d1e52ea95b..e6b76dc8ac1e 100644 --- a/pkgs/development/compilers/ghc/common-hadrian.nix +++ b/pkgs/development/compilers/ghc/common-hadrian.nix @@ -10,6 +10,7 @@ { lib , stdenv +, stdenvNoCC , pkgsBuildTarget , pkgsHostTarget , targetPackages @@ -201,6 +202,8 @@ ++ lib.optionals (lib.elem version [ "9.8.1" "9.8.2" ]) [ ../../tools/haskell/hadrian/hadrian-9.8.1-allow-Cabal-3.10.patch ]; + + stdenv = stdenvNoCC; } # GHC's build system hadrian built from the GHC-to-build's source tree diff --git a/pkgs/development/tools/build-managers/gradle/update-deps.nix b/pkgs/development/tools/build-managers/gradle/update-deps.nix index 96e46a0d98fd..51959fa69f38 100644 --- a/pkgs/development/tools/build-managers/gradle/update-deps.nix +++ b/pkgs/development/tools/build-managers/gradle/update-deps.nix @@ -1,6 +1,7 @@ { lib , runtimeShell , srcOnly +, stdenvNoCC , writeTextFile , writeShellScript , path @@ -38,6 +39,8 @@ let source = srcOnly (pkg.overrideAttrs (old: { mitmCache = ""; gradleInitScript = ./init-deps.gradle; + + stdenv = old.stdenv or stdenvNoCC; })); sourceDrvPath = builtins.unsafeDiscardOutputDependency source.drvPath; nixShellKeep = lib.concatMapStringsSep " " (x: "--keep ${x}") keep; From 75000c10a64a8cb4d641fd8e3bf4981606ef355e Mon Sep 17 00:00:00 2001 From: oxalica Date: Sun, 1 Sep 2024 14:39:15 -0400 Subject: [PATCH 0083/1574] jq: migrate to by-name --- .../tools/jq/default.nix => by-name/jq/jq/package.nix} | 0 pkgs/top-level/all-packages.nix | 2 -- 2 files changed, 2 deletions(-) rename pkgs/{development/tools/jq/default.nix => by-name/jq/jq/package.nix} (100%) diff --git a/pkgs/development/tools/jq/default.nix b/pkgs/by-name/jq/jq/package.nix similarity index 100% rename from pkgs/development/tools/jq/default.nix rename to pkgs/by-name/jq/jq/package.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4374c589db4c..938fe5f6c8d1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8936,8 +8936,6 @@ with pkgs; jpylyzer = with python3Packages; toPythonApplication jpylyzer; - jq = callPackage ../development/tools/jq { }; - jiq = callPackage ../development/tools/misc/jiq { }; jql = callPackage ../development/tools/jql { }; From 75406713eb7daef7f4c9755c24638b7fec7be0a7 Mon Sep 17 00:00:00 2001 From: oxalica Date: Sun, 1 Sep 2024 15:08:48 -0400 Subject: [PATCH 0084/1574] jq: nuke references from "bin" to "man" and "doc" --- pkgs/by-name/jq/jq/package.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/jq/jq/package.nix b/pkgs/by-name/jq/jq/package.nix index 1443ca78371a..fa8e561b4856 100644 --- a/pkgs/by-name/jq/jq/package.nix +++ b/pkgs/by-name/jq/jq/package.nix @@ -61,10 +61,16 @@ stdenv.mkDerivation rec { # jq is linked to libjq: ++ lib.optional (!stdenv.hostPlatform.isDarwin) "LDFLAGS=-Wl,-rpath,\\\${libdir}"; - # Break the dependency cycle: $dev refers to $bin via propagated-build-outputs, and - # $bin refers to $dev because of https://github.com/jqlang/jq/commit/583e4a27188a2db097dd043dd203b9c106bba100 + # jq binary includes the whole `configureFlags` in: + # https://github.com/jqlang/jq/commit/583e4a27188a2db097dd043dd203b9c106bba100 + # Strip unnecessary dependencies here to reduce closure size and break the + # dependency cycle: $dev also refers to $bin via propagated-build-outputs postFixup = '' - remove-references-to -t "$dev" "$bin/bin/jq" + remove-references-to \ + -t "$dev" \ + -t "$man" \ + -t "$doc" \ + "$bin/bin/jq" ''; doInstallCheck = true; From 899a790d808e447bdf686009fd16386e21f0beb2 Mon Sep 17 00:00:00 2001 From: oxalica Date: Sun, 1 Sep 2024 15:10:46 -0400 Subject: [PATCH 0085/1574] jq: merge output "lib" into "out" --- pkgs/by-name/jq/jq/package.nix | 2 +- pkgs/development/r-modules/default.nix | 2 +- pkgs/development/tools/zsv/default.nix | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/jq/jq/package.nix b/pkgs/by-name/jq/jq/package.nix index fa8e561b4856..515923f78421 100644 --- a/pkgs/by-name/jq/jq/package.nix +++ b/pkgs/by-name/jq/jq/package.nix @@ -18,7 +18,7 @@ stdenv.mkDerivation rec { hash = "sha256-R4ycoSn9LjRD/icxS0VeIR4NjGC8j/ffcDhz3u7lgMI="; }; - outputs = [ "bin" "doc" "man" "dev" "lib" "out" ]; + outputs = [ "bin" "doc" "man" "dev" "out" ]; # https://github.com/jqlang/jq/issues/2871 postPatch = lib.optionalString stdenv.hostPlatform.isFreeBSD '' diff --git a/pkgs/development/r-modules/default.nix b/pkgs/development/r-modules/default.nix index 3ac1f52f2e76..1b3670f22a65 100644 --- a/pkgs/development/r-modules/default.nix +++ b/pkgs/development/r-modules/default.nix @@ -645,7 +645,7 @@ let SuperGauss = [ pkgs.pkg-config pkgs.fftw.dev]; specklestar = [ pkgs.fftw.dev ]; cartogramR = [ pkgs.fftw.dev ]; - jqr = [ pkgs.jq.lib ]; + jqr = [ pkgs.jq.out ]; kza = [ pkgs.pkg-config ]; igraph = with pkgs; [ gmp libxml2.dev glpk ]; interpolation = [ pkgs.gmp ]; diff --git a/pkgs/development/tools/zsv/default.nix b/pkgs/development/tools/zsv/default.nix index ee24281798d7..0cfc77d01074 100644 --- a/pkgs/development/tools/zsv/default.nix +++ b/pkgs/development/tools/zsv/default.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation rec { buildInputs = [ jq ]; configureFlags = [ - "--jq-prefix=${jq.lib}" + "--jq-prefix=${lib.getLib jq}" ]; meta = with lib; { From 519357453bdf2b417398059a5c00ad7081b3a671 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Mon, 30 Sep 2024 19:16:13 +0200 Subject: [PATCH 0086/1574] cups: 2.4.10 -> 2.4.11 Changes: https://github.com/OpenPrinting/cups/blob/v2.4.11/CHANGES.md --- pkgs/misc/cups/default.nix | 33 ++------------------------------- 1 file changed, 2 insertions(+), 31 deletions(-) diff --git a/pkgs/misc/cups/default.nix b/pkgs/misc/cups/default.nix index ffec1bd0792b..07542bfa633a 100644 --- a/pkgs/misc/cups/default.nix +++ b/pkgs/misc/cups/default.nix @@ -1,6 +1,5 @@ { lib, stdenv , fetchurl -, fetchpatch , pkg-config , removeReferencesTo , zlib @@ -24,43 +23,15 @@ stdenv.mkDerivation rec { pname = "cups"; - version = "2.4.10"; + version = "2.4.11"; src = fetchurl { url = "https://github.com/OpenPrinting/cups/releases/download/v${version}/cups-${version}-source.tar.gz"; - sha256 = "sha256-11dXwrwPeiiwLuTVLKnksaoboq/+FrmFhU9TNpQOWtc="; + hash = "sha256-moj+HaOimpF8P8Z85usxeDmdaOGlSMbYbHDZsTZR/XE="; }; outputs = [ "out" "lib" "dev" "man" ]; - patches = [ - (fetchpatch { - name = "CVE-2024-47175_0.patch"; - url = "https://github.com/OpenPrinting/cups/commit/9939a70b750edd9d05270060cc5cf62ca98cfbe5.patch"; - hash = "sha256-Nt6/JwoaHkzFxCl1BuXOQRfki8Oquk2rIwvw7qekTQI="; - }) - (fetchpatch { - name = "CVE-2024-47175_1.patch"; - url = "https://github.com/OpenPrinting/cups/commit/04bb2af4521b56c1699a2c2431c56c05a7102e69.patch"; - hash = "sha256-ZyvVAv96pK6ldSQf5IOiIXk8xYeNJOWNHX0S5pyn6pw="; - }) - (fetchpatch { - name = "CVE-2024-47175_2.patch"; - url = "https://github.com/OpenPrinting/cups/commit/e0630cd18f76340d302000f2bf6516e99602b844.patch"; - hash = "sha256-uDUOIwkRGZo+XXheDt+HGsXujtEJ3b4o5yNWdnz5uIY="; - }) - (fetchpatch { - name = "CVE-2024-47175_3.patch"; - url = "https://github.com/OpenPrinting/cups/commit/1e6ca5913eceee906038bc04cc7ccfbe2923bdfd.patch"; - hash = "sha256-SiYUsa+DUNPua0/r/rvzzRAYra2AP49ImbyWG5RnCI0="; - }) - (fetchpatch { - name = "CVE-2024-47175_4.patch"; - url = "https://github.com/OpenPrinting/cups/commit/2abe1ba8a66864aa82cd9836b37e57103b8e1a3b.patch"; - hash = "sha256-oeZ3nNmPMkusxZhmmKOCcD/AD+QzkVE8acNXapGK/Ew="; - }) - ]; - postPatch = '' substituteInPlace cups/testfile.c \ --replace 'cupsFileFind("cat", "/bin' 'cupsFileFind("cat", "${coreutils}/bin' From 32ddebd1e382a54464b82f9c19e9dae3bd229a68 Mon Sep 17 00:00:00 2001 From: oxalica Date: Thu, 5 Jan 2023 09:15:20 +0800 Subject: [PATCH 0087/1574] fuse: split outputs and clean up `fuse` consists of the library and SUID binaries. They serve different scenarios. Packages depending on libfuse don't want to pull in binaries which shadow SUID ones like `fusermount` and cause troubles. With outputs splitted, we can use `fuse.dev` in development environment without risking shadowing SUID binaries. The `common` output and top-level `fuse-common` are removed because they are not useful since a long time ago. --- pkgs/os-specific/linux/fuse/common.nix | 151 ++++++++++++++++--------- pkgs/top-level/aliases.nix | 1 + pkgs/top-level/all-packages.nix | 1 - 3 files changed, 97 insertions(+), 56 deletions(-) diff --git a/pkgs/os-specific/linux/fuse/common.nix b/pkgs/os-specific/linux/fuse/common.nix index cadf176b7c6e..be73e16c8083 100644 --- a/pkgs/os-specific/linux/fuse/common.nix +++ b/pkgs/os-specific/linux/fuse/common.nix @@ -1,15 +1,25 @@ { version, hash }: -{ lib, stdenv, fetchFromGitHub, fetchpatch -, fusePackages, util-linux, gettext, shadow -, meson, ninja, pkg-config -, autoreconfHook -, python3Packages, which +{ + lib, + stdenv, + fetchFromGitHub, + fetchpatch, + fusePackages, + util-linux, + gettext, + shadow, + meson, + ninja, + pkg-config, + autoreconfHook, + runtimeShell, }: let isFuse3 = lib.hasPrefix "3" version; -in stdenv.mkDerivation rec { +in +stdenv.mkDerivation rec { pname = "fuse"; inherit version; @@ -23,27 +33,46 @@ in stdenv.mkDerivation rec { preAutoreconf = "touch config.rpath"; patches = - lib.optional - (!isFuse3 && (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isLoongArch64)) + lib.optional (!isFuse3 && (stdenv.hostPlatform.isAarch64 || stdenv.hostPlatform.isLoongArch64)) (fetchpatch { url = "https://github.com/libfuse/libfuse/commit/914871b20a901e3e1e981c92bc42b1c93b7ab81b.patch"; sha256 = "1w4j6f1awjrycycpvmlv0x5v9gprllh4dnbjxl4dyl2jgbkaw6pa"; }) - ++ (if isFuse3 - then [ ./fuse3-install.patch ./fuse3-Do-not-set-FUSERMOUNT_DIR.patch ] - else [ - ./fuse2-Do-not-set-FUSERMOUNT_DIR.patch - (fetchpatch { - url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-fs/fuse/files/fuse-2.9.9-closefrom-glibc-2-34.patch?id=8a970396fca7aca2d5a761b8e7a8242f1eef14c9"; - sha256 = "sha256-ELYBW/wxRcSMssv7ejCObrpsJHtOPJcGq33B9yHQII4="; - }) - ]); + ++ ( + if isFuse3 then + [ + ./fuse3-install.patch + ./fuse3-Do-not-set-FUSERMOUNT_DIR.patch + ] + else + [ + ./fuse2-Do-not-set-FUSERMOUNT_DIR.patch + (fetchpatch { + url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/sys-fs/fuse/files/fuse-2.9.9-closefrom-glibc-2-34.patch?id=8a970396fca7aca2d5a761b8e7a8242f1eef14c9"; + sha256 = "sha256-ELYBW/wxRcSMssv7ejCObrpsJHtOPJcGq33B9yHQII4="; + }) + ] + ); - nativeBuildInputs = if isFuse3 - then [ meson ninja pkg-config ] - else [ autoreconfHook gettext ]; + nativeBuildInputs = + if isFuse3 then + [ + meson + ninja + pkg-config + ] + else + [ + autoreconfHook + gettext + ]; - outputs = [ "out" ] ++ lib.optional isFuse3 "common"; + outputs = [ + "bin" + "out" + "dev" + "man" + ] ++ lib.optional isFuse3 "udev"; mesonFlags = lib.optionals isFuse3 [ "-Dudevrulesdir=/udev/rules.d" @@ -51,45 +80,50 @@ in stdenv.mkDerivation rec { "-Dinitscriptdir=" ]; - preConfigure = '' - export MOUNT_FUSE_PATH=$out/sbin - export INIT_D_PATH=$TMPDIR/etc/init.d - export UDEV_RULES_PATH=$out/etc/udev/rules.d + # Ensure that FUSE calls the setuid wrapper, not + # $out/bin/fusermount. It falls back to calling fusermount in + # $PATH, so it should also work on non-NixOS systems. + NIX_CFLAGS_COMPILE = ''-DFUSERMOUNT_DIR="/run/wrappers/bin"''; - # Ensure that FUSE calls the setuid wrapper, not - # $out/bin/fusermount. It falls back to calling fusermount in - # $PATH, so it should also work on non-NixOS systems. - export NIX_CFLAGS_COMPILE="-DFUSERMOUNT_DIR=\"/run/wrappers/bin\"" + preConfigure = + '' + substituteInPlace lib/mount_util.c \ + --replace-fail "/bin/mount" "${lib.getBin util-linux}/bin/mount" \ + --replace-fail "/bin/umount" "${lib.getBin util-linux}/bin/umount" + substituteInPlace util/mount.fuse.c \ + --replace-fail "/bin/sh" "${runtimeShell}" + '' + + lib.optionalString (!isFuse3) '' + export MOUNT_FUSE_PATH=$bin/bin - substituteInPlace lib/mount_util.c --replace "/bin/" "${util-linux}/bin/" - '' + (if isFuse3 then '' - # The configure phase will delete these files (temporary workaround for - # ./fuse3-install_man.patch) - install -D -m444 doc/fusermount3.1 $out/share/man/man1/fusermount3.1 - install -D -m444 doc/mount.fuse3.8 $out/share/man/man8/mount.fuse3.8 - '' else '' - substituteInPlace util/mount.fuse.c --replace '"su"' '"${shadow.su}/bin/su"' - sed -e 's@CONFIG_RPATH=/usr/share/gettext/config.rpath@CONFIG_RPATH=${gettext}/share/gettext/config.rpath@' -i makeconf.sh + # Do not install these files for fuse2 which are not useful for NixOS. + export INIT_D_PATH=$TMPDIR/etc/init.d + export UDEV_RULES_PATH=$TMPDIR/etc/udev/rules.d + + # This is for `setuid=`, and needs root permission anyway. + # No need to use the SUID wrapper. + substituteInPlace util/mount.fuse.c \ + --replace-fail '"su"' '"${lib.getBin shadow.su}/bin/su"' + substituteInPlace makeconf.sh \ + --replace-fail 'CONFIG_RPATH=/usr/share/gettext/config.rpath' 'CONFIG_RPATH=${lib.getLib gettext}/share/gettext/config.rpath' ./makeconf.sh - ''); + ''; - nativeCheckInputs = [ which ] ++ (with python3Packages; [ python pytest ]); + # v2: no tests, v3: all tests get skipped in a sandbox + doCheck = false; - checkPhase = '' - python3 -m pytest test/ + # Drop `/etc/fuse.conf` because it is a no-op config and + # would conflict with our fuse module. + postInstall = lib.optionalString isFuse3 '' + rm $out/etc/fuse.conf + mkdir $udev + mv $out/etc $udev ''; - doCheck = false; # v2: no tests, v3: all tests get skipped in a sandbox + # Don't pull in SUID `fusermount{,3}` binaries into development environment. + propagatedBuildOutputs = [ "out" ]; - postFixup = "cd $out\n" + (if isFuse3 then '' - install -D -m444 etc/fuse.conf $common/etc/fuse.conf - install -D -m444 etc/udev/rules.d/99-fuse3.rules $common/etc/udev/rules.d/99-fuse.rules - '' else '' - cp ${fusePackages.fuse_3.common}/etc/fuse.conf etc/fuse.conf - cp ${fusePackages.fuse_3.common}/etc/udev/rules.d/99-fuse.rules etc/udev/rules.d/99-fuse.rules - ''); - - meta = with lib; { + meta = { description = "Library that allows filesystems to be implemented in user space"; longDescription = '' FUSE (Filesystem in Userspace) is an interface for userspace programs to @@ -101,8 +135,15 @@ in stdenv.mkDerivation rec { ''; homepage = "https://github.com/libfuse/libfuse"; changelog = "https://github.com/libfuse/libfuse/releases/tag/fuse-${version}"; - platforms = platforms.linux; - license = with licenses; [ gpl2Only lgpl21Only ]; - maintainers = [ maintainers.primeos ]; + platforms = lib.platforms.linux; + license = with lib.licenses; [ + gpl2Only + lgpl21Only + ]; + maintainers = with lib.maintainers; [ + primeos + oxalica + ]; + outputsToInstall = [ "bin" ]; }; } diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index beecd289555f..f25109f94ceb 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -500,6 +500,7 @@ mapAliases { fritzprofiles = throw "fritzprofiles was removed from nixpkgs, because it was removed as dependency of home-assistant for which it was pacakged."; # added 2024-01-05 frostwire = throw "frostwire was removed, as it was broken due to reproducibility issues, use `frostwire-bin` package instead."; # added 2024-05-17 fuse2fs = if stdenv.hostPlatform.isLinux then e2fsprogs.fuse2fs else null; # Added 2022-03-27 preserve, reason: convenience, arch has a package named fuse2fs too. + fuse-common = throw "fuse-common was removed, because the udev rule was early included by systemd-udevd and the config is done by NixOS module `programs.fuse`"; # added 2024-09-29 futuresql = libsForQt5.futuresql; # added 2023-11-11 fx_cast_bridge = fx-cast-bridge; # added 2023-07-26 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a614f8a195d6..06a696befcbe 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -25841,7 +25841,6 @@ with pkgs; fuse = fuse2; fuse2 = lowPrio (if stdenv.hostPlatform.isDarwin then macfuse-stubs else fusePackages.fuse_2); fuse3 = fusePackages.fuse_3; - fuse-common = hiPrio fusePackages.fuse_3.common; fxload = callPackage ../os-specific/linux/fxload { }; From bd5910e375a1d3aa45e53ad3b61015059078a74b Mon Sep 17 00:00:00 2001 From: oxalica Date: Thu, 5 Jan 2023 10:58:35 +0800 Subject: [PATCH 0088/1574] xtreemfs: fix fuse path --- pkgs/tools/filesystems/xtreemfs/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/filesystems/xtreemfs/default.nix b/pkgs/tools/filesystems/xtreemfs/default.nix index ebdfb237442d..7d43a440ed61 100644 --- a/pkgs/tools/filesystems/xtreemfs/default.nix +++ b/pkgs/tools/filesystems/xtreemfs/default.nix @@ -72,7 +72,7 @@ stdenv.mkDerivation { --replace "/usr/local" "${valgrind}" substituteInPlace cpp/CMakeLists.txt \ - --replace '"/lib64" "/usr/lib64"' '"${attr.out}/lib" "${fuse}/lib"' + --replace '"/lib64" "/usr/lib64"' '"${attr.out}/lib" "${lib.getLib fuse}/lib"' export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${fuse}/include" export NIX_CFLAGS_LINK="$NIX_CFLAGS_LINK -L${fuse}/lib" From eeb94ed42c4133f62f3faa98992c4240a190e284 Mon Sep 17 00:00:00 2001 From: oxalica Date: Thu, 5 Jan 2023 10:59:02 +0800 Subject: [PATCH 0089/1574] unionfs-fuse: fix fuse path --- pkgs/tools/filesystems/unionfs-fuse/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/filesystems/unionfs-fuse/default.nix b/pkgs/tools/filesystems/unionfs-fuse/default.nix index 2518cfb24ba3..6f55dbe426a6 100644 --- a/pkgs/tools/filesystems/unionfs-fuse/default.nix +++ b/pkgs/tools/filesystems/unionfs-fuse/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' substituteInPlace CMakeLists.txt \ - --replace '/usr/local/include/osxfuse/fuse' '${fuse}/include/fuse' + --replace '/usr/local/include/osxfuse/fuse' '${lib.getDev fuse}/include/fuse' ''; nativeBuildInputs = [ cmake ]; From 84acfec68b9a41e0dcc6989dafacc7827cd5e781 Mon Sep 17 00:00:00 2001 From: oxalica Date: Thu, 5 Jan 2023 10:59:17 +0800 Subject: [PATCH 0090/1574] pythonPackages.fusepy: fix fuse path --- pkgs/development/python-modules/fusepy/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/fusepy/default.nix b/pkgs/development/python-modules/fusepy/default.nix index 6e33666d6951..01c858c72906 100644 --- a/pkgs/development/python-modules/fusepy/default.nix +++ b/pkgs/development/python-modules/fusepy/default.nix @@ -25,7 +25,7 @@ buildPythonPackage rec { # be able to find libfuse in /usr/local/lib. patchPhase = lib.optionalString (!stdenv.hostPlatform.isDarwin) '' substituteInPlace fuse.py --replace \ - "find_library('fuse')" "'${pkgs.fuse}/lib/libfuse.so'" + "find_library('fuse')" "'${lib.getLib pkgs.fuse}/lib/libfuse.so'" ''; meta = with lib; { From c7c65ef049521b8f0ba3780f0ea51a272490b896 Mon Sep 17 00:00:00 2001 From: oxalica Date: Thu, 5 Jan 2023 11:01:00 +0800 Subject: [PATCH 0091/1574] acd_cli: fix fuse path --- pkgs/applications/networking/sync/acd_cli/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/applications/networking/sync/acd_cli/default.nix b/pkgs/applications/networking/sync/acd_cli/default.nix index fd7c37e58962..78453da19d16 100644 --- a/pkgs/applications/networking/sync/acd_cli/default.nix +++ b/pkgs/applications/networking/sync/acd_cli/default.nix @@ -18,7 +18,7 @@ buildPythonApplication rec { propagatedBuildInputs = [ appdirs colorama python-dateutil fusepy requests requests-toolbelt setuptools sqlalchemy ]; - makeWrapperArgs = [ "--prefix LIBFUSE_PATH : ${fuse}/lib/libfuse.so" ]; + makeWrapperArgs = [ "--prefix LIBFUSE_PATH : ${lib.getLib fuse}/lib/libfuse.so" ]; postFixup = '' function lnOverBin() { From f534f74249e9e182dbf783891adcce1a0b51a865 Mon Sep 17 00:00:00 2001 From: oxalica Date: Sat, 7 Jan 2023 21:16:22 +0800 Subject: [PATCH 0092/1574] nixos/security/wrappers: fix fuse path --- nixos/modules/security/wrappers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nixos/modules/security/wrappers/default.nix b/nixos/modules/security/wrappers/default.nix index b5dae96d79c6..b95e3e1c7ce2 100644 --- a/nixos/modules/security/wrappers/default.nix +++ b/nixos/modules/security/wrappers/default.nix @@ -249,8 +249,8 @@ in }; in { # These are mount related wrappers that require the +s permission. - fusermount = mkSetuidRoot "${pkgs.fuse}/bin/fusermount"; - fusermount3 = mkSetuidRoot "${pkgs.fuse3}/bin/fusermount3"; + fusermount = mkSetuidRoot "${lib.getBin pkgs.fuse}/bin/fusermount"; + fusermount3 = mkSetuidRoot "${lib.getBin pkgs.fuse3}/bin/fusermount3"; mount = mkSetuidRoot "${lib.getBin pkgs.util-linux}/bin/mount"; umount = mkSetuidRoot "${lib.getBin pkgs.util-linux}/bin/umount"; }; From f978ecc43e7748b22014ee4db63dce5c16dbb7d5 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 24 Mar 2024 01:38:18 +0100 Subject: [PATCH 0093/1574] procps: 3.3.17 -> 4.0.4 Changes: https://gitlab.com/procps-ng/procps/-/releases/v4.0.0 https://gitlab.com/procps-ng/procps/-/releases/v4.0.3 https://gitlab.com/procps-ng/procps/-/releases/v4.0.4 --- pkgs/os-specific/linux/procps-ng/default.nix | 21 ++----- .../linux/procps-ng/v3-CVE-2023-4016.patch | 63 ------------------- 2 files changed, 5 insertions(+), 79 deletions(-) delete mode 100644 pkgs/os-specific/linux/procps-ng/v3-CVE-2023-4016.patch diff --git a/pkgs/os-specific/linux/procps-ng/default.nix b/pkgs/os-specific/linux/procps-ng/default.nix index 32a7f7865b12..d54b7703e2df 100644 --- a/pkgs/os-specific/linux/procps-ng/default.nix +++ b/pkgs/os-specific/linux/procps-ng/default.nix @@ -3,7 +3,7 @@ , fetchurl , ncurses , pkg-config -, fetchpatch +, autoreconfHook # `ps` with systemd support is able to properly report different # attributes like unit name, so we want to have it on linux. @@ -22,29 +22,17 @@ stdenv.mkDerivation rec { pname = "procps"; - version = "3.3.17"; + version = "4.0.4"; # The project's releases are on SF, but git repo on gitlab. src = fetchurl { url = "mirror://sourceforge/procps-ng/procps-ng-${version}.tar.xz"; - sha256 = "sha256-RRiz56r9NOwH0AY9JQ/UdJmbILIAIYw65W9dIRPxQbQ="; + hash = "sha256-IocNb+skeK22F85PCaeHrdry0mDFqKp7F9iJqWLF5C4="; }; - patches = [ - ./v3-CVE-2023-4016.patch - ] ++ lib.optionals stdenv.hostPlatform.isMusl [ - # NOTE: Starting from 4.x we will not need a patch anymore, but need to add - # "--disable-w" to configureFlags instead to prevent the utmp errors - (fetchpatch { - name = "musl-fix-includes.patch"; - url = "https://git.alpinelinux.org/aports/plain/main/procps/musl-fixes.patch?id=37cb5b6ef194db66d9ed07c8ecab59bca3b91215"; - sha256 = "sha256-DphAvESmVg1U3bJABU95R++QD34odStCl82EF0vmht0="; - }) - ]; - buildInputs = [ ncurses ] ++ lib.optional withSystemd systemd; - nativeBuildInputs = [ pkg-config ]; + nativeBuildInputs = [ pkg-config autoreconfHook ]; makeFlags = [ "usrbin_execdir=$(out)/bin" ] ++ lib.optionals watchOnly [ "watch" "PKG_LDFLAGS=" ]; @@ -54,6 +42,7 @@ stdenv.mkDerivation rec { # Too red; 8bit support for fixing https://github.com/NixOS/nixpkgs/issues/275220 configureFlags = [ "--disable-modern-top" "--enable-watch8bit" ] ++ lib.optional withSystemd "--with-systemd" + ++ lib.optional stdenv.hostPlatform.isMusl "--disable-w" ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [ "ac_cv_func_malloc_0_nonnull=yes" "ac_cv_func_realloc_0_nonnull=yes" diff --git a/pkgs/os-specific/linux/procps-ng/v3-CVE-2023-4016.patch b/pkgs/os-specific/linux/procps-ng/v3-CVE-2023-4016.patch deleted file mode 100644 index 2e260eaf7382..000000000000 --- a/pkgs/os-specific/linux/procps-ng/v3-CVE-2023-4016.patch +++ /dev/null @@ -1,63 +0,0 @@ -This is https://gitlab.com/procps-ng/procps/-/commit/2c933ecba3bb1d3041a5a7a53a7b4078a6003413.diff -back-ported to procps 3.3.17. That commit changes xmalloc to xcalloc. This patch differs in two ways: - -* We modify it to change malloc (no x-) to xcalloc instead -* We pull in procps-4's definition of xcalloc - -Alternative considered: Also pull in commits that changed malloc to xmalloc and defined xcalloc. -This alternative is rejected because those commits contain many other unrelated changes. - -diff --git a/ps/parser.c b/ps/parser.c -index 4263a1fb..ee9a57d9 100644 ---- a/ps/parser.c -+++ b/ps/parser.c -@@ -36,6 +36,14 @@ - #include "common.h" - #include "c.h" - -+static void *xxcalloc(const size_t nelems, const size_t size) -+{ -+ void *ret = calloc(nelems, size); -+ if (!ret && size && nelems) -+ xerrx(EXIT_FAILURE, "cannot allocate %zu bytes", nelems*size); -+ return ret; -+} -+ - #define ARG_GNU 0 - #define ARG_END 1 - #define ARG_PGRP 2 -@@ -184,7 +192,6 @@ static const char *parse_list(const char *arg, const char *(*parse_fn)(char *, s - const char *err; /* error code that could or did happen */ - /*** prepare to operate ***/ - node = malloc(sizeof(selection_node)); -- node->u = malloc(strlen(arg)*sizeof(sel_union)); /* waste is insignificant */ - node->n = 0; - buf = strdup(arg); - /*** sanity check and count items ***/ -@@ -205,6 +212,7 @@ static const char *parse_list(const char *arg, const char *(*parse_fn)(char *, s - } while (*++walk); - if(need_item) goto parse_error; - node->n = items; -+ node->u = xxcalloc(items, sizeof(sel_union)); - /*** actually parse the list ***/ - walk = buf; - while(items--){ -@@ -1031,15 +1039,15 @@ static const char *parse_trailing_pids(void){ - thisarg = ps_argc - 1; /* we must be at the end now */ - - pidnode = malloc(sizeof(selection_node)); -- pidnode->u = malloc(i*sizeof(sel_union)); /* waste is insignificant */ -+ pidnode->u = xxcalloc(i, sizeof(sel_union)); /* waste is insignificant */ - pidnode->n = 0; - - grpnode = malloc(sizeof(selection_node)); -- grpnode->u = malloc(i*sizeof(sel_union)); /* waste is insignificant */ -+ grpnode->u = xxcalloc(i, sizeof(sel_union)); /* waste is insignificant */ - grpnode->n = 0; - - sidnode = malloc(sizeof(selection_node)); -- sidnode->u = malloc(i*sizeof(sel_union)); /* waste is insignificant */ -+ sidnode->u = xxcalloc(i, sizeof(sel_union)); /* waste is insignificant */ - sidnode->n = 0; - - while(i--){ From 8878d5a6826c6458c2f85e3d62506dd36017d26f Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Sun, 30 Jun 2024 18:48:49 +0200 Subject: [PATCH 0094/1574] procps: remove typeteris from the maintainers https://github.com/NixOS/nixpkgs/pull/298505#issuecomment-2198112591 --- pkgs/os-specific/linux/procps-ng/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/os-specific/linux/procps-ng/default.nix b/pkgs/os-specific/linux/procps-ng/default.nix index d54b7703e2df..6d9bcf9a3a0b 100644 --- a/pkgs/os-specific/linux/procps-ng/default.nix +++ b/pkgs/os-specific/linux/procps-ng/default.nix @@ -65,6 +65,6 @@ stdenv.mkDerivation rec { priority = 11; # less than coreutils, which also provides "kill" and "uptime" license = licenses.gpl2Plus; platforms = platforms.unix; - maintainers = [ maintainers.typetetris ]; + maintainers = [ ]; }; } From 84395979f64b240a0cb9fa0b598745d08f85a7bb Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Tue, 1 Oct 2024 07:22:30 +0100 Subject: [PATCH 0095/1574] libnetfilter_conntrack: 1.0.9 -> 1.1.0 Changes: https://git.netfilter.org/libnetfilter_conntrack/log/?h=libnetfilter_conntrack-1.1.0 --- .../libnetfilter_conntrack/default.nix | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) diff --git a/pkgs/development/libraries/libnetfilter_conntrack/default.nix b/pkgs/development/libraries/libnetfilter_conntrack/default.nix index c424879a8191..e056eddcb1ab 100644 --- a/pkgs/development/libraries/libnetfilter_conntrack/default.nix +++ b/pkgs/development/libraries/libnetfilter_conntrack/default.nix @@ -1,28 +1,22 @@ -{ lib, stdenv, fetchurl, fetchpatch, pkg-config, libnfnetlink, libmnl }: +{ lib, stdenv, fetchurl, pkg-config, libnfnetlink, libmnl }: stdenv.mkDerivation rec { pname = "libnetfilter_conntrack"; - version = "1.0.9"; + version = "1.1.0"; src = fetchurl { - url = "https://netfilter.org/projects/libnetfilter_conntrack/files/${pname}-${version}.tar.bz2"; - sha256 = "sha256-Z72d9J/jTouCFE9t+5OzIPOEqOpZcn6S/40YtfS1eag="; + url = "https://netfilter.org/projects/libnetfilter_conntrack/files/${pname}-${version}.tar.xz"; + hash = "sha256-Z+3LTrgmwvjcmK8I2r/2jzs9D+b7fZ0Kwe5+zOD+aU4="; }; - patches = [ - # Fix Musl build. - (fetchpatch { - url = "https://git.netfilter.org/libnetfilter_conntrack/patch/?id=21ee35dde73aec5eba35290587d479218c6dd824"; - sha256 = "00rp82jrx5ygcw8la3c7bv7sigw9qzbn956dk71qjx981a2g2kqk"; - }) - ]; - hardeningDisable = [ "trivialautovarinit" ]; buildInputs = [ libmnl ]; propagatedBuildInputs = [ libnfnetlink ]; nativeBuildInputs = [ pkg-config ]; + enableParallelBuilding = true; + meta = with lib; { description = "Userspace library providing an API to the in-kernel connection tracking state table"; longDescription = '' From 0771a6e1dcd6e7133b7fe84507ba8163a810f750 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 2 Oct 2024 06:37:51 +0100 Subject: [PATCH 0096/1574] xz: 5.6.2 -> 5.6.3 Changes: https://github.com/tukaani-project/xz/releases/tag/v5.6.3 --- pkgs/tools/compression/xz/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/compression/xz/default.nix b/pkgs/tools/compression/xz/default.nix index 6220d56b15a2..c05350ba9b64 100644 --- a/pkgs/tools/compression/xz/default.nix +++ b/pkgs/tools/compression/xz/default.nix @@ -11,11 +11,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "xz"; - version = "5.6.2"; + version = "5.6.3"; src = fetchurl { url = with finalAttrs; "https://github.com/tukaani-project/xz/releases/download/v${version}/xz-${version}.tar.xz"; - hash = "sha256-qds7s9ZOJIoPrpY/j7a6hRomuhgi5QTcDv0YqAxibK8="; + hash = "sha256-2wWQYptvD6NudK6l+XMdxvjfBoznt7r6RTAYMqXuvDo="; }; strictDeps = true; From 12061e0e5be689bc3231cf0dc89c3f716b9d7525 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Wed, 2 Oct 2024 06:59:28 +0100 Subject: [PATCH 0097/1574] xkeyboard_config: 2.42 -> 2.43 Changes: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/blob/xkeyboard-config-2.43/ChangeLog.md --- pkgs/servers/x11/xorg/default.nix | 6 +++--- pkgs/servers/x11/xorg/tarballs.list | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/x11/xorg/default.nix b/pkgs/servers/x11/xorg/default.nix index a7c5aa884d2f..6b118c72e2f6 100644 --- a/pkgs/servers/x11/xorg/default.nix +++ b/pkgs/servers/x11/xorg/default.nix @@ -3898,11 +3898,11 @@ self: with self; { # THIS IS A GENERATED FILE. DO NOT EDIT! xkeyboardconfig = callPackage ({ stdenv, pkg-config, fetchurl, testers }: stdenv.mkDerivation (finalAttrs: { pname = "xkeyboard-config"; - version = "2.42"; + version = "2.43"; builder = ./builder.sh; src = fetchurl { - url = "mirror://xorg/individual/data/xkeyboard-config/xkeyboard-config-2.42.tar.xz"; - sha256 = "01q8gs7lnx9d7iz29pal7a3whz7njmgjcpzhy82wa7zhq6znxc56"; + url = "mirror://xorg/individual/data/xkeyboard-config/xkeyboard-config-2.43.tar.xz"; + sha256 = "00bcs1yj57jbgw1zcilz6f4rgjaj2k6k87m8kpl4x0rar1ig6468"; }; hardeningDisable = [ "bindnow" "relro" ]; strictDeps = true; diff --git a/pkgs/servers/x11/xorg/tarballs.list b/pkgs/servers/x11/xorg/tarballs.list index 2575b47dd271..878749ff298d 100644 --- a/pkgs/servers/x11/xorg/tarballs.list +++ b/pkgs/servers/x11/xorg/tarballs.list @@ -73,7 +73,7 @@ mirror://xorg/individual/app/xwininfo-1.1.6.tar.xz mirror://xorg/individual/app/xwud-1.0.6.tar.xz mirror://xorg/individual/data/xbitmaps-1.1.3.tar.xz mirror://xorg/individual/data/xcursor-themes-1.0.7.tar.xz -mirror://xorg/individual/data/xkeyboard-config/xkeyboard-config-2.42.tar.xz +mirror://xorg/individual/data/xkeyboard-config/xkeyboard-config-2.43.tar.xz mirror://xorg/individual/doc/xorg-docs-1.7.3.tar.xz mirror://xorg/individual/doc/xorg-sgml-doctools-1.12.1.tar.xz mirror://xorg/individual/driver/xf86-input-evdev-2.10.6.tar.bz2 From 16478834f4c19c2b3df99b7e130f7df89215ef0e Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Wed, 2 Oct 2024 16:43:08 +0200 Subject: [PATCH 0098/1574] hdf5: 1.14.4.3 -> 1.14.5 --- pkgs/tools/misc/hdf5/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/hdf5/default.nix b/pkgs/tools/misc/hdf5/default.nix index 80f7c151bf95..e88f591128f6 100644 --- a/pkgs/tools/misc/hdf5/default.nix +++ b/pkgs/tools/misc/hdf5/default.nix @@ -28,7 +28,7 @@ assert !cppSupport || !mpiSupport; let inherit (lib) optional optionals; in stdenv.mkDerivation rec { - version = "1.14.4.3"; + version = "1.14.5"; pname = "hdf5" + lib.optionalString cppSupport "-cpp" + lib.optionalString fortranSupport "-fortran" @@ -39,7 +39,7 @@ stdenv.mkDerivation rec { owner = "HDFGroup"; repo = "hdf5"; rev = "hdf5_${version}"; - hash = "sha256-lvz3x04SS0oZmUn/BIxQEHnugaDOws46kfT3NAw7Hos="; + hash = "sha256-bvtSeyqqrBXVAMzUtiKOhO9RR4SCO+3GnsLux4Mig6I="; }; passthru = { From 983258c7da8c36cfdf106db87613be4577c0ad0a Mon Sep 17 00:00:00 2001 From: ajs124 Date: Wed, 2 Oct 2024 19:32:53 +0200 Subject: [PATCH 0099/1574] lvm2: 2.03.26 -> 2.03.27 https://gitlab.com/lvmteam/lvm2/-/blob/v2_03_27/WHATS_NEW --- pkgs/os-specific/linux/lvm2/2_03.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/lvm2/2_03.nix b/pkgs/os-specific/linux/lvm2/2_03.nix index ad559a6c2bb6..560980f6002f 100644 --- a/pkgs/os-specific/linux/lvm2/2_03.nix +++ b/pkgs/os-specific/linux/lvm2/2_03.nix @@ -1,4 +1,4 @@ import ./common.nix { - version = "2.03.26"; - hash = "sha256-cuqLTw4WEN5dEZKWsV7yoiA0MQiVQdy+vGY2H2X7NfU="; + version = "2.03.27"; + hash = "sha256-MTNBWQW5tG0VLQZIZdUvMu7k/L6w6KaeNRDK6q4MVqk="; } From 6f7657be4c73074053d7ba31cd1b05e076190ef9 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 3 Oct 2024 04:06:41 +0000 Subject: [PATCH 0100/1574] openexr_3: 3.2.4 -> 3.3.0 --- pkgs/development/libraries/openexr/3.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/openexr/3.nix b/pkgs/development/libraries/openexr/3.nix index 56562f771698..44a50ba52c7c 100644 --- a/pkgs/development/libraries/openexr/3.nix +++ b/pkgs/development/libraries/openexr/3.nix @@ -10,13 +10,13 @@ stdenv.mkDerivation rec { pname = "openexr"; - version = "3.2.4"; + version = "3.3.0"; src = fetchFromGitHub { owner = "AcademySoftwareFoundation"; repo = "openexr"; rev = "v${version}"; - hash = "sha256-mVUxxYe6teiJ18PQ9703/kjBpJ9+a7vcDme+NwtQQQM="; + hash = "sha256-/B0IMbPnixLR10KrE2n9n2Ny/pLIsG6DpBJn8Ax79oE="; }; outputs = [ "bin" "dev" "out" "doc" ]; From 5ae5bd1c9a47be0ec6553fb10f13e007c3ee6886 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Thu, 3 Oct 2024 04:35:25 +0000 Subject: [PATCH 0101/1574] amf-headers: 1.4.34 -> 1.4.35 --- pkgs/development/libraries/amf-headers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/amf-headers/default.nix b/pkgs/development/libraries/amf-headers/default.nix index 04f2e6c1385b..f6cb9aafbb10 100644 --- a/pkgs/development/libraries/amf-headers/default.nix +++ b/pkgs/development/libraries/amf-headers/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "amf-headers"; - version = "1.4.34"; + version = "1.4.35"; src = fetchFromGitHub { owner = "GPUOpen-LibrariesAndSDKs"; repo = "AMF"; rev = "v${version}"; - sha256 = "sha256-AASoThCzyFharXrprUalOMufz/DDtzlc97q/dQk7B6Y="; + sha256 = "sha256-QhiM9JMEVbkTiY03hOWj0hYjHbf5lEZUz597+d3zY5E="; }; installPhase = '' From 6d24a9cf8384b08625e721c5a288b15a09abf7c8 Mon Sep 17 00:00:00 2001 From: Marcin Serwin Date: Thu, 3 Oct 2024 08:41:35 +0200 Subject: [PATCH 0102/1574] xmlto: Use non-namespaced stylesheets c1ae842f7c13b3cfcbccad6da0667e0674ec5cba changed `xmlto` to use docbook stylesheets from the nix store instead of downloading them. However, it used the namespaced version despite the URI being for non-namespaced version, causing problems with generated man pages as reported in https://github.com/NixOS/nixpkgs/pull/301631#issuecomment-2132169659, https://github.com/NixOS/nixpkgs/issues/299081#issuecomment-2266028957, and https://github.com/NixOS/nixpkgs/issues/339078. This patch fixes the issue by pointing to `nons` version of the stylesheets. --- pkgs/tools/typesetting/xmlto/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/typesetting/xmlto/default.nix b/pkgs/tools/typesetting/xmlto/default.nix index a29ef2aaed69..dc8d14793b75 100644 --- a/pkgs/tools/typesetting/xmlto/default.nix +++ b/pkgs/tools/typesetting/xmlto/default.nix @@ -4,7 +4,7 @@ coreutils, docbook_xml_dtd_45, docbook_xsl, - docbook-xsl-ns, + docbook-xsl-nons, fetchgit, findutils, flex, @@ -44,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: { for f in format/docbook/* xmlto.in; do substituteInPlace $f \ - --replace-fail "http://docbook.sourceforge.net/release/xsl/current" "${docbook-xsl-ns}/xml/xsl/docbook" + --replace-fail "http://docbook.sourceforge.net/release/xsl/current" "${docbook-xsl-nons}/xml/xsl/docbook" done ''; From 74aa519ba2d5a49a17fe2667884975df7cc75726 Mon Sep 17 00:00:00 2001 From: Marcel Date: Thu, 3 Oct 2024 16:04:57 +0200 Subject: [PATCH 0103/1574] redis: 7.2.5 -> 7.2.6 Fixes CVE-2024-31449 Fixes CVE-2024-31227 Fixes CVE-2024-31228 --- pkgs/servers/nosql/redis/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/nosql/redis/default.nix b/pkgs/servers/nosql/redis/default.nix index 42bafb37c819..b39d9258ae64 100644 --- a/pkgs/servers/nosql/redis/default.nix +++ b/pkgs/servers/nosql/redis/default.nix @@ -12,11 +12,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "redis"; - version = "7.2.5"; + version = "7.2.6"; src = fetchurl { url = "https://download.redis.io/releases/redis-${finalAttrs.version}.tar.gz"; - hash = "sha256-WYEXlwb4OR8DvpHZUayvrtqRr3+sVr7/snAZYxA+Qj0="; + hash = "sha256-+xDWei/itFVvbLhABk3W5uMXXOjKA18HJpkOwtqfPQ4="; }; patches = [ From 0789f53499110776ec56bd980c429b88d332dc7e Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Thu, 3 Oct 2024 21:53:17 +0200 Subject: [PATCH 0104/1574] nodejs_20: 20.17.0 -> 20.18.0 --- pkgs/development/web/nodejs/v20.nix | 48 ++--------------------------- 1 file changed, 2 insertions(+), 46 deletions(-) diff --git a/pkgs/development/web/nodejs/v20.nix b/pkgs/development/web/nodejs/v20.nix index 9e3c3a3577a1..4b0be19dad77 100644 --- a/pkgs/development/web/nodejs/v20.nix +++ b/pkgs/development/web/nodejs/v20.nix @@ -12,8 +12,8 @@ let in buildNodejs { inherit enableNpm; - version = "20.17.0"; - sha256 = "9abf03ac23362c60387ebb633a516303637145cb3c177be3348b16880fd8b28c"; + version = "20.18.0"; + sha256 = "7d9433e91fd88d82ba8de86e711ec41907638e227993d22e95126b02f6cd714a"; patches = [ ./configure-emulator.patch ./configure-armv6-vfpv2.patch @@ -23,50 +23,6 @@ buildNodejs { ./use-correct-env-in-tests.patch # Patches for OpenSSL 3.2 - # Patches already in 22.7.0 - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/bd42e4c6a73f61f7ee47e4426d86708fd80c6c4f.patch?full_index=1"; - hash = "sha256-bsCLVwK5t8dD+wHd1FlFJ1wpCGtNGcwoOfq4fG5MHfo="; - includes = ["test/parallel/test-tls-set-sigalgs.js"]; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/e0634f58aba6a1634fe03107d5be849fd008cc02.patch?full_index=1"; - hash = "sha256-Jh7f4JPS1H2Rpj1nEOW53E66Z+GDNEFXl0jALrvyYXQ="; - }) - # Patches already in 22.8.0 - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/e9cd4766e39d96693320be9ce0a1044c450e8675.patch?full_index=1"; - hash = "sha256-RXRLRznz16B8MrfVrpIHgyqLV2edpJk2p717QBttyK4="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/2bfc9e467cb05578efa4d3db497f368fb144e5fc.patch?full_index=1"; - hash = "sha256-TyHSd+O0T/bFR7YZuxm4HumrMljnJu2a8RRLRvz6KNM="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/01f751b529d126529f1d2019f0dcb13b8e54b787.patch?full_index=1"; - hash = "sha256-m3IaWL7U8fQMnmP2Xch4M8Qn1AJU8Ao9GCqMPcDnqCk="; - }) - # Patches already in 22.9.0 - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/d9ca8b018efd172a99365ada8f536491b19bd87b.patch?full_index=1"; - hash = "sha256-KzoWVXcgjJaMUOXDyLlkwRcN6z3SdFhTJd0KYBYfElE="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/c4f295470392db237c0adfc9832214538a99a034.patch?full_index=1"; - hash = "sha256-sYTY+oiQ5K7bYLcI1+jSTlLFdwpteKGSu7S/bbaslLE="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/a65105ec284023960e93b3a66f6661ddd2f4121f.patch?full_index=1"; - hash = "sha256-ZNkiHlp+UlbnonPBhMUw6rqtjWrC1b9SgI9EcGhDlwY="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/c77bcf018716e97ae35203990bcd51c143840348.patch?full_index=1"; - hash = "sha256-EwrZKpLRzk3Yjen1WVQqKTiHKE2uLTpaPsE13czH2rY="; - }) - (fetchpatch2 { - url = "https://github.com/nodejs/node/commit/18101d83a158b877ac765936aba973c664130ea2.patch?full_index=1"; - hash = "sha256-vpHDj5+340bjYLo7gTWFu7iS4vVveBZAMypQ2eLoQzM="; - }) # Patches not yet released (fetchpatch2 { url = "https://github.com/nodejs/node/commit/f8b7a171463e775da304bccf4cf165e634525c7e.patch?full_index=1"; From 1e8ac19152fbe4454b4d2bfd885e136668de6d76 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 4 Oct 2024 06:51:03 +0100 Subject: [PATCH 0105/1574] libnftnl: 1.2.7 -> 1.2.8, nftables: 1.1.0 -> 1.1.1 Changes: https://lwn.net/Articles/992760/ --- pkgs/development/libraries/libnftnl/default.nix | 4 ++-- pkgs/os-specific/linux/nftables/default.nix | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/pkgs/development/libraries/libnftnl/default.nix b/pkgs/development/libraries/libnftnl/default.nix index 1da5bf5a6de5..7613c940a46b 100644 --- a/pkgs/development/libraries/libnftnl/default.nix +++ b/pkgs/development/libraries/libnftnl/default.nix @@ -1,12 +1,12 @@ { lib, stdenv, fetchurl, pkg-config, libmnl, gitUpdater }: stdenv.mkDerivation rec { - version = "1.2.7"; + version = "1.2.8"; pname = "libnftnl"; src = fetchurl { url = "https://netfilter.org/projects/${pname}/files/${pname}-${version}.tar.xz"; - hash = "sha256-kSJ3T5aAk9XAus3dZ95IDzH6QHNAWn/AWKNLDzh67LM="; + hash = "sha256-N/6l1rXJsI3nkg0pjePNyULnrmSxo+i4gLLTkK5nrZU="; }; configureFlags = lib.optional (stdenv.cc.bintools.isLLVM && lib.versionAtLeast stdenv.cc.bintools.version "17") "LDFLAGS=-Wl,--undefined-version"; diff --git a/pkgs/os-specific/linux/nftables/default.nix b/pkgs/os-specific/linux/nftables/default.nix index f0f62d1763fa..83ee5d3fbcbb 100644 --- a/pkgs/os-specific/linux/nftables/default.nix +++ b/pkgs/os-specific/linux/nftables/default.nix @@ -7,15 +7,16 @@ , withCli ? true, libedit , withXtables ? true, iptables , nixosTests +, gitUpdater }: stdenv.mkDerivation rec { - version = "1.1.0"; + version = "1.1.1"; pname = "nftables"; src = fetchurl { url = "https://netfilter.org/projects/nftables/files/${pname}-${version}.tar.xz"; - hash = "sha256-7zNzKUiGxbYH7nvoLFaiW8BOdfgC+OitzVWqyR6wqiQ="; + hash = "sha256-Y1iDDzpk8x45sK1CHX2tzSQLcjQ97UjY7xO4+vIEhlo="; }; nativeBuildInputs = [ @@ -42,6 +43,11 @@ stdenv.mkDerivation rec { nat = { inherit (nixosTests.nat.nftables) firewall standalone; }; }; + passthru.updateScript = gitUpdater { + url = "https://git.netfilter.org/nftables"; + rev-prefix = "v"; + }; + meta = with lib; { description = "Project that aims to replace the existing {ip,ip6,arp,eb}tables framework"; homepage = "https://netfilter.org/projects/nftables/"; From 32b9a2444b53fb31cdb9350982c018936898b27e Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 4 Oct 2024 06:54:54 +0100 Subject: [PATCH 0106/1574] nftables: enable parallel building --- pkgs/os-specific/linux/nftables/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/os-specific/linux/nftables/default.nix b/pkgs/os-specific/linux/nftables/default.nix index 83ee5d3fbcbb..afdd009a8883 100644 --- a/pkgs/os-specific/linux/nftables/default.nix +++ b/pkgs/os-specific/linux/nftables/default.nix @@ -37,6 +37,8 @@ stdenv.mkDerivation rec { ] ++ lib.optional (!withDebugSymbols) "--disable-debug" ++ lib.optional withXtables "--with-xtables"; + enableParallelBuilding = true; + passthru.tests = { inherit (nixosTests) firewall-nftables; lxd-nftables = nixosTests.lxd.nftables; From df1f47e61434091b6c10b2a8b911717c154e3583 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Fri, 4 Oct 2024 06:57:54 +0100 Subject: [PATCH 0107/1574] hwdata: 0.387 -> 0.388 Changes: https://github.com/vcrhonek/hwdata/compare/v0.387...v0.388 --- pkgs/os-specific/linux/hwdata/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/hwdata/default.nix b/pkgs/os-specific/linux/hwdata/default.nix index f730d192fbe5..b03448f76288 100644 --- a/pkgs/os-specific/linux/hwdata/default.nix +++ b/pkgs/os-specific/linux/hwdata/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "hwdata"; - version = "0.387"; + version = "0.388"; src = fetchFromGitHub { owner = "vcrhonek"; repo = "hwdata"; rev = "v${version}"; - hash = "sha256-DaoghSLLH795YGFE31eTebPCnWBIQJI6yVI/khywEgc="; + hash = "sha256-MTXRvqhzNI4afOWLWY6bvv84Q/MXVTsn0w9awRIDAEU="; }; configureFlags = [ "--datadir=${placeholder "out"}/share" ]; From dc06d59feaf277a864a8bb4b6b4a39109801da26 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 7 Sep 2024 07:09:41 +0100 Subject: [PATCH 0108/1574] s2n-tls: 1.5.1 -> 1.5.4 Changes: - https://github.com/aws/s2n-tls/releases/tag/v1.5.2 - https://github.com/aws/s2n-tls/releases/tag/v1.5.3 - https://github.com/aws/s2n-tls/releases/tag/v1.5.4 --- pkgs/development/libraries/s2n-tls/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/s2n-tls/default.nix b/pkgs/development/libraries/s2n-tls/default.nix index 5af6eff378d9..2389b6259320 100644 --- a/pkgs/development/libraries/s2n-tls/default.nix +++ b/pkgs/development/libraries/s2n-tls/default.nix @@ -8,13 +8,13 @@ stdenv.mkDerivation rec { pname = "s2n-tls"; - version = "1.5.1"; + version = "1.5.4"; src = fetchFromGitHub { owner = "aws"; repo = "s2n-tls"; rev = "v${version}"; - hash = "sha256-BHDMYOHidwF6ssqSnpokXc/OwGrQNoUVb0/ubwhyiDM="; + hash = "sha256-dLudhi/b6QSrzP5Ap0LTzYk7Ycj5JTIuBz3mDd8JZa4="; }; nativeBuildInputs = [ cmake ]; From a8cf6284831e7f26105ae6f39aa6f856a4d42514 Mon Sep 17 00:00:00 2001 From: Ivan Mincik Date: Fri, 4 Oct 2024 12:40:31 +0200 Subject: [PATCH 0109/1574] python3Packages.furl: disable failing test for all python version --- pkgs/development/python-modules/furl/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/furl/default.nix b/pkgs/development/python-modules/furl/default.nix index 4b4f81d1a2aa..4431e2c86867 100644 --- a/pkgs/development/python-modules/furl/default.nix +++ b/pkgs/development/python-modules/furl/default.nix @@ -36,7 +36,7 @@ buildPythonPackage rec { pytestCheckHook ]; - disabledTests = lib.optionals (pythonAtLeast "3.12") [ + disabledTests = [ # AssertionError: assert '//////path' == '////path' "test_odd_urls" ]; From 326c1be15a549a3613380e7b1fbe0f6779622e59 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 4 Oct 2024 17:12:48 +0200 Subject: [PATCH 0110/1574] ell: enable debug info --- pkgs/os-specific/linux/ell/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/os-specific/linux/ell/default.nix b/pkgs/os-specific/linux/ell/default.nix index 651493746361..5cea6f1266b9 100644 --- a/pkgs/os-specific/linux/ell/default.nix +++ b/pkgs/os-specific/linux/ell/default.nix @@ -12,6 +12,7 @@ stdenv.mkDerivation rec { version = "0.67"; outputs = [ "out" "dev" ]; + separateDebugInfo = true; src = fetchgit { url = "https://git.kernel.org/pub/scm/libs/ell/ell.git"; From 8a4f00414d494130fbf37022225bb451008f9a0b Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 1 Oct 2024 09:12:14 +0200 Subject: [PATCH 0111/1574] python312Packages.botocore: 1.35.29 -> 1.35.30 Changelog: https://github.com/boto/botocore/blob/1.35.30/CHANGELOG.rst --- .../python-modules/botocore/default.nix | 31 ++++++++++--------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/pkgs/development/python-modules/botocore/default.nix b/pkgs/development/python-modules/botocore/default.nix index 974846ebd287..34e6e1a7edc2 100644 --- a/pkgs/development/python-modules/botocore/default.nix +++ b/pkgs/development/python-modules/botocore/default.nix @@ -3,34 +3,35 @@ awscrt, buildPythonPackage, fetchPypi, + + # build-system + setuptools, + + # dependencies jmespath, + python-dateutil, + urllib3, + + # tests jsonschema, pytestCheckHook, - python-dateutil, - pythonOlder, - setuptools, - urllib3, }: buildPythonPackage rec { pname = "botocore"; - version = "1.35.29"; # N.B: if you change this, change boto3 and awscli to a matching version + version = "1.35.30"; # N.B: if you change this, change boto3 and awscli to a matching version pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchPypi { inherit pname version; - hash = "sha256-TtKKsDZ1uwCKKQxFLF3deqpdTj+hkSqtvfkwV+6ENis="; + hash = "sha256-q1NQ6KUOSNNx+i1RfWXCmkDEN4jLmhU4f5PqxaI98P0="; }; - pythonRelaxDeps = [ "urllib3" ]; - - nativeBuildInputs = [ + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ jmespath python-dateutil urllib3 @@ -55,11 +56,11 @@ buildPythonPackage rec { crt = [ awscrt ]; }; - meta = with lib; { + meta = { description = "Low-level interface to a growing number of Amazon Web Services"; homepage = "https://github.com/boto/botocore"; changelog = "https://github.com/boto/botocore/blob/${version}/CHANGELOG.rst"; - license = licenses.asl20; - maintainers = with maintainers; [ anthonyroussel ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ anthonyroussel ]; }; } From acecfb937c6150fd392898ec723e77f76ee9e85c Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 1 Oct 2024 09:16:55 +0200 Subject: [PATCH 0112/1574] python312Packages.boto3: 1.35.29 -> 1.35.30 Changelog: https://github.com/boto/botocore/blob/1.35.30/CHANGELOG.rst --- .../python-modules/boto3/default.nix | 27 ++++++++++--------- 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/boto3/default.nix b/pkgs/development/python-modules/boto3/default.nix index 98d8dc30c64f..08c3871a91ea 100644 --- a/pkgs/development/python-modules/boto3/default.nix +++ b/pkgs/development/python-modules/boto3/default.nix @@ -1,14 +1,19 @@ { lib, - botocore, buildPythonPackage, fetchFromGitHub, + + # build-system + setuptools, + + # dependencies + botocore, jmespath, + s3transfer, + + # tests pytest-xdist, pytestCheckHook, - pythonOlder, - s3transfer, - setuptools, }: buildPythonPackage rec { @@ -16,22 +21,20 @@ buildPythonPackage rec { inherit (botocore) version; # N.B: botocore, boto3, awscli needs to be updated in lockstep, bump botocore version for updating these. pyproject = true; - disabled = pythonOlder "3.8"; - src = fetchFromGitHub { owner = "boto"; repo = "boto3"; rev = "refs/tags/${version}"; - hash = "sha256-4WP5E8LuuxWZi8DK8yOpvyy6isSfB4eFcbctkTEd3As="; + hash = "sha256-b08tC8EA6iW0O/7rseD9pTkKh/cJ2fe3xJZkEqxS6VI="; }; - nativeBuildInputs = [ + build-system = [ setuptools ]; pythonRelaxDeps = [ "s3transfer" ]; - propagatedBuildInputs = [ + dependencies = [ botocore jmespath s3transfer @@ -53,16 +56,16 @@ buildPythonPackage rec { crt = [ botocore.optional-dependencies.crt ]; }; - meta = with lib; { + meta = { description = "AWS SDK for Python"; homepage = "https://github.com/boto/boto3"; changelog = "https://github.com/boto/boto3/blob/${version}/CHANGELOG.rst"; - license = licenses.asl20; + license = lib.licenses.asl20; longDescription = '' Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for Python, which allows Python developers to write software that makes use of services like Amazon S3 and Amazon EC2. ''; - maintainers = with maintainers; [ anthonyroussel ]; + maintainers = with lib.maintainers; [ anthonyroussel ]; }; } From 140cfc11549639158aff91bc2edaec049fc68830 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Tue, 1 Oct 2024 09:18:32 +0200 Subject: [PATCH 0113/1574] awscli: 1.34.29 -> 1.34.30 Changelog: https://github.com/aws/aws-cli/blob/1.34.30/CHANGELOG.rst --- pkgs/tools/admin/awscli/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pkgs/tools/admin/awscli/default.nix b/pkgs/tools/admin/awscli/default.nix index c792563000a6..e9b5af2c1b9d 100644 --- a/pkgs/tools/admin/awscli/default.nix +++ b/pkgs/tools/admin/awscli/default.nix @@ -13,12 +13,12 @@ let pname = "awscli"; # N.B: if you change this, change botocore and boto3 to a matching version too # check e.g. https://github.com/aws/aws-cli/blob/1.33.21/setup.py - version = "1.34.29"; + version = "1.34.30"; pyproject = true; src = fetchPypi { inherit pname version; - hash = "sha256-2w9z6f8ThKIISEiExePHObUZzBrdltP3AfZqKh8d1Mo="; + hash = "sha256-7RdAqXdCnS7dzkGQHJHclR2KuBbSbd+epGMQDbDlYxY="; }; pythonRelaxDeps = [ @@ -32,7 +32,7 @@ let python3.pkgs.setuptools ]; - propagatedBuildInputs = with python3.pkgs; [ + dependencies = with python3.pkgs; [ botocore s3transfer colorama @@ -76,13 +76,13 @@ let }; }; - meta = with lib; { + meta = { homepage = "https://aws.amazon.com/cli/"; changelog = "https://github.com/aws/aws-cli/blob/${version}/CHANGELOG.rst"; description = "Unified tool to manage your AWS services"; - license = licenses.asl20; + license = lib.licenses.asl20; mainProgram = "aws"; - maintainers = with maintainers; [ anthonyroussel ]; + maintainers = with lib.maintainers; [ anthonyroussel ]; }; }; in From e62481829335973537e3527c66af98c7adaa7e30 Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 4 Oct 2024 23:02:08 +0100 Subject: [PATCH 0114/1574] xeve: 0.5.0 -> 0.5.1 Closes: #322990 --- pkgs/by-name/xe/xeve/package.nix | 78 +++++++++++++++----------------- 1 file changed, 36 insertions(+), 42 deletions(-) diff --git a/pkgs/by-name/xe/xeve/package.nix b/pkgs/by-name/xe/xeve/package.nix index 2f9f2b029d21..f7513d9c1298 100644 --- a/pkgs/by-name/xe/xeve/package.nix +++ b/pkgs/by-name/xe/xeve/package.nix @@ -9,41 +9,38 @@ stdenv.mkDerivation (finalAttrs: { pname = "xeve"; - version = "0.5.0"; + version = "0.5.1"; src = fetchFromGitHub { owner = "mpeg5"; repo = "xeve"; rev = "v${finalAttrs.version}"; - hash = "sha256-8jXntm/yFme9ZPImdW54jAr11hEsU1K+N5/7RLmITPs="; + hash = "sha256-/DcYv2fInr8MN1wpOgJHcFWEvW//7SIXccheRfeaTHM="; }; patches = - lib.optionals (!lib.versionOlder "0.5.0" finalAttrs.version) ( - builtins.map fetchpatch2 [ - { - url = "https://github.com/mpeg5/xeve/commit/954ed6e0494cd2438fd15c717c0146e88e582b33.patch?full_index=1"; - hash = "sha256-//NtOUm1fqPFvOM955N6gF+QgmOdmuVunwx/3s/G/J8="; - } - { - url = "https://github.com/mpeg5/xeve/commit/07a6f2a6d13dfaa0f73c3752f8cd802c251d8252.patch?full_index=1"; - hash = "sha256-P9J7Y9O/lb/MSa5oCfft7z764AbLBLZnMmrmPEZPcws="; - } - { - url = "https://github.com/mpeg5/xeve/commit/0a0f3bd397161253b606bdbeaa518fbe019d24e1.patch?full_index=1"; - hash = "sha256-PoZpE64gWkTUS4Q+SK+DH1I1Ac0UEzwwnlvpYN16hsI="; - } - { - url = "https://github.com/mpeg5/xeve/commit/e029f1619ecedbda152b8680641fa10eea9eeace.patch?full_index=1"; - hash = "sha256-ooIBzNtGSjDgYvTzA8T0KB+QzsUiy14mPpoRqrHF3Pg="; - } - ] - ++ [ - # Backport to 0.5.0 of upstream patch c564ac77c103dbba472df3e13f4733691fd499ed - ./0001-CMakeLists.txt-Disable-static-linking-on-Darwin.patch - ] - ) + builtins.map fetchpatch2 [ + { + url = "https://github.com/mpeg5/xeve/commit/954ed6e0494cd2438fd15c717c0146e88e582b33.patch?full_index=1"; + hash = "sha256-//NtOUm1fqPFvOM955N6gF+QgmOdmuVunwx/3s/G/J8="; + } + { + url = "https://github.com/mpeg5/xeve/commit/07a6f2a6d13dfaa0f73c3752f8cd802c251d8252.patch?full_index=1"; + hash = "sha256-P9J7Y9O/lb/MSa5oCfft7z764AbLBLZnMmrmPEZPcws="; + } + { + url = "https://github.com/mpeg5/xeve/commit/0a0f3bd397161253b606bdbeaa518fbe019d24e1.patch?full_index=1"; + hash = "sha256-PoZpE64gWkTUS4Q+SK+DH1I1Ac0UEzwwnlvpYN16hsI="; + } + { + url = "https://github.com/mpeg5/xeve/commit/e029f1619ecedbda152b8680641fa10eea9eeace.patch?full_index=1"; + hash = "sha256-ooIBzNtGSjDgYvTzA8T0KB+QzsUiy14mPpoRqrHF3Pg="; + } + ] ++ [ + # Backport to 0.5.0 of upstream patch c564ac77c103dbba472df3e13f4733691fd499ed + ./0001-CMakeLists.txt-Disable-static-linking-on-Darwin.patch + # Rejected upstream, can be dropped when a fix for # https://github.com/mpeg5/xeve/pull/123 is in a version bump. ./0002-sse2neon-Cast-to-variable-type.patch @@ -64,23 +61,20 @@ stdenv.mkDerivation (finalAttrs: { ++ optional isDarwin (cmakeFeature "CMAKE_SYSTEM_NAME" "Darwin"); env.NIX_CFLAGS_COMPILE = builtins.toString ( - builtins.map (w: "-Wno-" + w) ( - [ - # Patch addressing an if without a body was rejected upstream, third - # line-based comment in this thread, https://github.com/mpeg5/xeve/pull/122#pullrequestreview-2187744305 - # Evaluate on version bump whether still necessary. - "empty-body" + builtins.map (w: "-Wno-" + w) [ + # Patch addressing an if without a body was rejected upstream, third + # line-based comment in this thread, https://github.com/mpeg5/xeve/pull/122#pullrequestreview-2187744305 + # Evaluate on version bump whether still necessary. + "empty-body" - # Evaluate on version bump whether still necessary. - "parentheses-equality" - "unknown-warning-option" - ] - ++ ( - # Fixed upstream in 325fd9f94f3fdf0231fa931a31ebb72e63dc3498 but might - # change behavior, therefore opted to leave it out for now. - lib.optional (!lib.versionOlder "0.5.0" finalAttrs.version) "for-loop-analysis" - ) - ) + # Evaluate on version bump whether still necessary. + "parentheses-equality" + "unknown-warning-option" + + # Fixed upstream in 325fd9f94f3fdf0231fa931a31ebb72e63dc3498 but might + # change behavior, therefore opted to leave it out for now. + "for-loop-analysis" + ] ); postInstall = '' From 7ad7e69aa8d26e2abaa7c4d4317dea956bf704f8 Mon Sep 17 00:00:00 2001 From: Emily Date: Fri, 4 Oct 2024 23:02:08 +0100 Subject: [PATCH 0115/1574] ffmpeg_7: 7.0.2 -> 7.1 --- nixos/doc/manual/release-notes/rl-2411.section.md | 2 +- pkgs/development/libraries/ffmpeg/default.nix | 4 ++-- .../ffmpeg/fix-fate-ffmpeg-spec-disposition-7.1.patch | 10 ++++++++++ pkgs/development/libraries/ffmpeg/generic.nix | 11 ++--------- 4 files changed, 15 insertions(+), 12 deletions(-) create mode 100644 pkgs/development/libraries/ffmpeg/fix-fate-ffmpeg-spec-disposition-7.1.patch diff --git a/nixos/doc/manual/release-notes/rl-2411.section.md b/nixos/doc/manual/release-notes/rl-2411.section.md index 53dea9792ef7..5e2d184b9ed1 100644 --- a/nixos/doc/manual/release-notes/rl-2411.section.md +++ b/nixos/doc/manual/release-notes/rl-2411.section.md @@ -506,7 +506,7 @@ - Minimal installer ISOs are no longer built on the small channel. Please obtain installer images from the full release channels. -- The default FFmpeg version is now 7, and FFmpeg 5 has been removed. +- The default FFmpeg version is now 7.1, and FFmpeg 5 has been removed. Please prefer using the package variants without a version suffix, or pin FFmpeg 6 or 4 if necessary for compatibility. Note that we keep old versions around only as required diff --git a/pkgs/development/libraries/ffmpeg/default.nix b/pkgs/development/libraries/ffmpeg/default.nix index c88566d2e7ac..eac16d659dac 100644 --- a/pkgs/development/libraries/ffmpeg/default.nix +++ b/pkgs/development/libraries/ffmpeg/default.nix @@ -34,8 +34,8 @@ let }; v7 = { - version = "7.0.2"; - hash = "sha256-6bcTxMt0rH/Nso3X7zhrFNkkmWYtxsbUqVQKh25R1Fs="; + version = "7.1"; + hash = "sha256-erTkv156VskhYEJWjpWFvHjmcr2hr6qgUi28Ho8NFYk="; }; in diff --git a/pkgs/development/libraries/ffmpeg/fix-fate-ffmpeg-spec-disposition-7.1.patch b/pkgs/development/libraries/ffmpeg/fix-fate-ffmpeg-spec-disposition-7.1.patch new file mode 100644 index 000000000000..998c4d97f617 --- /dev/null +++ b/pkgs/development/libraries/ffmpeg/fix-fate-ffmpeg-spec-disposition-7.1.patch @@ -0,0 +1,10 @@ +diff --git a/tests/fate/ffmpeg.mak b/tests/fate/ffmpeg.mak +index 869376dd18..d9348ee837 100644 +--- a/tests/fate/ffmpeg.mak ++++ b/tests/fate/ffmpeg.mak +@@ -266,4 +266,4 @@ + + # test matching by stream disposition + fate-ffmpeg-spec-disposition: CMD = framecrc -i $(TARGET_SAMPLES)/mpegts/pmtchange.ts -map '0:disp:visual_impaired+descriptions:1' -c copy +-FATE_FFMPEG-$(call FRAMECRC, MPEGTS,,) += fate-ffmpeg-spec-disposition ++FATE_SAMPLES_FFMPEG-$(call FRAMECRC, MPEGTS,,) += fate-ffmpeg-spec-disposition diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index b0ccaeeb45fb..e6863e849324 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -457,16 +457,9 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-sqUUSOPTPLwu2h8GbAw4SfEf+0oWioz52BcpW1n4v3Y="; }) ] - ++ optionals (lib.versionAtLeast version "7.0" && lib.versionOlder version "7.0.1") [ - (fetchpatch2 { - # Will likely be obsolete in >7.0 - name = "fate_avoid_dependency_on_samples"; - url = "https://git.ffmpeg.org/gitweb/ffmpeg.git/patch/7b7b7819bd21cc92ac07f6696b0e7f26fa8f9834"; - hash = "sha256-TKI289XqtG86Sj9s7mVYvmkjAuRXeK+2cYYEDkg6u6I="; - }) - ] - ++ optionals (lib.versionAtLeast version "7.0") [ + ++ optionals (lib.versionAtLeast version "7.1") [ ./0001-avfoundation.m-macOS-SDK-10.12-compatibility.patch + ./fix-fate-ffmpeg-spec-disposition-7.1.patch # Expose a private API for Chromium / Qt WebEngine. (fetchpatch2 { From 57b452a0fe550d9bb7b093ddedf74d62c872281b Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 5 Oct 2024 07:25:06 +0100 Subject: [PATCH 0116/1574] unbound: 1.21.0 -> 1.21.1 Changes: https://www.nlnetlabs.nl/news/2024/Oct/03/unbound-1.21.1-released/ --- pkgs/by-name/un/unbound/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/un/unbound/package.nix b/pkgs/by-name/un/unbound/package.nix index 9c789a3b0564..335e2919bf9c 100644 --- a/pkgs/by-name/un/unbound/package.nix +++ b/pkgs/by-name/un/unbound/package.nix @@ -50,11 +50,11 @@ stdenv.mkDerivation (finalAttrs: { pname = "unbound"; - version = "1.21.0"; + version = "1.21.1"; src = fetchurl { url = "https://nlnetlabs.nl/downloads/unbound/unbound-${finalAttrs.version}.tar.gz"; - hash = "sha256-59yn1rD4G9+m+mTr8QU7WpmaWukniofvGCQlBn6hRSE="; + hash = "sha256-MDbSPCNiKzbTyH6UMRe97BrI+Bljbrl42AZBaw+p6kY="; }; outputs = [ "out" "lib" "man" ]; # "dev" would only split ~20 kB From b7b1c183e30a47280e62ea4a84702d13eb63ae2f Mon Sep 17 00:00:00 2001 From: Augustin Trancart Date: Sat, 5 Oct 2024 12:13:13 +0200 Subject: [PATCH 0117/1574] python3Packages.matplotlib: 3.9.1 -> 3.9.2 (#345336) --- pkgs/development/python-modules/matplotlib/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/matplotlib/default.nix b/pkgs/development/python-modules/matplotlib/default.nix index d91c96e6dd74..f07acb53dc69 100644 --- a/pkgs/development/python-modules/matplotlib/default.nix +++ b/pkgs/development/python-modules/matplotlib/default.nix @@ -89,7 +89,7 @@ let in buildPythonPackage rec { - version = "3.9.1"; + version = "3.9.2"; pname = "matplotlib"; pyproject = true; @@ -97,7 +97,7 @@ buildPythonPackage rec { src = fetchPypi { inherit pname version; - hash = "sha256-3gaxm425XdM9DcF8kmx8nr7Z9XIHS2+sT2UGimgU0BA="; + hash = "sha256-lqtDkGJpymSmNmk0EG+gFTRFSmnkcbe/PXkIOYGqq5I="; }; env.XDG_RUNTIME_DIR = "/tmp"; From 300c9216b5f09c7fabf9ba0d9455654c76db04d7 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sat, 21 Sep 2024 18:26:54 +0100 Subject: [PATCH 0118/1574] ell: 0.68 -> 0.69, iwd: 2.20 -> 2.22 Changes: - https://git.kernel.org/pub/scm/libs/ell/ell.git/tree/ChangeLog?h=0.69 - https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/ChangeLog?h=2.21 - https://git.kernel.org/pub/scm/network/wireless/iwd.git/tree/ChangeLog?h=2.22 --- pkgs/os-specific/linux/ell/default.nix | 4 ++-- pkgs/os-specific/linux/iwd/default.nix | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/os-specific/linux/ell/default.nix b/pkgs/os-specific/linux/ell/default.nix index e5ae448284eb..33f801973037 100644 --- a/pkgs/os-specific/linux/ell/default.nix +++ b/pkgs/os-specific/linux/ell/default.nix @@ -9,14 +9,14 @@ stdenv.mkDerivation rec { pname = "ell"; - version = "0.68"; + version = "0.69"; outputs = [ "out" "dev" ]; src = fetchgit { url = "https://git.kernel.org/pub/scm/libs/ell/ell.git"; rev = version; - hash = "sha256-1T2VL/7vSIVVmJQ3n3+swFE/faUTT3mHaskdi/TUJFY="; + hash = "sha256-FOEVnpndbIufb8i6egBIoG1PC01WxtAlf3I47YqM+hk="; }; nativeBuildInputs = [ diff --git a/pkgs/os-specific/linux/iwd/default.nix b/pkgs/os-specific/linux/iwd/default.nix index bc75892e37ca..c7f8ef0226a4 100644 --- a/pkgs/os-specific/linux/iwd/default.nix +++ b/pkgs/os-specific/linux/iwd/default.nix @@ -13,12 +13,12 @@ stdenv.mkDerivation rec { pname = "iwd"; - version = "2.20"; + version = "2.22"; src = fetchgit { url = "https://git.kernel.org/pub/scm/network/wireless/iwd.git"; rev = version; - hash = "sha256-jKYF4wW/wKyOMrgxxU7AU0XN677X1vVjrPgjnX/gOqc="; + hash = "sha256-t2mfBRP/PRlcfeezu3B7myCKXVv9SHeW8HlGK1cO3/I="; }; outputs = [ "out" "man" "doc" ] From 6d800e294e8602bb979ee065bf77aed815e664e2 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Mon, 5 Aug 2024 10:22:16 +0000 Subject: [PATCH 0119/1574] pcsclite: 2.2.3 -> 2.3.0 --- pkgs/tools/security/pcsclite/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/pcsclite/default.nix b/pkgs/tools/security/pcsclite/default.nix index 955611a465c1..e7524b69c0d3 100644 --- a/pkgs/tools/security/pcsclite/default.nix +++ b/pkgs/tools/security/pcsclite/default.nix @@ -29,7 +29,7 @@ assert systemdSupport -> dbusSupport; stdenv.mkDerivation (finalAttrs: { inherit pname; - version = "2.2.3"; + version = "2.3.0"; outputs = [ "out" "lib" "dev" "doc" "man" ]; @@ -38,7 +38,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "rousseau"; repo = "PCSC"; rev = "refs/tags/${finalAttrs.version}"; - hash = "sha256-hKyxXqZaqg8KGFoBWhRHV1/50uoxqiG0RsYtgw2BuQ4="; + hash = "sha256-37qeWGEuutF0cOOidoLchKJLQCvJFdVRZXepWzD4pZs="; }; # fix build with macOS 11 SDK From 41ffdf94002c38a2540a7d88dd2b7e57746627c1 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 5 Oct 2024 21:31:09 +0200 Subject: [PATCH 0120/1574] haskellPackages: stackage LTS 22.33 -> LTS 22.36 This commit has been generated by maintainers/scripts/haskell/update-stackage.sh --- .../configuration-hackage2nix/stackage.yaml | 144 +++++++++--------- 1 file changed, 72 insertions(+), 72 deletions(-) diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/stackage.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/stackage.yaml index 4384b2254f46..235261802442 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/stackage.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/stackage.yaml @@ -1,4 +1,4 @@ -# Stackage LTS 22.33 +# Stackage LTS 22.36 # This file is auto-generated by # maintainers/scripts/haskell/update-stackage.sh default-package-overrides: @@ -16,7 +16,7 @@ default-package-overrides: - adjunctions ==4.4.2 - adler32 ==0.1.2.0 - aern2-mp ==0.2.15.1 - - aern2-real ==0.2.15 + - aern2-real ==0.2.15.1 - aeson ==2.1.2.1 - aeson-attoparsec ==0.0.0 - aeson-casing ==0.2.0.0 @@ -480,7 +480,7 @@ default-package-overrides: - binary-shared ==0.8.3 - binary-tagged ==0.3.1 - bindings-DSL ==1.0.25 - - bindings-GLFW ==3.3.9.1 + - bindings-GLFW ==3.3.9.2 - bindings-libzip ==1.0.1 - bindings-uname ==0.1 - BiobaseEnsembl ==0.2.0.1 @@ -563,11 +563,11 @@ default-package-overrides: - bytesmith ==0.3.11.1 - bytestring-builder ==0.10.8.2.0 - bytestring-conversion ==0.3.2 - - bytestring-lexing ==0.5.0.12 + - bytestring-lexing ==0.5.0.14 - bytestring-strict-builder ==0.4.5.7 - bytestring-to-vector ==0.3.0.1 - bytestring-tree-builder ==0.2.7.12 - - bytestring-trie ==0.2.7.3 + - bytestring-trie ==0.2.7.5 - bz2 ==1.0.1.2 - bzip2-clib ==1.0.8 - bzlib ==0.5.2.0 @@ -575,7 +575,7 @@ default-package-overrides: - c14n ==0.1.0.3 - c2hs ==0.28.8 - cabal2spec ==2.7.1 - - cabal-appimage ==0.4.0.4 + - cabal-appimage ==0.4.0.5 - cabal-clean ==0.2.20230609 - cabal-debian ==5.2.3 - cabal-doctest ==1.0.10 @@ -627,7 +627,7 @@ default-package-overrides: - Chart-cairo ==1.9.4.1 - Chart-diagrams ==1.9.5.1 - chart-svg ==0.5.2.0 - - ChasingBottoms ==1.3.1.14 + - ChasingBottoms ==1.3.1.15 - check-email ==1.0.2 - checkers ==0.6.0 - checksum ==0.0.0.1 @@ -705,7 +705,7 @@ default-package-overrides: - composite-xstep ==0.1.0.0 - composition ==1.0.2.2 - composition-extra ==2.1.0 - - composition-prelude ==3.0.0.2 + - composition-prelude ==3.0.1.0 - concise ==0.1.0.1 - concurrency ==1.11.0.3 - concurrent-extra ==0.7.0.12 @@ -713,7 +713,7 @@ default-package-overrides: - concurrent-split ==0.0.1.1 - concurrent-supply ==0.1.8 - cond ==0.5.1 - - conduit ==1.3.5 + - conduit ==1.3.6 - conduit-aeson ==0.1.1.0 - conduit-combinators ==1.3.0 - conduit-concurrent-map ==0.1.3 @@ -901,7 +901,7 @@ default-package-overrides: - diagrams-postscript ==1.5.1.1 - diagrams-rasterific ==1.4.2.3 - diagrams-solve ==0.1.3 - - diagrams-svg ==1.4.3.1 + - diagrams-svg ==1.4.3.2 - dice ==0.1.1 - di-core ==1.0.4 - dictionary-sharing ==0.1.0.0 @@ -922,7 +922,7 @@ default-package-overrides: - discrimination ==0.5 - disk-free-space ==0.1.0.1 - distributed-closure ==0.5.0.0 - - distributed-static ==0.3.10 + - distributed-static ==0.3.11 - distribution-opensuse ==1.1.4 - distributive ==0.6.2.1 - diversity ==0.8.1.0 @@ -934,7 +934,7 @@ default-package-overrides: - dns ==4.2.0 - dockerfile ==0.2.0 - doclayout ==0.4.0.1 - - doctemplates ==0.11 + - doctemplates ==0.11.0.1 - doctest ==0.22.6 - doctest-discover ==0.2.0.0 - doctest-driver-gen ==0.3.0.8 @@ -989,7 +989,7 @@ default-package-overrides: - elerea ==2.9.0 - elf ==0.31 - eliminators ==0.9.3 - - elm-bridge ==0.8.3 + - elm-bridge ==0.8.4 - elm-core-sources ==1.0.0 - elm-export ==0.6.0.1 - elm-street ==0.2.2.1 @@ -1000,12 +1000,12 @@ default-package-overrides: - elynx-tools ==0.7.2.2 - elynx-tree ==0.7.2.2 - emacs-module ==0.2.1 - - email-validate ==2.3.2.20 + - email-validate ==2.3.2.21 - emojis ==0.1.4.1 - enclosed-exceptions ==1.0.3 - ENIG ==0.0.1.0 - entropy ==0.4.1.10 - - enummapset ==0.7.2.0 + - enummapset ==0.7.3.0 - enumset ==0.1 - enum-subset-generate ==0.1.0.1 - enum-text ==0.5.3.0 @@ -1048,7 +1048,7 @@ default-package-overrides: - exp-pairs ==0.2.1.0 - express ==1.0.16 - extended-reals ==0.2.4.0 - - extensible ==0.9 + - extensible ==0.9.1 - extensible-effects ==5.0.0.1 - extensible-exceptions ==0.1.1.4 - extra ==1.7.16 @@ -1068,7 +1068,7 @@ default-package-overrides: - fast-digits ==0.3.2.0 - fast-logger ==3.2.3 - fast-math ==1.0.2 - - fast-myers-diff ==0.0.0 + - fast-myers-diff ==0.0.1 - fb ==2.1.1.1 - fcf-family ==0.2.0.1 - fclabels ==2.0.5.1 @@ -1123,8 +1123,8 @@ default-package-overrides: - focus ==1.0.3.2 - focuslist ==0.1.1.0 - foldable1-classes-compat ==0.1 - - fold-debounce ==0.2.0.11 - - foldl ==1.4.16 + - fold-debounce ==0.2.0.12 + - foldl ==1.4.17 - folds ==0.7.8 - FontyFruity ==0.5.3.5 - force-layout ==0.4.0.6 @@ -1154,7 +1154,7 @@ default-package-overrides: - funcmp ==1.9 - function-builder ==0.3.0.1 - functor-classes-compat ==2.0.0.2 - - fused-effects ==1.1.2.2 + - fused-effects ==1.1.2.3 - fusion-plugin ==0.2.7 - fusion-plugin-types ==0.1.0 - fuzzcheck ==0.1.1 @@ -1188,7 +1188,7 @@ default-package-overrides: - genvalidity-appendful ==0.1.0.0 - genvalidity-bytestring ==1.0.0.1 - genvalidity-case-insensitive ==0.0.0.1 - - genvalidity-containers ==1.0.0.1 + - genvalidity-containers ==1.0.0.2 - genvalidity-criterion ==1.1.0.0 - genvalidity-hspec ==1.0.0.3 - genvalidity-hspec-aeson ==1.0.0.0 @@ -1253,7 +1253,7 @@ default-package-overrides: - gi-gdk ==3.0.29 - gi-gdkpixbuf ==2.0.32 - gi-gdkx11 ==3.0.16 - - gi-gio ==2.0.34 + - gi-gio ==2.0.35 - gi-glib ==2.0.30 - gi-gmodule ==2.0.6 - gi-gobject ==2.0.31 @@ -1283,7 +1283,7 @@ default-package-overrides: - gl ==0.9 - glabrous ==2.0.6.3 - glasso ==0.1.0 - - GLFW-b ==3.3.9.0 + - GLFW-b ==3.3.9.1 - glib ==0.13.11.0 - glib-stopgap ==0.1.0.0 - Glob ==0.10.2 @@ -1343,12 +1343,12 @@ default-package-overrides: - hashing ==0.1.1.0 - hashmap ==1.3.3 - hashtables ==1.3.1 - - haskell-gi ==0.26.10 - - haskell-gi-base ==0.26.6 + - haskell-gi ==0.26.11 + - haskell-gi-base ==0.26.8 - haskell-gi-overloading ==1.0 - haskell-lexer ==1.1.1 - HaskellNet ==0.6.1.2 - - haskell-src ==1.0.4 + - haskell-src ==1.0.4.1 - haskell-src-exts ==1.23.1 - haskell-src-exts-simple ==1.23.0.0 - haskell-src-exts-util ==0.2.5 @@ -1397,7 +1397,7 @@ default-package-overrides: - heterocephalus ==1.0.5.7 - hetzner ==0.6.0.0 - hex ==0.2.0 - - hexml ==0.3.4 + - hexml ==0.3.5 - hexml-lens ==0.2.2 - hexpat ==0.20.13 - hex-text ==0.1.0.9 @@ -1476,7 +1476,7 @@ default-package-overrides: - hslua-classes ==2.3.1 - hslua-cli ==1.4.3 - hslua-core ==2.3.2 - - hslua-list ==1.1.1 + - hslua-list ==1.1.3 - hslua-marshalling ==2.3.1 - hslua-module-doclayout ==1.1.1.2 - hslua-module-path ==1.1.1 @@ -1490,7 +1490,7 @@ default-package-overrides: - hslua-typing ==0.1.1 - hsndfile ==0.8.0 - hsndfile-vector ==0.5.2 - - HsOpenSSL ==0.11.7.7 + - HsOpenSSL ==0.11.7.8 - HsOpenSSL-x509-system ==0.1.0.4 - hspec ==2.11.9 - hspec-api ==2.11.9 @@ -1541,7 +1541,7 @@ default-package-overrides: - http-client-restricted ==0.1.0 - http-client-tls ==0.3.6.3 - http-common ==0.8.3.4 - - http-conduit ==2.3.8.3 + - http-conduit ==2.3.9 - http-date ==0.0.11 - http-directory ==0.1.10 - http-download ==0.2.1.0 @@ -1668,7 +1668,7 @@ default-package-overrides: - iso639 ==0.1.0.3 - iso8601-time ==0.1.5 - isocline ==1.0.9 - - isomorphism-class ==0.1.0.12 + - isomorphism-class ==0.1.1 - ixset-typed ==0.5.1.0 - ixset-typed-binary-instance ==0.1.0.2 - ixset-typed-hashable-instance ==0.1.0.2 @@ -1691,7 +1691,7 @@ default-package-overrides: - jsonifier ==0.2.1.3 - jsonpath ==0.3.0.0 - json-rpc ==1.0.4 - - json-stream ==0.4.5.3 + - json-stream ==0.4.6.0 - JuicyPixels ==3.3.9 - JuicyPixels-extra ==0.6.0 - JuicyPixels-scale-dct ==0.1.2 @@ -1700,7 +1700,7 @@ default-package-overrides: - jwt ==0.11.0 - kan-extensions ==5.2.6 - kansas-comet ==0.4.2 - - katip ==0.8.8.0 + - katip ==0.8.8.2 - katip-logstash ==0.1.0.2 - katip-wai ==0.1.2.4 - kazura-queue ==0.1.0.4 @@ -1827,7 +1827,7 @@ default-package-overrides: - lpeg ==1.0.4 - LPFP-core ==1.1.1 - lrucache ==1.2.0.1 - - lua ==2.3.2 + - lua ==2.3.3 - lua-arbitrary ==1.0.1.1 - lucid2 ==0.0.20240424 - lucid ==2.11.20230408 @@ -1973,7 +1973,7 @@ default-package-overrides: - monoid-subclasses ==1.2.5.1 - monoid-transformer ==0.0.4 - monomer ==1.6.0.1 - - mono-traversable ==1.0.17.0 + - mono-traversable ==1.0.20.0 - mono-traversable-instances ==0.1.1.0 - mono-traversable-keys ==0.3.0 - more-containers ==0.2.2.2 @@ -2050,7 +2050,7 @@ default-package-overrides: - network-multicast ==0.3.2 - network-run ==0.2.8 - network-simple ==0.4.5 - - network-transport ==0.5.7 + - network-transport ==0.5.8 - network-uri ==2.6.4.2 - network-wait ==0.2.0.0 - newtype ==0.2.2.0 @@ -2099,7 +2099,7 @@ default-package-overrides: - ofx ==0.4.4.0 - old-locale ==1.0.0.7 - old-time ==1.1.0.4 - - om-elm ==2.0.0.6 + - om-elm ==2.0.0.7 - once ==0.4 - one-liner ==2.1 - one-liner-instances ==0.1.3.0 @@ -2153,7 +2153,7 @@ default-package-overrides: - pandoc-cli ==3.1.11.1 - pandoc-dhall-decoder ==0.1.0.1 - pandoc-lua-engine ==0.2.1.2 - - pandoc-lua-marshal ==0.2.7.1 + - pandoc-lua-marshal ==0.2.8 - pandoc-plot ==1.8.0 - pandoc-server ==0.1.0.5 - pandoc-throw ==0.1.0.0 @@ -2164,7 +2164,7 @@ default-package-overrides: - parallel ==3.2.2.0 - parallel-io ==0.3.5 - parameterized ==0.5.0.0 - - parameterized-utils ==2.1.8.0 + - parameterized-utils ==2.1.9.0 - park-bench ==0.1.1.0 - parseargs ==0.2.0.9 - parsec-class ==1.0.1.0 @@ -2214,11 +2214,11 @@ default-package-overrides: - perfect-hash-generator ==1.0.0 - persistable-record ==0.6.0.6 - persistable-types-HDBC-pg ==0.0.3.5 - - persistent ==2.14.6.2 + - persistent ==2.14.6.3 - persistent-discover ==0.1.0.7 - persistent-iproute ==0.2.5 - persistent-lens ==1.0.0 - - persistent-mongoDB ==2.13.0.1 + - persistent-mongoDB ==2.13.1.0 - persistent-mtl ==0.5.1 - persistent-mysql ==2.13.1.5 - persistent-pagination ==0.1.1.2 @@ -2356,7 +2356,7 @@ default-package-overrides: - pureMD5 ==2.1.4 - purescript-bridge ==0.15.0.0 - purview ==0.2.0.2 - - pusher-http-haskell ==2.1.0.17 + - pusher-http-haskell ==2.1.0.18 - pvar ==1.0.0.0 - pwstore-fast ==2.4.4 - PyF ==0.11.3.0 @@ -2403,7 +2403,7 @@ default-package-overrides: - Ranged-sets ==0.4.0 - ranges ==0.2.4 - range-set-list ==0.1.3.1 - - rank1dynamic ==0.4.1 + - rank1dynamic ==0.4.2 - rank2classes ==1.5.3.1 - Rasterific ==0.7.5.4 - rasterific-svg ==0.3.3.2 @@ -2477,7 +2477,7 @@ default-package-overrides: - resolv ==0.2.0.2 - resource-pool ==0.4.0.0 - resourcet ==1.3.0 - - rest-rewrite ==0.4.3 + - rest-rewrite ==0.4.4 - result ==0.2.6.0 - retry ==0.9.3.1 - rex ==0.6.2 @@ -2511,7 +2511,7 @@ default-package-overrides: - runmemo ==1.0.0.1 - run-st ==0.1.3.3 - rvar ==0.3.0.2 - - rzk ==0.7.4 + - rzk ==0.7.5 - s3-signer ==0.5.0.0 - safe ==0.3.21 - safe-coloured-text ==0.2.0.2 @@ -2535,7 +2535,7 @@ default-package-overrides: - sampling ==0.3.5 - sandi ==0.5 - sandwich ==0.2.2.0 - - sandwich-hedgehog ==0.1.3.0 + - sandwich-hedgehog ==0.1.3.1 - sandwich-quickcheck ==0.1.0.7 - sandwich-slack ==0.1.2.0 - sandwich-webdriver ==0.2.3.1 @@ -2574,41 +2574,41 @@ default-package-overrides: - seqalign ==0.2.0.4 - seqid ==0.6.3 - seqid-streams ==0.7.2 - - sequence-formats ==1.8.1.0 + - sequence-formats ==1.8.1.1 - sequenceTools ==1.5.3.1 - serialise ==0.2.6.1 - - servant ==0.20.1 - - servant-auth ==0.4.1.0 - - servant-auth-client ==0.4.1.1 - - servant-auth-docs ==0.2.10.1 - - servant-auth-server ==0.4.8.0 - - servant-auth-swagger ==0.2.10.2 + - servant ==0.20.2 + - servant-auth ==0.4.2.0 + - servant-auth-client ==0.4.2.0 + - servant-auth-docs ==0.2.11.0 + - servant-auth-server ==0.4.9.0 + - servant-auth-swagger ==0.2.11.0 - servant-blaze ==0.9.1 - servant-checked-exceptions ==2.2.0.1 - servant-checked-exceptions-core ==2.2.0.1 - - servant-client ==0.20 - - servant-client-core ==0.20 - - servant-conduit ==0.16 - - servant-docs ==0.13 + - servant-client ==0.20.2 + - servant-client-core ==0.20.2 + - servant-conduit ==0.16.1 + - servant-docs ==0.13.1 - servant-elm ==0.7.3 - servant-exceptions ==0.2.1 - servant-exceptions-server ==0.2.1 - - servant-foreign ==0.16 - - servant-http-streams ==0.20 + - servant-foreign ==0.16.1 + - servant-http-streams ==0.20.2 - servant-JuicyPixels ==0.3.1.1 - servant-lucid ==0.9.0.6 - - servant-machines ==0.16 + - servant-machines ==0.16.1 - servant-multipart ==0.12.1 - servant-multipart-api ==0.12.1 - servant-multipart-client ==0.12.2 - servant-openapi3 ==2.0.1.6 - - servant-pipes ==0.16 + - servant-pipes ==0.16.1 - servant-rate-limit ==0.2.0.0 - servant-rawm ==1.0.0.0 - - servant-server ==0.20 + - servant-server ==0.20.2 - servant-static-th ==1.0.0.0 - servant-subscriber ==0.7.0.0 - - servant-swagger ==1.2 + - servant-swagger ==1.2.1 - servant-swagger-ui ==0.3.5.5.0.0 - servant-swagger-ui-core ==0.3.5 - servant-swagger-ui-redoc ==0.3.4.1.22.3 @@ -2671,13 +2671,13 @@ default-package-overrides: - singletons-th ==3.2 - Sit ==0.2023.8.3 - sitemap-gen ==0.1.0.0 - - size-based ==0.1.3.2 + - size-based ==0.1.3.3 - sized ==1.1.0.2 - skein ==1.0.9.4 - skews ==0.1.0.3 - skip-var ==0.1.1.0 - - skylighting ==0.14.2 - - skylighting-core ==0.14.2 + - skylighting ==0.14.3 + - skylighting-core ==0.14.3 - skylighting-format-ansi ==0.1 - skylighting-format-blaze-html ==0.1.1.2 - skylighting-format-context ==0.1.0.2 @@ -2818,7 +2818,7 @@ default-package-overrides: - sydtest-rabbitmq ==0.1.0.0 - sydtest-servant ==0.2.0.2 - sydtest-typed-process ==0.0.0.0 - - sydtest-wai ==0.2.0.1 + - sydtest-wai ==0.2.0.2 - sydtest-webdriver ==0.0.0.1 - sydtest-webdriver-screenshot ==0.0.0.2 - sydtest-webdriver-yesod ==0.0.0.1 @@ -2914,7 +2914,7 @@ default-package-overrides: - text-ansi ==0.3.0.1 - text-binary ==0.2.1.1 - text-builder ==0.6.7.2 - - text-builder-dev ==0.3.4.4 + - text-builder-dev ==0.3.5 - text-builder-linear ==0.1.3 - text-conversions ==0.3.1.1 - text-format ==0.3.2.1 @@ -3033,7 +3033,7 @@ default-package-overrides: - twitter-types ==0.11.0 - twitter-types-lens ==0.11.0 - typecheck-plugin-nat-simple ==0.1.0.9 - - typed-process ==0.2.11.1 + - typed-process ==0.2.12.0 - typed-uuid ==0.2.0.0 - type-equality ==1.0.1 - type-errors ==0.2.0.2 @@ -3095,7 +3095,7 @@ default-package-overrides: - universe-reverse-instances ==1.1.1 - universe-some ==1.2.1 - universum ==1.8.2.1 - - unix-bytestring ==0.4.0.1 + - unix-bytestring ==0.4.0.2 - unix-compat ==0.7.2 - unix-time ==0.4.15 - unjson ==0.15.4 @@ -3127,7 +3127,7 @@ default-package-overrides: - validity-aeson ==0.2.0.5 - validity-bytestring ==0.4.1.1 - validity-case-insensitive ==0.0.0.0 - - validity-containers ==0.5.0.4 + - validity-containers ==0.5.0.5 - validity-network-uri ==0.0.0.1 - validity-path ==0.4.0.1 - validity-persistent ==0.0.0.0 @@ -3207,7 +3207,7 @@ default-package-overrides: - wai-websockets ==3.0.1.2 - wakame ==0.1.0.0 - warp ==3.3.31 - - warp-tls ==3.4.6 + - warp-tls ==3.4.7 - wave ==0.2.1 - wcwidth ==0.0.2 - webdriver ==0.12.0.0 From 7e74a964e4873bccf96fb5dc36cf34fae894f26e Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 5 Oct 2024 21:38:55 +0200 Subject: [PATCH 0121/1574] all-cabal-hashes: 2024-09-03T10:29:19Z -> 2024-10-05T14:46:54Z This commit has been generated by maintainers/scripts/haskell/update-hackage.sh --- pkgs/data/misc/hackage/pin.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/data/misc/hackage/pin.json b/pkgs/data/misc/hackage/pin.json index 97532fab180f..557a787a0965 100644 --- a/pkgs/data/misc/hackage/pin.json +++ b/pkgs/data/misc/hackage/pin.json @@ -1,6 +1,6 @@ { - "commit": "5d97d9c05e76d8cecb68f1e9063afb39ca0fb26b", - "url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/5d97d9c05e76d8cecb68f1e9063afb39ca0fb26b.tar.gz", - "sha256": "1ic4wn5immv06m1m2cq6mzrrgrxbidxmj39licxlkmnm9jlwzjwr", - "msg": "Update from Hackage at 2024-09-03T10:29:19Z" + "commit": "750067bc36e810a96c066c8800438e0ce9ced327", + "url": "https://github.com/commercialhaskell/all-cabal-hashes/archive/750067bc36e810a96c066c8800438e0ce9ced327.tar.gz", + "sha256": "1bfr8r14rkisjp1f3iln12h4f5n66k8wkk09jvk7adal4grlpjny", + "msg": "Update from Hackage at 2024-10-05T14:46:54Z" } From a82b1d5ab866b8e80066c86a12c37c7268d3d523 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Sat, 5 Oct 2024 21:47:19 +0200 Subject: [PATCH 0122/1574] haskellPackages: regenerate package set based on current config This commit has been generated by maintainers/scripts/haskell/regenerate-hackage-packages.sh --- .../haskell-modules/hackage-packages.nix | 4066 +++++++++-------- 1 file changed, 2241 insertions(+), 1825 deletions(-) diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 5502eb170378..9dfd9f18197a 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -820,8 +820,8 @@ self: { }: mkDerivation { pname = "Agda"; - version = "2.7.0"; - sha256 = "005rsk46b7rl516n58cfzg5aqzqwb1gkz7wpz2lqg0qlrlw0jyh0"; + version = "2.7.0.1"; + sha256 = "13pn0mbxyfy04fcdl68l2m36b40hwk8iwpkqdfad3xsf9l5ddxil"; isLibrary = true; isExecutable = true; enableSeparateDataOutput = true; @@ -1170,8 +1170,8 @@ self: { }: mkDerivation { pname = "AsyncRattus"; - version = "0.2.0.1"; - sha256 = "0ay2j22x0awmlqvskwzslv637jqac5byf0pkmy4ymfmgkhpay9sn"; + version = "0.2.0.2"; + sha256 = "07m3iksjqs5zkm4vxjjlmamhj7lq3hal4yxsmv2zci0bq2ak7qs7"; setupHaskellDepends = [ base Cabal ]; libraryHaskellDepends = [ base containers ghc ghc-boot hashtables simple-affine-space @@ -2926,15 +2926,15 @@ self: { hydraPlatforms = lib.platforms.none; }) {}; - "Cabal_3_12_1_0" = callPackage + "Cabal_3_14_0_0" = callPackage ({ mkDerivation, array, base, bytestring, Cabal-syntax, containers , deepseq, directory, filepath, mtl, parsec, pretty, process, time , transformers, unix }: mkDerivation { pname = "Cabal"; - version = "3.12.1.0"; - sha256 = "1lmnmp1ag9lwaxks66ba26mi4q10afnl0a82nj1fv27bnjzz8hkn"; + version = "3.14.0.0"; + sha256 = "0pfvw4r4xdnis34k4pz987283g2r5gv3akxnfp7s3jgxffd7nm94"; setupHaskellDepends = [ mtl parsec ]; libraryHaskellDepends = [ array base bytestring Cabal-syntax containers deepseq directory @@ -3023,15 +3023,15 @@ self: { hydraPlatforms = lib.platforms.none; }) {}; - "Cabal-syntax_3_12_1_0" = callPackage + "Cabal-syntax_3_14_0_0" = callPackage ({ mkDerivation, alex, array, base, binary, bytestring, containers , deepseq, directory, filepath, mtl, parsec, pretty, text, time , transformers }: mkDerivation { pname = "Cabal-syntax"; - version = "3.12.1.0"; - sha256 = "1d045h470yykabz5d89896d6v2p1vng373s7bgysfdmzqhgd7wp5"; + version = "3.14.0.0"; + sha256 = "0c9gwm9za13zvrwbq2lgzfcw6r42r2pwc424qk3vjnv4kazrni5x"; libraryHaskellDepends = [ array base binary bytestring containers deepseq directory filepath mtl parsec pretty text time transformers @@ -3205,6 +3205,8 @@ self: { pname = "Chart"; version = "1.9.5"; sha256 = "0nyzdag9p56vknrphdnqjsf19fmw9abs81avdm2vjgh9cnw2y7hc"; + revision = "1"; + editedCabalFile = "0gi758fccq3674sxzs5qcdlyjivh78lzin5k4cb15d3gscjakkhk"; libraryHaskellDepends = [ array base colour data-default-class lens mtl old-locale operational time vector @@ -3221,6 +3223,8 @@ self: { pname = "Chart-cairo"; version = "1.9.4.1"; sha256 = "0x10l9y38bscx88n849k9ybn7axp4j9hlivc1jv9wwvv4gqw5jr7"; + revision = "1"; + editedCabalFile = "193liy309yb9dnlfzfrc2kis0g8mj6ni1pqfr4kpn860r1m5gr5b"; libraryHaskellDepends = [ array base cairo Chart colour data-default-class lens mtl old-locale operational time @@ -3239,6 +3243,8 @@ self: { pname = "Chart-diagrams"; version = "1.9.5.1"; sha256 = "1pk2fsmjl2dsabzpdwk3190nw0nwy581c4qsl93npx764qcxkp7q"; + revision = "1"; + editedCabalFile = "0s2c4qrmy21y7cmsq24g67fw1q5vsspda8bz2ybp6117crnzw817"; enableSeparateDataOutput = true; libraryHaskellDepends = [ base blaze-markup bytestring Chart colour containers @@ -3346,26 +3352,6 @@ self: { }) {}; "ChasingBottoms" = callPackage - ({ mkDerivation, array, base, containers, mtl, QuickCheck, random - , syb - }: - mkDerivation { - pname = "ChasingBottoms"; - version = "1.3.1.14"; - sha256 = "0rmpi7n0b9spvx84645z2zcnnvg75s40zl05c8iigzciyjax3v5y"; - revision = "1"; - editedCabalFile = "12ndnigvq4bhw65ia2ahy741krph0p1w50d8q9irw3ggaic9ijry"; - libraryHaskellDepends = [ - base containers mtl QuickCheck random syb - ]; - testHaskellDepends = [ - array base containers mtl QuickCheck random syb - ]; - description = "For testing partial and infinite values"; - license = lib.licenses.mit; - }) {}; - - "ChasingBottoms_1_3_1_15" = callPackage ({ mkDerivation, array, base, containers, mtl, QuickCheck, random , syb }: @@ -3381,7 +3367,6 @@ self: { ]; description = "For testing partial and infinite values"; license = lib.licenses.mit; - hydraPlatforms = lib.platforms.none; }) {}; "CheatSheet" = callPackage @@ -7130,8 +7115,8 @@ self: { }: mkDerivation { pname = "GLFW-b"; - version = "3.3.9.0"; - sha256 = "12n75mh0szw43y1fqsf95cbwvqy9gmmq7h3lii7gs02mv45fysrc"; + version = "3.3.9.1"; + sha256 = "0slj4a12y8n3api71kshfnhnqxd4zaf020lm1050bq0jsx35pja6"; libraryHaskellDepends = [ array base bindings-GLFW deepseq ]; testHaskellDepends = [ array base bindings-GLFW deepseq HUnit test-framework @@ -11513,20 +11498,6 @@ self: { }) {Judy = null;}; "HsOpenSSL" = callPackage - ({ mkDerivation, base, bytestring, Cabal, network, openssl, time }: - mkDerivation { - pname = "HsOpenSSL"; - version = "0.11.7.7"; - sha256 = "0aza9w7ny1aangaspg4wkzhy0s26ngvfdq4zrd24iha1d9qh4nq8"; - setupHaskellDepends = [ base Cabal ]; - libraryHaskellDepends = [ base bytestring network time ]; - librarySystemDepends = [ openssl ]; - testHaskellDepends = [ base bytestring ]; - description = "Partial OpenSSL binding for Haskell"; - license = lib.licenses.publicDomain; - }) {inherit (pkgs) openssl;}; - - "HsOpenSSL_0_11_7_8" = callPackage ({ mkDerivation, base, bytestring, Cabal, network, openssl, time }: mkDerivation { pname = "HsOpenSSL"; @@ -11538,7 +11509,6 @@ self: { testHaskellDepends = [ base bytestring ]; description = "Partial OpenSSL binding for Haskell"; license = lib.licenses.publicDomain; - hydraPlatforms = lib.platforms.none; }) {inherit (pkgs) openssl;}; "HsOpenSSL-x509-system" = callPackage @@ -13989,10 +13959,8 @@ self: { }: mkDerivation { pname = "MIP"; - version = "0.1.1.0"; - sha256 = "03gzwg0hzgij9hpxxfsrdxx2cknfy9fr9h1w1na04bmzpai1sl40"; - revision = "2"; - editedCabalFile = "03kjzsyd3sy9iipdnac5ddpkq6v1cfpj0wh00r3yvcjgrk99ycip"; + version = "0.1.2.0"; + sha256 = "0klbcqzi7iq0fffci9mq98smx0wksij4cfmg09v7k37dhs958mgd"; libraryHaskellDepends = [ base bytestring bytestring-encoding case-insensitive containers data-default-class extended-reals filepath intern lattices @@ -14112,6 +14080,18 @@ self: { hydraPlatforms = lib.platforms.none; }) {}; + "Mantissa" = callPackage + ({ mkDerivation, base, hspec }: + mkDerivation { + pname = "Mantissa"; + version = "0.1.0.0"; + sha256 = "1xi8pc9gz6j1bvz77mgfh6xw39dbxb6hjrfqj3kx5d702j1y8b9l"; + libraryHaskellDepends = [ base ]; + testHaskellDepends = [ base hspec ]; + description = "Reals in the interval [0,1), as machine words"; + license = lib.licenses.bsd3; + }) {}; + "Map" = callPackage ({ mkDerivation, base, containers, either-both, filtrable , smallcheck, tasty, tasty-smallcheck, util @@ -14367,8 +14347,8 @@ self: { ({ mkDerivation, base, directory, process }: mkDerivation { pname = "MicroCabal"; - version = "0.2.0.0"; - sha256 = "1i5y0xkq0ac74yrjmk9s2vjlgbiscz0d6b1kll42mbk6adkfd02x"; + version = "0.2.1.1"; + sha256 = "0yln9inja3m624qqpslws8jxk4x27v0yy7pc7p7915c15lxnpy68"; isLibrary = false; isExecutable = true; executableHaskellDepends = [ base directory process ]; @@ -14383,15 +14363,15 @@ self: { }: mkDerivation { pname = "MicroHs"; - version = "0.9.17.0"; - sha256 = "00dvbpdpbx1dh44rixsw16gb748bdxiizdivnl3i4v9826hfx8x0"; + version = "0.9.18.0"; + sha256 = "1w1aazbsl80xk6kxmkcii6y33i42hw64bhjwcn62grh5xb220hag"; isLibrary = false; isExecutable = true; enableSeparateDataOutput = true; executableHaskellDepends = [ base deepseq directory ghc-prim haskeline process text time ]; - description = "A compiler for Haskell"; + description = "A small compiler for Haskell"; license = lib.licenses.asl20; mainProgram = "mhs"; }) {}; @@ -16897,8 +16877,8 @@ self: { ({ mkDerivation, base, containers, diagrams-lib, hspec }: mkDerivation { pname = "PenroseKiteDart"; - version = "1.0.0"; - sha256 = "068r77shs4j5vhwdzwwxq0c3ajx0nhrm8apdb8j2h5kb0s3yav5y"; + version = "1.1.0"; + sha256 = "0m1wigw2n2cp1cgbj615xrzqq81yaaprdrfnpd7qilnzijrp0biq"; libraryHaskellDepends = [ base containers diagrams-lib ]; testHaskellDepends = [ base containers diagrams-lib hspec ]; benchmarkHaskellDepends = [ base containers diagrams-lib ]; @@ -19059,6 +19039,8 @@ self: { pname = "SVGFonts"; version = "1.8.0.1"; sha256 = "0r3z7i7x56qvhyc51jlq084c1biy9xn72nm19mw116gx49rm32k9"; + revision = "1"; + editedCabalFile = "0w4bcmfja0spjwfiysa6xzvr6k1f2b8qp5r57b9138zrcllzkrap"; enableSeparateDataOutput = true; libraryHaskellDepends = [ attoparsec base blaze-markup blaze-svg bytestring cereal @@ -20043,6 +20025,8 @@ self: { pname = "Sit"; version = "0.2023.8.3"; sha256 = "1psmfgh1bklx52az1097n23nzfjnab002dcqrq140jqhnpfw7ynr"; + revision = "1"; + editedCabalFile = "0f2dwl2p9xms7qxsnsf18hmywvlsz96gb6zdzc2nmcr367vqkkcd"; isLibrary = true; isExecutable = true; enableSeparateDataOutput = true; @@ -26026,14 +26010,36 @@ self: { license = lib.licenses.bsd3; }) {}; + "aern2-mp_0_2_16_0" = callPackage + ({ mkDerivation, base, cdar-mBound, collect-errors, deepseq, hspec + , integer-logarithms, mixed-types-num, QuickCheck, reflection + , regex-tdfa, template-haskell + }: + mkDerivation { + pname = "aern2-mp"; + version = "0.2.16.0"; + sha256 = "1q9rc53zj49yfn5ap8khx8gvgphw7dr86agi77xaj1d0d97x35pi"; + libraryHaskellDepends = [ + base cdar-mBound collect-errors deepseq hspec integer-logarithms + mixed-types-num QuickCheck reflection regex-tdfa template-haskell + ]; + testHaskellDepends = [ + base cdar-mBound collect-errors deepseq hspec integer-logarithms + mixed-types-num QuickCheck reflection regex-tdfa template-haskell + ]; + description = "Multi-precision ball (interval) arithmetic"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "aern2-real" = callPackage ({ mkDerivation, aern2-mp, base, collect-errors, hspec , integer-logarithms, mixed-types-num, QuickCheck }: mkDerivation { pname = "aern2-real"; - version = "0.2.15"; - sha256 = "0r3b2m728dwsyj5qcy7pczmbvcnb7712jj830pssy2065d1ws2rx"; + version = "0.2.15.1"; + sha256 = "0vil86s8cmigdk8wss0kxa74p4bw6f56lmxi9x0gm62xnj63awvg"; libraryHaskellDepends = [ aern2-mp base collect-errors hspec integer-logarithms mixed-types-num QuickCheck @@ -26046,6 +26052,27 @@ self: { license = lib.licenses.bsd3; }) {}; + "aern2-real_0_2_16_0" = callPackage + ({ mkDerivation, aern2-mp, base, collect-errors, hspec + , integer-logarithms, mixed-types-num, QuickCheck + }: + mkDerivation { + pname = "aern2-real"; + version = "0.2.16.0"; + sha256 = "14rdjkqpmk4f7135ssn03b7bqbakixx0hrrx742dc379pjq57k7d"; + libraryHaskellDepends = [ + aern2-mp base collect-errors hspec integer-logarithms + mixed-types-num QuickCheck + ]; + testHaskellDepends = [ + aern2-mp base collect-errors hspec integer-logarithms + mixed-types-num QuickCheck + ]; + description = "Real numbers as convergent sequences of intervals"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "aeson_1_5_6_0" = callPackage ({ mkDerivation, attoparsec, base, base-compat , base-compat-batteries, base-orphans, base16-bytestring @@ -27350,6 +27377,32 @@ self: { hydraPlatforms = lib.platforms.none; }) {}; + "aftovolio" = callPackage + ({ mkDerivation, async, base, cli-arguments, containers, deepseq + , directory, intermediate-structures, lists-flines, minmax + , mmsyn2-array, monoid-insertleft, quantizer, rev-scientific + , rhythmic-sequences + }: + mkDerivation { + pname = "aftovolio"; + version = "0.2.1.0"; + sha256 = "18z69rzzzfkf4mivjzz9g5h4l1c7lc8s1dnsa6d1xwafhbc2mp2h"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + async base cli-arguments containers deepseq directory + intermediate-structures lists-flines minmax mmsyn2-array + monoid-insertleft quantizer rev-scientific rhythmic-sequences + ]; + executableHaskellDepends = [ + async base cli-arguments containers deepseq directory + intermediate-structures lists-flines minmax mmsyn2-array + monoid-insertleft quantizer rev-scientific rhythmic-sequences + ]; + description = "An AFTOVolio implementation for creating texts with special phonetic / prosodic properties"; + license = lib.licenses.mit; + }) {}; + "afv" = callPackage ({ mkDerivation, base, bytestring, directory, language-c, mtl , process, yices @@ -27505,18 +27558,20 @@ self: { "agda2hs" = callPackage ({ mkDerivation, aeson, Agda, base, bytestring, containers, deepseq - , directory, filepath, haskell-src-exts, mtl, syb, text - , unordered-containers, yaml + , directory, filepath, haskell-src-exts, monad-control, mtl, syb + , text, transformers, unordered-containers, yaml }: mkDerivation { pname = "agda2hs"; - version = "1.2"; - sha256 = "0xd9ngvymr1wix1hhf6i3qm2sc1n2zgf6gpc2ss4plhbaw60idpx"; + version = "1.3"; + sha256 = "0vifmyqyhsjib3yqdxj59qlxh22wmbz7vbj1z0axwfpvy5mhvidk"; isLibrary = false; isExecutable = true; + enableSeparateDataOutput = true; executableHaskellDepends = [ aeson Agda base bytestring containers deepseq directory filepath - haskell-src-exts mtl syb text unordered-containers yaml + haskell-src-exts monad-control mtl syb text transformers + unordered-containers yaml ]; description = "Compiling Agda code to readable Haskell"; license = lib.licenses.bsd3; @@ -28263,8 +28318,8 @@ self: { }: mkDerivation { pname = "alfred-margaret"; - version = "2.1.0.0"; - sha256 = "1k4qmj15wlk7mdmi2nv3a3wyykf4fgjsdkjpvzkwd26zd3aasl9c"; + version = "2.1.0.2"; + sha256 = "1pn15w5avqlsy4yj6n08kgvqq7l24p1vz3daq7djjvqxlrkgcmnx"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -38758,8 +38813,8 @@ self: { }: mkDerivation { pname = "apple"; - version = "0.2.0.0"; - sha256 = "0si1yqwplmxggfd4gifakk9hy2fwycgb4m6vhmzwpx08gjwdls08"; + version = "0.3.0.0"; + sha256 = "09vhpv00xaavfjq3wx4361mhfi92mbhcvqcwvb55aad9dd6x4x63"; isLibrary = true; isExecutable = true; enableSeparateDataOutput = true; @@ -38781,7 +38836,7 @@ self: { ]; testToolDepends = [ cpphs ]; benchmarkHaskellDepends = [ - base bytestring criterion erf hypergeometric statistics + base bytestring criterion deepseq erf hypergeometric statistics ]; doHaddock = false; description = "Apple array language compiler"; @@ -40253,12 +40308,14 @@ self: { broken = true; }) {inherit (pkgs) arpack;}; - "array_0_5_7_0" = callPackage + "array_0_5_8_0" = callPackage ({ mkDerivation, base }: mkDerivation { pname = "array"; - version = "0.5.7.0"; - sha256 = "155ka0ax0z0niwgy68cnrh3zd75a5xw1i6wvaaqk0sszgxqr6myh"; + version = "0.5.8.0"; + sha256 = "0sz6cm7p8n7kh8xyn0lpl7g6g744r57v9c2d827ng3b0mkb2s0is"; + revision = "1"; + editedCabalFile = "0j8lbxf3wliz3cal5zp9bh0ifisn0kncadg98fnlav5ls8rmby8n"; libraryHaskellDepends = [ base ]; description = "Mutable and immutable arrays"; license = lib.licenses.bsd3; @@ -42231,6 +42288,26 @@ self: { license = lib.licenses.mit; }) {}; + "atomic-write_0_2_1_0" = callPackage + ({ mkDerivation, base, bytestring, directory, filepath, hspec + , hspec-discover, temporary, text, unix-compat + }: + mkDerivation { + pname = "atomic-write"; + version = "0.2.1.0"; + sha256 = "0fdmh8rk5mvc356gi31d4lh49cgqafg364wc34i05q9zlx2fvka4"; + libraryHaskellDepends = [ + base bytestring directory filepath temporary text unix-compat + ]; + testHaskellDepends = [ + base bytestring filepath hspec temporary text unix-compat + ]; + testToolDepends = [ hspec-discover ]; + description = "Atomically write to a file"; + license = lib.licenses.mit; + hydraPlatforms = lib.platforms.none; + }) {}; + "atomo" = callPackage ({ mkDerivation, array, base, bytestring, containers, directory , filepath, hashable, haskeline, hint, mtl, parsec, pretty @@ -47693,8 +47770,8 @@ self: { pname = "beam-migrate"; version = "0.5.2.1"; sha256 = "16gl39cpj7gvb82i41h18606n6k40hi8lfyyw1x0dq73xs2ldfyc"; - revision = "1"; - editedCabalFile = "0cc0pbll3w08c3birv8isfvn8a6yd0i837gmkl12lh0gvshqph82"; + revision = "2"; + editedCabalFile = "0788nzixn3fnm57vw5s69rwc3qmw0rr1d46lqwzxdsxqzcywq644"; libraryHaskellDepends = [ aeson base beam-core bytestring containers deepseq dependent-map dependent-sum free ghc-prim hashable haskell-src-exts microlens mtl @@ -49720,8 +49797,8 @@ self: { }: mkDerivation { pname = "bindings-GLFW"; - version = "3.3.9.1"; - sha256 = "0j0vka9i2b8nl3xyfx3wzhhyyx0zqd4gxd25rrna5k0wvnqk27w5"; + version = "3.3.9.2"; + sha256 = "1ydlxnxgh2m9xlsizimchdf8iyr78w9dx8165ni0cwi1szw8955x"; libraryHaskellDepends = [ base bindings-DSL ]; librarySystemDepends = [ libGL libX11 libXcursor libXext libXfixes libXi libXinerama @@ -50531,34 +50608,35 @@ self: { "binrep" = callPackage ({ mkDerivation, base, bytestring, bytezap, deepseq, defun-core , flatparse, gauge, generic-data-functions, generic-random - , generic-type-asserts, generic-type-functions, hspec + , generic-type-asserts, generic-type-functions, ghc-bignum, hspec , hspec-discover, parser-combinators, QuickCheck - , quickcheck-instances, refined1, strongweak, text, text-icu - , type-level-bytestrings + , quickcheck-instances, rerefined, strongweak, text + , text-builder-linear, text-icu, type-level-bytestrings + , type-level-show }: mkDerivation { pname = "binrep"; - version = "0.8.0"; - sha256 = "1bsncrkxixp28ffmm2dgfpai3nv8cq0db3fdy11y6gi7rri7g8cj"; + version = "1.0.0"; + sha256 = "1m81r00b8wh1sz6y5jk0vgpj7ljp1fafb5zggc77zy77fak7fc7b"; libraryHaskellDepends = [ base bytestring bytezap deepseq defun-core flatparse generic-data-functions generic-type-asserts generic-type-functions - parser-combinators refined1 strongweak text text-icu - type-level-bytestrings + ghc-bignum parser-combinators rerefined strongweak text + text-builder-linear text-icu type-level-bytestrings type-level-show ]; testHaskellDepends = [ base bytestring bytezap deepseq defun-core flatparse generic-data-functions generic-random generic-type-asserts - generic-type-functions hspec parser-combinators QuickCheck - quickcheck-instances refined1 strongweak text text-icu - type-level-bytestrings + generic-type-functions ghc-bignum hspec parser-combinators + QuickCheck quickcheck-instances rerefined strongweak text + text-builder-linear text-icu type-level-bytestrings type-level-show ]; testToolDepends = [ hspec-discover ]; benchmarkHaskellDepends = [ base bytestring bytezap deepseq defun-core flatparse gauge generic-data-functions generic-type-asserts generic-type-functions - parser-combinators refined1 strongweak text text-icu - type-level-bytestrings + ghc-bignum parser-combinators rerefined strongweak text + text-builder-linear text-icu type-level-bytestrings type-level-show ]; description = "Encode precise binary representations directly in types"; license = lib.licenses.mit; @@ -51911,8 +51989,8 @@ self: { pname = "bitwise"; version = "1.0.0.1"; sha256 = "03xyzdkyb99gvm9g5chl07rqbnm7qrxba7wgmrfmal0rkwm0ibkn"; - revision = "9"; - editedCabalFile = "1xc1p66ykfz59v4dh84pg4fzdlmibix68qn1cn33k04xrlyfnnl0"; + revision = "10"; + editedCabalFile = "07m37y6g4lr9idjr88q92khla4zddkgvxlq097ilahdapxfhb9m9"; libraryHaskellDepends = [ array base bytestring ]; testHaskellDepends = [ base QuickCheck ]; benchmarkHaskellDepends = [ array base bytestring criterion ]; @@ -52820,8 +52898,8 @@ self: { }: mkDerivation { pname = "blockfrost-api"; - version = "0.11.0.0"; - sha256 = "1lqbpjzvz5rc3bkfgk09mgz6p99cxy19yx2azyshb37xxiaj8www"; + version = "0.12.1.0"; + sha256 = "0v3v42qlwiq9vmxb7n9y0sx6fpj58l367a28mrhjkagj3skh1m08"; libraryHaskellDepends = [ aeson base bytestring containers data-default-class deriving-aeson lens safe-money servant servant-docs servant-multipart-api @@ -52844,8 +52922,8 @@ self: { }: mkDerivation { pname = "blockfrost-client"; - version = "0.8.0.1"; - sha256 = "19qziw3n75ilrhdgi982dwcz29dmfp4wzbrz99p2b1lfd0ir10lj"; + version = "0.9.1.0"; + sha256 = "14pgfkpp3k1vnci718w7hcn4wmj81lbwdw14kmixb31haqajvn6n"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -52984,30 +53062,32 @@ self: { license = lib.licenses.bsd3; }) {}; - "bloodhound_0_22_0_0" = callPackage - ({ mkDerivation, aeson, base, blaze-builder, bytestring, containers - , errors, exceptions, generic-random, hashable, hspec, http-client - , http-types, microlens, microlens-aeson, mtl, network-uri + "bloodhound_0_23_0_0" = callPackage + ({ mkDerivation, aeson, aeson-optics, base, blaze-builder + , bytestring, containers, doctest, errors, exceptions + , generic-random, hashable, hspec, hspec-discover, http-client + , http-types, microlens, mtl, network-uri, optics, optics-core , pretty-simple, QuickCheck, quickcheck-properties, scientific - , semigroups, semver, temporary, text, time, transformers - , unix-compat, unordered-containers, vector + , template-haskell, temporary, text, time, unix-compat + , unordered-containers, vector, versions }: mkDerivation { pname = "bloodhound"; - version = "0.22.0.0"; - sha256 = "0w96zrv2rrhwiahf2x619l2ivqrj5jnih5ck216wrnzj6axlh9j4"; + version = "0.23.0.0"; + sha256 = "0rbvjjjjdx86sg3pi04isb46ifip0m9kmrk9pyn3b49xng5nfk85"; libraryHaskellDepends = [ aeson base blaze-builder bytestring containers exceptions hashable - http-client http-types mtl network-uri scientific semigroups semver - text time transformers unordered-containers vector + http-client http-types mtl network-uri optics-core scientific + template-haskell text time unordered-containers vector versions ]; testHaskellDepends = [ - aeson base blaze-builder bytestring containers errors exceptions - generic-random hashable hspec http-client http-types microlens - microlens-aeson mtl network-uri pretty-simple QuickCheck - quickcheck-properties scientific semigroups semver temporary text - time transformers unix-compat unordered-containers vector + aeson aeson-optics base bytestring containers doctest errors + exceptions generic-random hspec hspec-discover http-client + http-types microlens mtl optics pretty-simple QuickCheck + quickcheck-properties temporary text time unix-compat vector + versions ]; + testToolDepends = [ hspec-discover ]; description = "Elasticsearch client library for Haskell"; license = lib.licenses.bsd3; hydraPlatforms = lib.platforms.none; @@ -53238,10 +53318,8 @@ self: { ({ mkDerivation, bluefin-internal }: mkDerivation { pname = "bluefin"; - version = "0.0.7.0"; - sha256 = "1nr6kcckhz3k7nfzavjf24c655ccin0fnyxl238asic01h1d1bny"; - revision = "1"; - editedCabalFile = "1z6y9m8ikhy1h9hjvb3dccpqb567svzavl42i9s74aiybz3gs2gv"; + version = "0.0.8.0"; + sha256 = "16gzb82lrxhw4s1b1gmq03k094lfpczsls8csv02l77bkipjmfh8"; libraryHaskellDepends = [ bluefin-internal ]; description = "The Bluefin effect system"; license = lib.licenses.mit; @@ -53272,8 +53350,10 @@ self: { }: mkDerivation { pname = "bluefin-internal"; - version = "0.0.7.0"; - sha256 = "1p6fz1nd4976ibb23ni8fdrp9i47m29gfq9v77rlp6biqappjakv"; + version = "0.0.8.0"; + sha256 = "1knhqll525qn74zbyqxn6k8d1zbb974h1qh92qpc7r3bqp5v576p"; + revision = "1"; + editedCabalFile = "1j27hka5sm5vld2mgvw238c4bg6ys7mzfjskdmdvbxs5yn6ywqpr"; libraryHaskellDepends = [ async base monad-control transformers transformers-base unliftio-core @@ -57495,24 +57575,6 @@ self: { }) {}; "bytestring-lexing" = callPackage - ({ mkDerivation, base, bytestring, tasty, tasty-quickcheck - , tasty-smallcheck - }: - mkDerivation { - pname = "bytestring-lexing"; - version = "0.5.0.12"; - sha256 = "09g5x7jwz9kby578rlj8c6f6zi0pzs169rsqd1vsn3q9gimkpj3j"; - revision = "1"; - editedCabalFile = "0zpqxy4n8mkf6ccmc3jb6ggrqmw9csh1nj08wwq196np28jsbkdv"; - libraryHaskellDepends = [ base bytestring ]; - testHaskellDepends = [ - base bytestring tasty tasty-quickcheck tasty-smallcheck - ]; - description = "Efficiently parse and produce common integral and fractional numbers"; - license = lib.licenses.bsd3; - }) {}; - - "bytestring-lexing_0_5_0_14" = callPackage ({ mkDerivation, base, bytestring, tasty, tasty-quickcheck , tasty-smallcheck }: @@ -57526,7 +57588,6 @@ self: { ]; description = "Efficiently parse and produce common integral and fractional numbers"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "bytestring-mmap" = callPackage @@ -57739,27 +57800,6 @@ self: { }) {}; "bytestring-trie" = callPackage - ({ mkDerivation, base, binary, bytestring, criterion, deepseq - , QuickCheck, smallcheck, tasty, tasty-hunit, tasty-quickcheck - , tasty-smallcheck - }: - mkDerivation { - pname = "bytestring-trie"; - version = "0.2.7.3"; - sha256 = "0cxhsczvfn0cxh4mmhv70rskrc023gy0gl57xiggbf64ng5c60f7"; - libraryHaskellDepends = [ base binary bytestring deepseq ]; - testHaskellDepends = [ - base binary bytestring deepseq QuickCheck smallcheck tasty - tasty-hunit tasty-quickcheck tasty-smallcheck - ]; - benchmarkHaskellDepends = [ - base binary bytestring criterion deepseq QuickCheck - ]; - description = "An efficient finite map from bytestrings to values"; - license = lib.licenses.bsd3; - }) {}; - - "bytestring-trie_0_2_7_5" = callPackage ({ mkDerivation, base, binary, bytestring, criterion, deepseq , QuickCheck, smallcheck, tasty, tasty-hunit, tasty-quickcheck , tasty-smallcheck @@ -57778,7 +57818,6 @@ self: { ]; description = "An efficient finite map from bytestrings to values"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "bytestring-typenats" = callPackage @@ -57881,8 +57920,8 @@ self: { }: mkDerivation { pname = "bytezap"; - version = "1.3.1"; - sha256 = "1d7icd2wxbmraw3qf4vmxlvc6pnl3c9z0ilm39f013sb5i9vsz5x"; + version = "1.6.0"; + sha256 = "1vavs3n1dlp37pc613m2n3427b9mc91nxw8wj27la45pzdx2k808"; libraryHaskellDepends = [ base bytestring defun-core generic-type-functions primitive text type-level-bytestrings @@ -58346,6 +58385,8 @@ self: { pname = "cabal-add"; version = "0.1"; sha256 = "1szbi0z8yf98641rwnj856gcfsvvflxwrfxraxy6rl60m7i0mab1"; + revision = "1"; + editedCabalFile = "0zwinjbnw4a191c951wwavbh6x6f300l0kgv53fiffxfn66x9w6f"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -58366,17 +58407,6 @@ self: { }) {}; "cabal-appimage" = callPackage - ({ mkDerivation, base, Cabal, filepath }: - mkDerivation { - pname = "cabal-appimage"; - version = "0.4.0.4"; - sha256 = "02d1cdhcqk4mpx0wy9rxfr9wsh1a7pjjdq5l1p2r5l5f0rnhkrbs"; - libraryHaskellDepends = [ base Cabal filepath ]; - description = "Cabal support for creating AppImage applications"; - license = lib.licenses.agpl3Only; - }) {}; - - "cabal-appimage_0_4_0_5" = callPackage ({ mkDerivation, base, Cabal, filepath }: mkDerivation { pname = "cabal-appimage"; @@ -58385,7 +58415,6 @@ self: { libraryHaskellDepends = [ base Cabal filepath ]; description = "Cabal support for creating AppImage applications"; license = lib.licenses.agpl3Only; - hydraPlatforms = lib.platforms.none; }) {}; "cabal-audit" = callPackage @@ -58429,8 +58458,8 @@ self: { }: mkDerivation { pname = "cabal-bounds"; - version = "2.5.0"; - sha256 = "0ddd6yc9ii7ibw7263aq455hwk50ggij28ycjvfi9p4cl6npp1f9"; + version = "2.6.0"; + sha256 = "0y4xj4irhppwsg3ljy6yzscfjdj7gh2prsiia51y8ma6gm87sjsy"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -58527,8 +58556,8 @@ self: { }: mkDerivation { pname = "cabal-cargs"; - version = "1.5.0"; - sha256 = "0dmhxrg8d7ajhfg85s7p6py9fywqbrnbd5z9i6mbh3f6cyc9hqak"; + version = "1.6.0"; + sha256 = "1kn21l5w838db558nijblar6i3z5jkh12d6l1yccxmd70lrb39vv"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -58986,6 +59015,8 @@ self: { pname = "cabal-hoogle"; version = "3.10.0.0"; sha256 = "0plvb2xg112brxq3ribwhpq8wfmdr43bn8yfcazvy86d6h2bgyyn"; + revision = "1"; + editedCabalFile = "0hkknwh6cbd61hxvariphrkyr9n3lgw3qzdq82gk1w0rqj14yhd4"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -59197,8 +59228,8 @@ self: { }: mkDerivation { pname = "cabal-lenses"; - version = "0.14.0"; - sha256 = "0ab6j4svnchw741spi1b4zsdiwr7hvl141dn30ggqq6lkn32icwm"; + version = "0.15.0"; + sha256 = "0m8p6pb92iqdaad319d4x09fmlhjvwhrfj81z7s0qnmfm77597af"; libraryHaskellDepends = [ base Cabal lens strict system-fileio system-filepath text transformers unordered-containers @@ -59470,6 +59501,38 @@ self: { mainProgram = "cabal-rpm"; }) {}; + "cabal-scaffold" = callPackage + ({ mkDerivation, aeson, attoparsec, base, base64-bytestring + , bytestring, case-insensitive, conduit, containers, dlist + , exceptions, foldable1-classes-compat, foldl, generic-lens + , githash, http-conduit, http-types, lens, lens-aeson, mustache + , optparse-applicative, path, path-io, project-template + , regex-applicative-text, replace-attoparsec, rio, rio-orphans + , safe-exceptions, streaming, streaming-attoparsec + , streaming-bytestring, strict, template-haskell, text, time + , transformers, unordered-containers, yaml + }: + mkDerivation { + pname = "cabal-scaffold"; + version = "0.1.0.0"; + sha256 = "0wmy4083ajrw5y5jyi46xw08hsrmbj9fzzwsi7wkcq5wwffcfxlp"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson attoparsec base base64-bytestring bytestring case-insensitive + conduit containers dlist exceptions foldable1-classes-compat foldl + generic-lens githash http-conduit http-types lens lens-aeson + mustache optparse-applicative path path-io project-template + regex-applicative-text replace-attoparsec rio rio-orphans + safe-exceptions streaming streaming-attoparsec streaming-bytestring + strict template-haskell text time transformers unordered-containers + yaml + ]; + executableHaskellDepends = [ base ]; + license = lib.licenses.bsd3; + mainProgram = "cabal-scaffold"; + }) {}; + "cabal-scripts" = callPackage ({ mkDerivation, base }: mkDerivation { @@ -62451,6 +62514,8 @@ self: { pname = "cassava-th"; version = "0.1.0.0"; sha256 = "1vq64yl6g3knk0vl1100q4w2hiz5pxharx1c6kf3xflcc2252cxh"; + revision = "1"; + editedCabalFile = "1z1rqg1xgsq1y14wv3r3hc621xm0080jkn55xnnx6clw14f3i82k"; libraryHaskellDepends = [ base bytestring cassava template-haskell text vector ]; @@ -67606,8 +67671,8 @@ self: { pname = "cli-extras"; version = "0.2.1.0"; sha256 = "1lg0ssbh2qhjjc31ins29ddy4lkzwxhlm3r9vcy1jk8al5aqa03f"; - revision = "1"; - editedCabalFile = "0fcybjf8zqzzjzfc5205plzphzk7z5v9p8nadqq7lp7m10ggjasc"; + revision = "2"; + editedCabalFile = "1x2wwph80zw9010cb9vhna9j4z5js1r1c3z5xxw3996z5x0s13jc"; libraryHaskellDepends = [ aeson ansi-terminal base bytestring containers exceptions io-streams lens logging-effect monad-logger monad-loops mtl process @@ -67626,6 +67691,8 @@ self: { pname = "cli-git"; version = "0.2.0.1"; sha256 = "09i3v77xhdfsmvq7c10plxnqmq2wn8gxc16za4h96s7pnvn8bppv"; + revision = "1"; + editedCabalFile = "0rcl9n3mqry9mdc413zbbzz0vhk03khbgipc9nljlbyk5w2ihqsc"; libraryHaskellDepends = [ base cli-extras containers data-default exceptions lens logging-effect megaparsec mtl text which @@ -67643,8 +67710,8 @@ self: { pname = "cli-nix"; version = "0.2.0.0"; sha256 = "02350jvbgapxn14zx0knzyxmdlrq2yk460wiw9p8aq860f299bzh"; - revision = "1"; - editedCabalFile = "1plh0js8lnl2xw3dv5z57ap8g4c9j2n1bzskn993fpgafqlw5mcb"; + revision = "2"; + editedCabalFile = "0bg07ix77bd5yz6m2y2dcaqbgby5s2d5p0dzp4kgmg4fsw011mnm"; libraryHaskellDepends = [ base cli-extras data-default exceptions lens logging-effect mtl text which @@ -68253,6 +68320,38 @@ self: { license = lib.licenses.mit; }) {}; + "cloudy" = callPackage + ({ mkDerivation, aeson, base, bytestring, Cabal, cabal-doctest + , containers, deepseq, directory, doctest, file-embed, filepath + , from-sum, http-api-data, http-client-tls, http-media, network + , network-bsd, optparse-applicative, parsec, pretty-simple, process + , QuickCheck, random, servant, servant-client, servant-client-core + , sqlite-simple, tasty, tasty-hunit, template-haskell, text, time + , unix, uuid, yaml + }: + mkDerivation { + pname = "cloudy"; + version = "0.1.0.1"; + sha256 = "0vx3bf4vlybpy452mzn9swgclxfa7flnn0x0gj2vlcn14cdbh27w"; + isLibrary = true; + isExecutable = true; + setupHaskellDepends = [ base Cabal cabal-doctest ]; + libraryHaskellDepends = [ + aeson base bytestring containers deepseq directory file-embed + filepath from-sum http-api-data http-client-tls http-media network + network-bsd optparse-applicative parsec pretty-simple process + random servant servant-client servant-client-core sqlite-simple + text time unix uuid yaml + ]; + executableHaskellDepends = [ base ]; + testHaskellDepends = [ + base doctest QuickCheck tasty tasty-hunit template-haskell + ]; + description = "CLI tool to easily spin up and control compute instances in various cloud environments"; + license = lib.licenses.bsd3; + mainProgram = "cloudy"; + }) {}; + "cloudyfs" = callPackage ({ mkDerivation, base, bytestring, containers, convertible , datetime, filepath, HFuse, HTTP, regex-base, regex-tdfa, tagsoup @@ -70962,6 +71061,29 @@ self: { license = lib.licenses.bsd3; }) {}; + "commonmark_0_2_6_1" = callPackage + ({ mkDerivation, base, bytestring, containers, parsec, tasty + , tasty-bench, tasty-hunit, tasty-quickcheck, text, transformers + , unicode-data, unicode-transforms + }: + mkDerivation { + pname = "commonmark"; + version = "0.2.6.1"; + sha256 = "0wwh0smqdmyb1qa992d0jva24yml4lxmmwr3av3c8s0xh3z7vkpv"; + libraryHaskellDepends = [ + base bytestring containers parsec text transformers unicode-data + unicode-transforms + ]; + testHaskellDepends = [ + base parsec tasty tasty-hunit tasty-quickcheck text + unicode-transforms + ]; + benchmarkHaskellDepends = [ base tasty-bench text ]; + description = "Pure Haskell commonmark parser"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "commonmark-cli" = callPackage ({ mkDerivation, aeson, ansi-terminal, base, bytestring, commonmark , commonmark-extensions, commonmark-pandoc, containers, mtl @@ -71019,6 +71141,22 @@ self: { license = lib.licenses.bsd3; }) {}; + "commonmark-pandoc_0_2_2_2" = callPackage + ({ mkDerivation, base, commonmark, commonmark-extensions + , pandoc-types, text + }: + mkDerivation { + pname = "commonmark-pandoc"; + version = "0.2.2.2"; + sha256 = "0lbs0gjxa02gsm08n65fqglpsi5h2gd5nh0k2nzm01xsqs304h76"; + libraryHaskellDepends = [ + base commonmark commonmark-extensions pandoc-types text + ]; + description = "Bridge between commonmark and pandoc AST"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "commonmark-simple" = callPackage ({ mkDerivation, aeson, base, commonmark, commonmark-extensions , commonmark-pandoc, containers, megaparsec, pandoc-types, parsec @@ -72223,8 +72361,8 @@ self: { ({ mkDerivation, base }: mkDerivation { pname = "composition-prelude"; - version = "3.0.0.2"; - sha256 = "151inlk43m96pnasc6llsjh8vxyc9b1i7xdgf1sp5p5072bzq305"; + version = "3.0.1.0"; + sha256 = "068wpnviarwf3q0g8zy9sfgjarz7v73vdfapg3ji8n3xdcb24iwg"; libraryHaskellDepends = [ base ]; description = "Higher-order function combinators"; license = lib.licenses.bsd3; @@ -72992,8 +73130,8 @@ self: { pname = "concurrent-utilities"; version = "0.2.0.2"; sha256 = "1phc9a90nvx6dk741hmg3w5m9y8ra5a7zsgmzw173ibaapr2yhqi"; - revision = "2"; - editedCabalFile = "1jf0sx6yq557aspa3wm12hkc64pmfnc39kbc5wsa2k7ksash3k15"; + revision = "3"; + editedCabalFile = "1s10s1fawbm805kdk33q8q9bhqgghimxg4hni301zj17v2wxzsir"; libraryHaskellDepends = [ base ]; description = "More utilities and broad-used datastructures for concurrency"; license = lib.licenses.bsd3; @@ -73149,32 +73287,6 @@ self: { }) {}; "conduit" = callPackage - ({ mkDerivation, base, bytestring, containers, deepseq, directory - , exceptions, filepath, gauge, hspec, mono-traversable, mtl - , mwc-random, primitive, QuickCheck, resourcet, safe, silently - , split, text, transformers, unix, unliftio, unliftio-core, vector - }: - mkDerivation { - pname = "conduit"; - version = "1.3.5"; - sha256 = "0bbq3hr0y4hyia8dbqibfpg5q5zr2ici5hngv38y6hycxvhd7c1b"; - libraryHaskellDepends = [ - base bytestring directory exceptions filepath mono-traversable mtl - primitive resourcet text transformers unix unliftio-core vector - ]; - testHaskellDepends = [ - base bytestring containers directory exceptions filepath hspec - mono-traversable mtl QuickCheck resourcet safe silently split text - transformers unliftio vector - ]; - benchmarkHaskellDepends = [ - base containers deepseq gauge hspec mwc-random transformers vector - ]; - description = "Streaming data processing library"; - license = lib.licenses.mit; - }) {}; - - "conduit_1_3_6" = callPackage ({ mkDerivation, base, bytestring, containers, deepseq, directory , exceptions, filepath, gauge, hspec, mono-traversable, mtl , mwc-random, primitive, QuickCheck, resourcet, safe, silently @@ -73198,7 +73310,6 @@ self: { ]; description = "Streaming data processing library"; license = lib.licenses.mit; - hydraPlatforms = lib.platforms.none; }) {}; "conduit-aeson" = callPackage @@ -74149,8 +74260,8 @@ self: { pname = "config-value"; version = "0.8.3"; sha256 = "0pkcwxg91wali7986k03d7q940hb078hlsxfknqhkp2spr3d1f3w"; - revision = "6"; - editedCabalFile = "0l4yw8g1f7isr2nj6s4awfm37b4j5pz2pn0wnzwdbain3az4d51v"; + revision = "7"; + editedCabalFile = "0bzrsy2qlz6ylml38q905rcw2lg0khz6iqr67hhcihbgwgazrrsj"; libraryHaskellDepends = [ array base containers pretty text ]; libraryToolDepends = [ alex happy ]; testHaskellDepends = [ base text ]; @@ -76195,15 +76306,15 @@ self: { hydraPlatforms = lib.platforms.none; }) {}; - "copilot_3_20" = callPackage + "copilot_4_0" = callPackage ({ mkDerivation, base, copilot-c99, copilot-core, copilot-language , copilot-libraries, copilot-prettyprinter, copilot-theorem , directory, filepath, optparse-applicative }: mkDerivation { pname = "copilot"; - version = "3.20"; - sha256 = "057m56qg4wsqv17hs086ci0nw0r44y3baj9h8w3f4ij2p30zl71n"; + version = "4.0"; + sha256 = "1vkwrrsl2xlga5imv2w54k71bl8i1qxz53d6frwpnv64hq0g8lrz"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -76217,21 +76328,21 @@ self: { }) {}; "copilot-bluespec" = callPackage - ({ mkDerivation, base, copilot-core, directory, filepath, HUnit - , ieee754, language-bluespec, pretty, process, QuickCheck, random - , test-framework, test-framework-hunit, test-framework-quickcheck2 - , unix + ({ mkDerivation, base, copilot-core, directory, extra, filepath + , HUnit, ieee754, language-bluespec, pretty, process, QuickCheck + , random, test-framework, test-framework-hunit + , test-framework-quickcheck2, unix }: mkDerivation { pname = "copilot-bluespec"; - version = "3.20"; - sha256 = "0nss9cnhl8dvjnfgkfvhryiib74c5fg6wlfpivrphrbv6jj5pd78"; + version = "4.0"; + sha256 = "1255x4bfwsv305gw0crwm64n32znbzg3g07rly66j56p6dil9dw6"; libraryHaskellDepends = [ base copilot-core directory filepath language-bluespec pretty ]; testHaskellDepends = [ - base copilot-core directory HUnit ieee754 pretty process QuickCheck - random test-framework test-framework-hunit + base copilot-core directory extra HUnit ieee754 pretty process + QuickCheck random test-framework test-framework-hunit test-framework-quickcheck2 unix ]; description = "A compiler for Copilot targeting FPGAs"; @@ -76264,7 +76375,7 @@ self: { broken = true; }) {}; - "copilot-c99_3_20" = callPackage + "copilot-c99_4_0" = callPackage ({ mkDerivation, base, copilot-core, directory, filepath, HUnit , language-c99, language-c99-simple, mtl, pretty, process , QuickCheck, random, test-framework, test-framework-hunit @@ -76272,8 +76383,8 @@ self: { }: mkDerivation { pname = "copilot-c99"; - version = "3.20"; - sha256 = "0vb4hh72y2l4fwh9p13xj2wf1p8wrssmv9zikz91mpiszcmcl5s4"; + version = "4.0"; + sha256 = "1gnkcwqamc63fw64d5vcjxsffjhgz627p0rs4lnjn2wpqj23ms3b"; libraryHaskellDepends = [ base copilot-core directory filepath language-c99 language-c99-simple mtl pretty @@ -76322,14 +76433,14 @@ self: { license = lib.licenses.bsd3; }) {}; - "copilot-core_3_20" = callPackage + "copilot-core_4_0" = callPackage ({ mkDerivation, base, HUnit, QuickCheck, test-framework , test-framework-hunit, test-framework-quickcheck2 }: mkDerivation { pname = "copilot-core"; - version = "3.20"; - sha256 = "0ndd6xngcgifk7gklf1r9rzyxvdqxn1zp24wg59wn63l3vqlmrg5"; + version = "4.0"; + sha256 = "0gwl08ib42if8lrwkhd81vpx46yqbl2k1qwwf3ar90b6pnhczyhk"; libraryHaskellDepends = [ base ]; testHaskellDepends = [ base HUnit QuickCheck test-framework test-framework-hunit @@ -76375,14 +76486,14 @@ self: { license = lib.licenses.bsd3; }) {}; - "copilot-interpreter_3_20" = callPackage + "copilot-interpreter_4_0" = callPackage ({ mkDerivation, base, copilot-core, copilot-prettyprinter, pretty , QuickCheck, test-framework, test-framework-quickcheck2 }: mkDerivation { pname = "copilot-interpreter"; - version = "3.20"; - sha256 = "11lxrghfhw3n1nz3rjmrahslnl10cywaafmaf6w32mzwbz5hlix9"; + version = "4.0"; + sha256 = "16ylwz3zplzrgz1z0894022ikmh9zywqsjhczayl65gi4aphi925"; libraryHaskellDepends = [ base copilot-core pretty ]; testHaskellDepends = [ base copilot-core copilot-prettyprinter pretty QuickCheck @@ -76416,7 +76527,7 @@ self: { hydraPlatforms = lib.platforms.none; }) {}; - "copilot-language_3_20" = callPackage + "copilot-language_4_0" = callPackage ({ mkDerivation, array, base, containers, copilot-core , copilot-interpreter, copilot-theorem, data-reify, HUnit, mtl , pretty, QuickCheck, test-framework, test-framework-hunit @@ -76424,8 +76535,8 @@ self: { }: mkDerivation { pname = "copilot-language"; - version = "3.20"; - sha256 = "12ihidjin19y72ajyn1in4cnqk63v2ifhsb312y3l9biwqlbqd0l"; + version = "4.0"; + sha256 = "1mkf3p5arwdjxwyjflisdmc1xdz0x5p6iarh544ngpwks72j6j7d"; libraryHaskellDepends = [ array base containers copilot-core copilot-interpreter copilot-theorem data-reify mtl @@ -76460,15 +76571,15 @@ self: { hydraPlatforms = lib.platforms.none; }) {}; - "copilot-libraries_3_20" = callPackage + "copilot-libraries_4_0" = callPackage ({ mkDerivation, base, containers, copilot-interpreter , copilot-language, copilot-theorem, mtl, parsec, QuickCheck , test-framework, test-framework-quickcheck2 }: mkDerivation { pname = "copilot-libraries"; - version = "3.20"; - sha256 = "0pz42yryjcmmr4rzgy2x9h70v3an0py4wi79sx5yvn6d203h1b0h"; + version = "4.0"; + sha256 = "0zgw4pg0kdq5c4xqpf51wpkxj1sxhyif71j103kdc4ca1wwqhjbr"; libraryHaskellDepends = [ base containers copilot-language mtl parsec ]; @@ -76492,12 +76603,12 @@ self: { license = lib.licenses.bsd3; }) {}; - "copilot-prettyprinter_3_20" = callPackage + "copilot-prettyprinter_4_0" = callPackage ({ mkDerivation, base, copilot-core, pretty }: mkDerivation { pname = "copilot-prettyprinter"; - version = "3.20"; - sha256 = "13kxhismy1ajqzwv4da8qn96xhpx8pnbgbcd7zn35j8fmidfbrmz"; + version = "4.0"; + sha256 = "17vw8h6c0x1x7giwkzqrg2sndw9qp7ninh6lcydzlcn77ma9i0z2"; libraryHaskellDepends = [ base copilot-core pretty ]; description = "A prettyprinter of Copilot Specifications"; license = lib.licenses.bsd3; @@ -76545,7 +76656,7 @@ self: { hydraPlatforms = lib.platforms.none; }) {}; - "copilot-theorem_3_20" = callPackage + "copilot-theorem_4_0" = callPackage ({ mkDerivation, base, bimap, bv-sized, containers, copilot-core , copilot-prettyprinter, data-default, directory, libBF, mtl, panic , parameterized-utils, parsec, pretty, process, QuickCheck, random @@ -76554,8 +76665,8 @@ self: { }: mkDerivation { pname = "copilot-theorem"; - version = "3.20"; - sha256 = "1d9ivlqyknmlic5v2spl4ak72cf3mk35ljx9sbrps4rxchij807a"; + version = "4.0"; + sha256 = "149irgw76s2cfv8491ys8i1gmad23z2c5vjiklgmz0h25b49aix3"; libraryHaskellDepends = [ base bimap bv-sized containers copilot-core copilot-prettyprinter data-default directory libBF mtl panic parameterized-utils parsec @@ -76582,8 +76693,8 @@ self: { }: mkDerivation { pname = "copilot-verifier"; - version = "3.20"; - sha256 = "0dszrayv3i7cvwdnllqnp3xlmnqy836fb0mghf8q6x9r6c8vi91s"; + version = "4.0"; + sha256 = "00ahja1qdvnmr7ddl13b1m9l21k8qqmkr44ml2vpwb7i7l4h65z1"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -77944,14 +78055,14 @@ self: { mainProgram = "crackNum"; }) {}; - "crackNum_3_12" = callPackage + "crackNum_3_14" = callPackage ({ mkDerivation, base, deepseq, directory, filepath, ghc, libBF , process, sbv, tasty, tasty-golden }: mkDerivation { pname = "crackNum"; - version = "3.12"; - sha256 = "1d1hn24c9xdnb19h8c0nakq7825q0gv4b4pxbf8cpwjsspb155wm"; + version = "3.14"; + sha256 = "03k2inklgilnqf57h7py3h9mr0zg8wb7fagv8lb0pjxzw02c4qms"; isLibrary = false; isExecutable = true; executableHaskellDepends = [ @@ -78796,6 +78907,8 @@ self: { pname = "crucible"; version = "0.7.1"; sha256 = "1c9a8km88ngxghn35f6wnaddm534ixmz1iciyn0whl0xmp27f4zv"; + revision = "1"; + editedCabalFile = "1zixmd0qg2x4pg996safdpq3njrd9qafm9w1bh27j1pqbarl9m0i"; libraryHaskellDepends = [ async base bimap bv-sized containers exceptions fgl hashable json lens mtl panic parameterized-utils prettyprinter template-haskell @@ -78823,6 +78936,8 @@ self: { pname = "crucible-llvm"; version = "0.7"; sha256 = "0v4d3c971w6acka4s1lg9iai55ghk054hkkka5jbinyhhymmaf0k"; + revision = "1"; + editedCabalFile = "11h69y7s8smlrir6gvxijpg3k4laafznypw5786vsrkhvxr91mxk"; libraryHaskellDepends = [ attoparsec base bv-sized bytestring containers crucible crucible-symio extra itanium-abi lens llvm-pretty mtl @@ -80386,27 +80501,21 @@ self: { "csv-conduit" = callPackage ({ mkDerivation, array, attoparsec, base, blaze-builder, bytestring , conduit, conduit-extra, containers, data-default, directory - , exceptions, ghc-prim, HUnit, mmorph, monad-control, mtl - , ordered-containers, primitive, resourcet, semigroups - , test-framework, test-framework-hunit, text, transformers - , unordered-containers, vector + , exceptions, HUnit, ordered-containers, primitive, resourcet + , test-framework, test-framework-hunit, text, transformers, vector }: mkDerivation { pname = "csv-conduit"; - version = "0.7.3.0"; - sha256 = "1xh11h4qibjcv8b0rk5mwdzww183kpjqzl3x22rbfryjvrp0n07w"; - revision = "1"; - editedCabalFile = "18dad4w8i2jma39flmzrjpxjvnkzcb8fnhxm67rl9iv3b6ip86ng"; + version = "1.0.0.1"; + sha256 = "16falqdvm94dr4fjb9dndax1vj50amf1ns95x0hribww0vp85w8c"; libraryHaskellDepends = [ array attoparsec base blaze-builder bytestring conduit - conduit-extra containers data-default exceptions ghc-prim mmorph - monad-control mtl ordered-containers primitive resourcet semigroups - text transformers unordered-containers vector + conduit-extra containers data-default exceptions ordered-containers + primitive resourcet text transformers vector ]; testHaskellDepends = [ - base bytestring conduit containers directory HUnit mtl - ordered-containers primitive test-framework test-framework-hunit - text transformers vector + base bytestring conduit containers directory HUnit + ordered-containers test-framework test-framework-hunit text vector ]; description = "A flexible, fast, conduit-based CSV parser library for Haskell"; license = lib.licenses.bsd3; @@ -83057,8 +83166,8 @@ self: { }: mkDerivation { pname = "data-effects"; - version = "0.1.1.0"; - sha256 = "0ypwb4618hjsvsdrwb1xbdq427g1bfc5dm9xibjbm2yrami16qr2"; + version = "0.1.2.0"; + sha256 = "1gx04k8rsk2qcq74ya44w0249vfb8n3qqwc3bj95askm4nr7nfl6"; libraryHaskellDepends = [ base data-default data-effects-core data-effects-th lens text these time @@ -83095,8 +83204,8 @@ self: { }: mkDerivation { pname = "data-effects-th"; - version = "0.1.1.0"; - sha256 = "0xs8n5f6v3dani9j2rpl75d8bx02295aimy0fh714qqwg1cmiml6"; + version = "0.1.2.0"; + sha256 = "05jzplb3vxxhy8ham7v8w3n943fng3fk8v1pa09vbv68k3r1p14w"; libraryHaskellDepends = [ base containers data-default data-effects-core either extra formatting infinite-list lens mtl template-haskell text @@ -83112,13 +83221,13 @@ self: { }) {}; "data-elevator" = callPackage - ({ mkDerivation, base, hspec }: + ({ mkDerivation, base, hspec, inspection-testing, primitive }: mkDerivation { pname = "data-elevator"; - version = "0.1.0.2"; - sha256 = "109vff7i8jrz3n6748hj8vf1x4a8r91d2p1cwmcgs0rad536zl0m"; + version = "0.2"; + sha256 = "0fvj6bd86vdxmfwq36pcj810mbl3wc0lipw50ddzdcypsixr21gq"; libraryHaskellDepends = [ base ]; - testHaskellDepends = [ base hspec ]; + testHaskellDepends = [ base hspec inspection-testing primitive ]; description = "Coerce between unlifted boxed and lifted types"; license = lib.licenses.mit; hydraPlatforms = lib.platforms.none; @@ -85144,7 +85253,7 @@ self: { license = lib.licenses.asl20; }) {}; - "dbus_1_3_6" = callPackage + "dbus_1_3_7" = callPackage ({ mkDerivation, base, bytestring, cereal, conduit, containers , criterion, deepseq, directory, exceptions, extra, filepath, lens , network, parsec, process, QuickCheck, random, resourcet, split @@ -85153,8 +85262,8 @@ self: { }: mkDerivation { pname = "dbus"; - version = "1.3.6"; - sha256 = "1hz2qz9lsqs00c2xcdf9p32mg3ycq5p25g859xys9wwqcxvspcq6"; + version = "1.3.7"; + sha256 = "0yjsgabcihy8gzzckh5ipy5bwspw3pg3ghj3in6mzlkyqj1hx964"; libraryHaskellDepends = [ base bytestring cereal conduit containers deepseq exceptions filepath lens network parsec random split template-haskell text @@ -85736,8 +85845,8 @@ self: { }: mkDerivation { pname = "dear-imgui"; - version = "2.3.0"; - sha256 = "0dq1k2v57b2fvrmsxmkr02zyia3bndq2xl6c4avyn6jpr2pfak4l"; + version = "2.3.1"; + sha256 = "0pj973isqpnrg8zd4w5z50abd90cd4dnhdpy5i5ai8k24ak5mkp1"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -86295,14 +86404,14 @@ self: { mainProgram = "deeplearning_demonstration"; }) {}; - "deepseq_1_5_0_0" = callPackage - ({ mkDerivation, array, base, ghc-prim }: + "deepseq_1_5_1_0" = callPackage + ({ mkDerivation, base, ghc-prim }: mkDerivation { pname = "deepseq"; - version = "1.5.0.0"; - sha256 = "12w6zflnkgn757psx1ips3fh3yxscil5x0jil6gir3dj9279mwd0"; - libraryHaskellDepends = [ array base ghc-prim ]; - testHaskellDepends = [ array base ghc-prim ]; + version = "1.5.1.0"; + sha256 = "0yz1b3c4fpa1pknwd64fba37wbr7mxzawd0han2ifq70mgiqfkiz"; + libraryHaskellDepends = [ base ghc-prim ]; + testHaskellDepends = [ base ghc-prim ]; description = "Deep evaluation of data structures"; license = lib.licenses.bsd3; hydraPlatforms = lib.platforms.none; @@ -86421,8 +86530,8 @@ self: { pname = "defaultable-map"; version = "1.0.2"; sha256 = "0s70fwnh6r41hlr7hzv5rwiw8m0rrlj8v1bar09fq3gzqmhrpbqw"; - revision = "1"; - editedCabalFile = "15m4cl51g2nn6v3my7c4awnqvrqyvain08l8kr5yqqjmll8bwbvl"; + revision = "2"; + editedCabalFile = "0dncpans6gwzpfx71lq36hf8viqw5f50vhh91k116lkgnxc5fzn9"; libraryHaskellDepends = [ base containers deepseq semigroupoids ]; description = "Applicative maps"; license = lib.licenses.bsd3; @@ -88325,6 +88434,8 @@ self: { pname = "dhall"; version = "1.42.1"; sha256 = "0n4773s7l9sfqi00fnh4h92mpifbh0m6vsvpghg834c0jx2gm36f"; + revision = "1"; + editedCabalFile = "04q42qhfc346ml0vxrxwcxrwn0j4wrbbi8ll17ml2pkgr28krdnh"; isLibrary = true; isExecutable = true; enableSeparateDataOutput = true; @@ -88395,8 +88506,8 @@ self: { pname = "dhall-bash"; version = "1.0.41"; sha256 = "09jz39lnahjzp4f7mfkc68gkb1whqi3v781wqp4w1nrdq8b97sra"; - revision = "1"; - editedCabalFile = "0l324739f5x9d48c0lfrn5is19hsc2cnh0psswsnzyy4chsw87fg"; + revision = "2"; + editedCabalFile = "1lvm16gc3anyrs167kcvgdn6dh8ygxwjsgf87p3c0ldmnxlvp13j"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -88443,6 +88554,8 @@ self: { pname = "dhall-csv"; version = "1.0.4"; sha256 = "1kmrkjc2r5l1q2hc2xq83c25zrfm7w4av0jc06ilxklf4i1kvy4b"; + revision = "1"; + editedCabalFile = "10kmbhaly9z95614x3jfmqkswa249dlmr302wng0dpmw1mxqzz2a"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -88475,8 +88588,8 @@ self: { pname = "dhall-docs"; version = "1.0.11"; sha256 = "0i9czz2p2kv5mw7mnbpqq9nl86aqyp4z0yy115q3nfasl5ys6jlq"; - revision = "1"; - editedCabalFile = "04i3v73hgyq57a6010wkd7xhmafy8xxc5vsl9km2r3wqy7505fj9"; + revision = "2"; + editedCabalFile = "0wsi3nslijmf0p7j3k7j1g3zzj6y31d0vyqhr74856v4k3757p4a"; isLibrary = true; isExecutable = true; enableSeparateDataOutput = true; @@ -88544,8 +88657,8 @@ self: { pname = "dhall-json"; version = "1.7.12"; sha256 = "1ynm347ccqgh2jmnq9mwj3mc3zd81pwqja5ivdwxkjw08d1wsj6a"; - revision = "2"; - editedCabalFile = "0yii9bknd19l65z56zlsxsf4kzbnhygr9dl6bkzy991qsp8155yy"; + revision = "3"; + editedCabalFile = "1v21yb69aa6hzg6rhwhi6x61nrk35bbhl8pw1dikbw73s95c9f0j"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -88597,6 +88710,8 @@ self: { pname = "dhall-lsp-server"; version = "1.1.3"; sha256 = "1vcdjsqd0falcx48fa58qilnwh70h6cinxbkh2rfmlhvfgmramc8"; + revision = "1"; + editedCabalFile = "07x2q58dzr7qn116rx12wpi3jsgz3f5rpxmilk0x1zj1jiwznyxg"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -88626,8 +88741,8 @@ self: { pname = "dhall-nix"; version = "1.1.26"; sha256 = "1xgmmfp6bi3mnd9l335ks6xcgpfy2s2kgpcygi7i7p41f795zgma"; - revision = "1"; - editedCabalFile = "1bjy0ngvlg9a6b1bsms894qr23axqzg4xgjb1d0hmdyrvkhniwxq"; + revision = "2"; + editedCabalFile = "06ixc19hp4n78cg0jlg74gdbz5ngni2a6w8768i946s7sglgcfa3"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -88653,8 +88768,8 @@ self: { pname = "dhall-nixpkgs"; version = "1.0.10"; sha256 = "09p1zfssqab3p3x3ngidfkf31kk5kvcx8krjiyf18vmq9fn75mm5"; - revision = "1"; - editedCabalFile = "19dj1npbcib00zxhiphqg1icbwx9m3qbhcgbp7bciarymy3cqxc3"; + revision = "2"; + editedCabalFile = "0hk6ndmaf8fcmvi9m414a8pl6q6ykqd1mng8pcmak5b184b61961"; isLibrary = false; isExecutable = true; executableHaskellDepends = [ @@ -88678,8 +88793,8 @@ self: { pname = "dhall-openapi"; version = "1.0.6"; sha256 = "0jx905x17lfwb316hx6mwiwr647688nwwcikv5iadv2qr9s04yc9"; - revision = "1"; - editedCabalFile = "1xzzrgjajpr49bi6lpi2hys9la9646mi4f8wp3md5fim305l19pb"; + revision = "2"; + editedCabalFile = "0bda2n7yfjxb98kj497v5vy9xgwc4l5i6imp53c7gxvbf2fnjlnc"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -88831,8 +88946,8 @@ self: { pname = "dhall-toml"; version = "1.0.3"; sha256 = "0d99msfbd9dxhjh2bc5bnzwn4c5n4viv3q0n4p1mx2rw67jyra80"; - revision = "1"; - editedCabalFile = "1v0ibk5zr1nifxvy445xph3w134dmcxki5wnw63nrf2vdn7zjby5"; + revision = "2"; + editedCabalFile = "1vl04lq1fgxcdf1p97wbbwx1rl4lijvxiihg62vwz18v193fxfr2"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -88858,8 +88973,8 @@ self: { pname = "dhall-yaml"; version = "1.2.12"; sha256 = "1sh802maai9vxfrjd0w4k9cv4pklhkxid1s5xdbagywcaqdhk272"; - revision = "2"; - editedCabalFile = "1wbfyi950kpy1ppd1dq465y9amjc47bvzwjiffsbp8azq5j45bx6"; + revision = "3"; + editedCabalFile = "05dl461p5acqn9mlw08mvk3vspgk79k34v6m1wag0g7f3b34c5w4"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -89248,8 +89363,8 @@ self: { pname = "diagrams-canvas"; version = "1.4.1.2"; sha256 = "165iwjvx17ym5qsrxsj7va4kmmifg8nay1qq7mbyp3crvfvkfgv2"; - revision = "1"; - editedCabalFile = "1cj3ckny5xgsr624d1zc4z9kdfw9lfpc4vfzza9nn3jzy3px8z7l"; + revision = "2"; + editedCabalFile = "1hmbcr20pwdfd26xr9dx6gdcmzsw1p7k8avgjcvqa4n9p8ykcrqp"; libraryHaskellDepends = [ base blank-canvas cmdargs containers data-default-class diagrams-core diagrams-lib lens mtl NumInstances @@ -89271,8 +89386,8 @@ self: { pname = "diagrams-contrib"; version = "1.4.5.1"; sha256 = "0whp2p9m7pcb2sgyr8rvhf518f18w5i0vxziganw7qj6ijn9kdyb"; - revision = "1"; - editedCabalFile = "08bqpgqcsbiqq1zc07sy6n5k5nyhf63hsrds759fqbr6hb9zwxsx"; + revision = "2"; + editedCabalFile = "000ybzwi9cj7p6j21xhkby1sg13ph55qmc6j05cw8j5n1a6c1mv5"; libraryHaskellDepends = [ base circle-packing colour containers cubicbezier data-default data-default-class diagrams-core diagrams-lib diagrams-solve @@ -89317,6 +89432,8 @@ self: { pname = "diagrams-gi-cairo"; version = "1.4.2"; sha256 = "0k6fw1vvqa4pra4czd90n7i7h1vf6hn08a4jip1xbqkf57d89bn6"; + revision = "1"; + editedCabalFile = "1r1ph8nc7xgh3by63dsamkvhi6bvw1bgvhnc8f664iiziaj9p08a"; libraryHaskellDepends = [ array base bytestring colour containers diagrams-core diagrams-lib filepath gi-cairo gi-cairo-connector gi-cairo-render gi-pango @@ -89337,8 +89454,8 @@ self: { pname = "diagrams-graphviz"; version = "1.4.1.1"; sha256 = "0lscrxd682jvyrl5bj4dxp7593qwyis01sl0p4jm2jfn335wdq40"; - revision = "5"; - editedCabalFile = "11kl8sgm3g722wqf734adh5lkhrbpm9cryj19g7zipjg9lgns9q6"; + revision = "6"; + editedCabalFile = "1h0y3dv8707yvk1g0hmyb6knzahyzyxqmabkih4wyq5cz1zjmh1n"; libraryHaskellDepends = [ base containers diagrams-lib fgl graphviz split ]; @@ -89441,8 +89558,8 @@ self: { }: mkDerivation { pname = "diagrams-input"; - version = "0.1.3"; - sha256 = "1ia8anpmzgdz4087m75x7pcb2hmfs2jilgxlchrcc1vk417z5a6l"; + version = "0.1.3.1"; + sha256 = "1xnpgw1dkfa28l03g5cp24khzmb96vv6ws985sxi472ig76ygfwd"; libraryHaskellDepends = [ attoparsec base base64-bytestring blaze-builder blaze-markup bytestring colour conduit conduit-extra containers css-text @@ -89546,8 +89663,8 @@ self: { pname = "diagrams-pgf"; version = "1.4.2.1"; sha256 = "1778sjjvggq5ks73489y76f4z0cvzkn9ixn176fm8kf8swaf82ja"; - revision = "1"; - editedCabalFile = "0j2hkmhkbqywsc4vkpn2jvh37hdw1lwphlfvid1f90ayq2npc6p0"; + revision = "2"; + editedCabalFile = "1ri4jyw2cxcypcayp9w1wrv4ms2p28zjz80129x9f72mkf3ds6gk"; libraryHaskellDepends = [ base bytestring bytestring-builder colour containers diagrams-core diagrams-lib directory filepath hashable JuicyPixels mtl @@ -89669,27 +89786,6 @@ self: { }) {}; "diagrams-svg" = callPackage - ({ mkDerivation, base, base64-bytestring, bytestring, colour - , containers, diagrams-core, diagrams-lib, filepath, hashable - , JuicyPixels, lens, monoid-extras, mtl, optparse-applicative - , semigroups, split, svg-builder, text - }: - mkDerivation { - pname = "diagrams-svg"; - version = "1.4.3.1"; - sha256 = "002lgmq78c6rsvds9bgm6m4w8j6qpg260mc52hf97wj6m050l237"; - revision = "7"; - editedCabalFile = "1njcpdk5amymnlp8dq6r8cgj3gm0rqhhi68jywqc5zcscmr77l2m"; - libraryHaskellDepends = [ - base base64-bytestring bytestring colour containers diagrams-core - diagrams-lib filepath hashable JuicyPixels lens monoid-extras mtl - optparse-applicative semigroups split svg-builder text - ]; - description = "SVG backend for diagrams drawing EDSL"; - license = lib.licenses.bsd3; - }) {}; - - "diagrams-svg_1_4_3_2" = callPackage ({ mkDerivation, base, base64-bytestring, bytestring, colour , containers, diagrams-core, diagrams-lib, filepath, hashable , JuicyPixels, lens, monoid-extras, mtl, optparse-applicative @@ -89706,7 +89802,6 @@ self: { ]; description = "SVG backend for diagrams drawing EDSL"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "diagrams-tikz" = callPackage @@ -91815,10 +91910,10 @@ self: { }: mkDerivation { pname = "distributed-process"; - version = "0.7.6"; - sha256 = "0kfgz8nrg8pdnw56msdkdlc1y894giz6jmgss6gxmhrr929rsnlz"; - revision = "3"; - editedCabalFile = "0fnanh4yl1z7v8bqlj8q3r0cgbpllv1md9l1hhi73alpn5fmdwc7"; + version = "0.7.7"; + sha256 = "03ki3p9hanwlgsd4yii2v2hyw736pbj7839yqbl2ja66vkgfhajw"; + revision = "1"; + editedCabalFile = "1xrbhcn1l46zv25snlxdchyiy7ijb03pyzndqdwz885dkqapwvd4"; libraryHaskellDepends = [ base binary bytestring containers data-accessor deepseq distributed-static exceptions hashable mtl network-transport random @@ -91842,8 +91937,10 @@ self: { }: mkDerivation { pname = "distributed-process-async"; - version = "0.2.7"; - sha256 = "138gjlsw5r6nsm609kq25wg1nxad34ag9ysa4m0f5rbf8fb0mmm6"; + version = "0.2.8"; + sha256 = "0zgdkgsbi0909galmkzg8iw7yhf0qji32aijjdsrn3gfy43hnr4c"; + revision = "1"; + editedCabalFile = "161vvls4000gg4jh5yr2rc11m4zpbphws12v35hhnd4gn4jh2jrn"; libraryHaskellDepends = [ base binary containers data-accessor deepseq distributed-process exceptions fingertree hashable mtl stm time transformers @@ -91894,8 +91991,10 @@ self: { }: mkDerivation { pname = "distributed-process-client-server"; - version = "0.2.5.1"; - sha256 = "15wd3nb68igg7izjb1zzcdcgsh8a9akhfw41arzdp7xcwp6prxy7"; + version = "0.2.6.0"; + sha256 = "0mb0awlq60hgjmm6bjzvd86a5kb919q8rx8mbl155q2gbvwvpj4b"; + revision = "1"; + editedCabalFile = "0mf4zvl6k4h5alcvryiarr9wrlqc3w4rlaxdxk54srdg34cmvn87"; libraryHaskellDepends = [ base binary containers deepseq distributed-process distributed-process-async distributed-process-extras exceptions @@ -91933,7 +92032,7 @@ self: { ({ mkDerivation, ansi-terminal, base, binary, bytestring , containers, data-accessor, deepseq, distributed-process , distributed-process-client-server, distributed-process-extras - , distributed-process-supervisor, distributed-process-tests + , distributed-process-supervisor, distributed-process-systest , distributed-static, fingertree, ghc-prim, hashable, HUnit, mtl , network, network-transport, network-transport-tcp, QuickCheck , rematch, stm, test-framework, test-framework-hunit @@ -91942,10 +92041,10 @@ self: { }: mkDerivation { pname = "distributed-process-execution"; - version = "0.1.2.2"; - sha256 = "1dgpvgip2ji36jfrmxp818b2mz1fvh77l4l64m3ayljf75mwmgwz"; - revision = "2"; - editedCabalFile = "18kq0ldz2lci5f2dx98m67gch7539yj7fyaxrqjgk0h2dsc7klfg"; + version = "0.1.3.0"; + sha256 = "0cr29ca19yfxhq42l5iyh6q29ymdl40cw2mxzms3mfw6p1qgn16z"; + revision = "1"; + editedCabalFile = "04lwlb6iflh0l12ghr8hza7yjxg0kqq58k9250h20gh6xacgdrz4"; libraryHaskellDepends = [ base binary containers data-accessor deepseq distributed-process distributed-process-client-server distributed-process-extras @@ -91955,7 +92054,7 @@ self: { testHaskellDepends = [ ansi-terminal base binary bytestring containers data-accessor deepseq distributed-process distributed-process-extras - distributed-process-tests distributed-static fingertree ghc-prim + distributed-process-systest distributed-static fingertree ghc-prim hashable HUnit mtl network network-transport network-transport-tcp QuickCheck rematch stm test-framework test-framework-hunit test-framework-quickcheck2 time transformers unordered-containers @@ -91977,8 +92076,10 @@ self: { }: mkDerivation { pname = "distributed-process-extras"; - version = "0.3.5"; - sha256 = "0yva1ydm34fjvzn1z3jfb436d1m3d54fzs3kxqzgsf1nwxpz25rk"; + version = "0.3.6"; + sha256 = "12xghaimlkw9kh2ha9mr722fmikf9rscxkp92acagzxsw9pyspqz"; + revision = "1"; + editedCabalFile = "0a4ayr8cx35r491a2m2yapg7sd9890jx1x1gdaghv6an6p33qjc9"; libraryHaskellDepends = [ base binary containers deepseq distributed-process exceptions fingertree hashable mtl stm time transformers unordered-containers @@ -92166,8 +92267,8 @@ self: { }: mkDerivation { pname = "distributed-process-simplelocalnet"; - version = "0.3.1"; - sha256 = "06p7cynv7z4h62srzq99fi5v23v66g93k77wb6xiv0va83nqa0xr"; + version = "0.3.2"; + sha256 = "11d3268na8fdx5v55fhgw3d5lnclmhgrqf29j7x3kpsi1ynn9a3z"; libraryHaskellDepends = [ base binary bytestring containers data-accessor distributed-process exceptions network network-multicast network-transport @@ -92192,8 +92293,10 @@ self: { }: mkDerivation { pname = "distributed-process-supervisor"; - version = "0.2.1"; - sha256 = "1cawbyz0nnx0kad1pqi1815nvdcvsap68j5a4ksdg8h8rlkvm05q"; + version = "0.2.2"; + sha256 = "015pk8px0g3l1h1bj59ns8nlwmrirbqmwq7l9mqdqp05vpjr4npm"; + revision = "1"; + editedCabalFile = "0srf56yl1fr67y0zvd3mqn50qbi7rj2n93pf2zlgnpmllgq4ww3s"; libraryHaskellDepends = [ base binary bytestring containers data-accessor deepseq distributed-process distributed-process-client-server @@ -92215,18 +92318,18 @@ self: { "distributed-process-systest" = callPackage ({ mkDerivation, ansi-terminal, base, binary, bytestring - , distributed-process, distributed-static, HUnit, network - , network-transport, random, rematch, stm, test-framework + , distributed-process, distributed-static, exceptions, HUnit + , network, network-transport, random, rematch, stm, test-framework , test-framework-hunit }: mkDerivation { pname = "distributed-process-systest"; - version = "0.1.1"; - sha256 = "13hi9swkjk0mgj7by810hgnf985mxngf9sxdskn3a9k6l16l6wx1"; + version = "0.3.2"; + sha256 = "04n6i81vgfalmhlwqb6pi20c62zrcymrpmj2n1v0i4qr9f7v2in8"; libraryHaskellDepends = [ ansi-terminal base binary bytestring distributed-process - distributed-static HUnit network network-transport random rematch - stm test-framework test-framework-hunit + distributed-static exceptions HUnit network network-transport + random rematch stm test-framework test-framework-hunit ]; description = "Cloud Haskell Test Support"; license = lib.licenses.bsd3; @@ -92329,8 +92432,10 @@ self: { }: mkDerivation { pname = "distributed-static"; - version = "0.3.10"; - sha256 = "1nkgs2rw1wk2rfr8xnpgk0ir9dkqv8b4bw78rrn6pmy7mg26mi6r"; + version = "0.3.11"; + sha256 = "0h9psda6bc8sq1gc8rdkgljs4hh4973bhsg9bzgvwqx26rdwvs7h"; + revision = "1"; + editedCabalFile = "1ifq0rls8rp8p1xmynzb7rx5vmqwi6jxb65lmv0z244d2b35d3x3"; libraryHaskellDepends = [ base binary bytestring containers deepseq rank1dynamic ]; @@ -92600,8 +92705,8 @@ self: { }: mkDerivation { pname = "djot"; - version = "0.1.2.1"; - sha256 = "1lkfbxhzfcqpv0nj6kkbfhlskxb85ql72z3w1ivcw3prxs3skaza"; + version = "0.1.2.2"; + sha256 = "17fqnzacnnraij9lwca25761sn5gaxjd42vnpmd397fdzd5dm6fh"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -92645,7 +92750,7 @@ self: { mainProgram = "dl-fedora"; }) {}; - "dl-fedora_1_1" = callPackage + "dl-fedora_1_2" = callPackage ({ mkDerivation, ansi-wl-pprint, base, bytestring, directory, extra , filepath, http-client, http-client-tls, http-directory , http-types, optparse-applicative, regex-posix, simple-cmd @@ -92653,8 +92758,8 @@ self: { }: mkDerivation { pname = "dl-fedora"; - version = "1.1"; - sha256 = "0mc0sdc6l2aq1vzz8lqxq9v88350rsv15xqn0q7mg1n255xbiclh"; + version = "1.2"; + sha256 = "16zbqvcxn1p663mhnwgcf01nxsxl4nppw5sahmfy3jg8is4wibsk"; isLibrary = false; isExecutable = true; executableHaskellDepends = [ @@ -93404,6 +93509,28 @@ self: { license = lib.licenses.bsd3; }) {}; + "doclayout_0_5" = callPackage + ({ mkDerivation, base, containers, criterion, deepseq, emojis, mtl + , safe, tasty, tasty-golden, tasty-hunit, tasty-quickcheck, text + }: + mkDerivation { + pname = "doclayout"; + version = "0.5"; + sha256 = "15i4mz93lvli2hwny1jrw7pq00xwjldm2xdxwlhsgpnr8l142c5h"; + enableSeparateDataOutput = true; + libraryHaskellDepends = [ base containers emojis mtl safe text ]; + testHaskellDepends = [ + base emojis mtl tasty tasty-golden tasty-hunit tasty-quickcheck + text + ]; + benchmarkHaskellDepends = [ + base criterion deepseq emojis mtl text + ]; + description = "A prettyprinting library for laying out text documents"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "docopt" = callPackage ({ mkDerivation, aeson, ansi-terminal, base, bytestring, containers , HUnit, parsec, split, template-haskell, text @@ -93473,8 +93600,8 @@ self: { }: mkDerivation { pname = "doctemplates"; - version = "0.11"; - sha256 = "0ssld40km4nf0r8fxgj9w0z8yfy8yiyyfcgxarhwx60f0dzhq270"; + version = "0.11.0.1"; + sha256 = "1ysmd7dl12gh4a1ci9g6qfwz2836dqb22g5l5q9941dac4c4al0i"; enableSeparateDataOutput = true; libraryHaskellDepends = [ aeson base containers doclayout filepath mtl parsec safe scientific @@ -93550,7 +93677,7 @@ self: { mainProgram = "doctest"; }) {}; - "doctest_0_22_9" = callPackage + "doctest_0_22_10" = callPackage ({ mkDerivation, base, code-page, containers, deepseq, directory , exceptions, filepath, ghc, ghc-paths, hspec, hspec-core , hspec-discover, HUnit, mockery, process, QuickCheck, silently @@ -93558,8 +93685,8 @@ self: { }: mkDerivation { pname = "doctest"; - version = "0.22.9"; - sha256 = "182952jr58hz83ckmbc33nwx9ndad808d8cn9z0ay7ds6p11i46s"; + version = "0.22.10"; + sha256 = "0ylckg8mzfkv25a3yymfv8yal05ypr1qrx99qv4xakzpn8149m46"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -94228,24 +94355,25 @@ self: { , case-insensitive, containers, dormouse-uri, hedgehog, hspec , hspec-discover, hspec-hedgehog, http-api-data, http-client , http-client-tls, http-types, mtl, safe-exceptions, scientific - , streamly, streamly-bytestring, template-haskell, text, vector + , streamly, streamly-bytestring, streamly-core, template-haskell + , text, vector }: mkDerivation { pname = "dormouse-client"; - version = "0.2.1.0"; - sha256 = "09qkmlgfq0p2d7amil9af6zbd3p2ayhziv8sr152zim4g0v2nmmk"; + version = "0.3.0.0"; + sha256 = "07vn6przka6ffa1kab1f1yrkqdxhg3bzjggv9pf5lslf0i94zza9"; libraryHaskellDepends = [ aeson attoparsec base bytestring case-insensitive containers dormouse-uri http-api-data http-client http-client-tls http-types - mtl safe-exceptions streamly streamly-bytestring template-haskell - text + mtl safe-exceptions streamly streamly-bytestring streamly-core + template-haskell text ]; testHaskellDepends = [ aeson attoparsec base bytestring case-insensitive containers dormouse-uri hedgehog hspec hspec-discover hspec-hedgehog http-api-data http-client http-client-tls http-types mtl safe-exceptions scientific streamly streamly-bytestring - template-haskell text vector + streamly-core template-haskell text vector ]; testToolDepends = [ hspec-discover ]; description = "Simple, type-safe and testable HTTP client"; @@ -94261,8 +94389,8 @@ self: { }: mkDerivation { pname = "dormouse-uri"; - version = "0.2.0.0"; - sha256 = "1b19167xprw9f4ivpfl0sdk2gs2ai6jxk25wyy7xlvzq2fn5q6sd"; + version = "0.3.0.0"; + sha256 = "1z6c4n2zrrxakj82w6hghn1srg8clnps7kng9j2rf9s6iqxqwhfz"; libraryHaskellDepends = [ attoparsec base bytestring case-insensitive containers http-types safe-exceptions template-haskell text @@ -98957,8 +99085,8 @@ self: { }: mkDerivation { pname = "elm-bridge"; - version = "0.8.3"; - sha256 = "0rcpcal9b4i293smgry74wznz15b6vga31l00z3h4vll96r62g9s"; + version = "0.8.4"; + sha256 = "1f16inr64xhsb2h9gbqlr1a38j3xqsw33v2xlr7k33yr2plss12y"; libraryHaskellDepends = [ aeson base template-haskell ]; testHaskellDepends = [ aeson base containers hspec QuickCheck text @@ -99350,23 +99478,21 @@ self: { "elm2nix" = callPackage ({ mkDerivation, aeson, ansi-wl-pprint, async, base, binary - , bytestring, containers, data-default, directory, filepath, here - , mtl, optparse-applicative, process, req, text, transformers - , unordered-containers + , bytestring, containers, here, optparse-applicative, process, text + , transformers, unordered-containers }: mkDerivation { pname = "elm2nix"; - version = "0.3.1"; - sha256 = "05jnn1wwarq877azw5ba222gcs4g3zijxq7lr2i21088kbl2wcg9"; + version = "0.4.0"; + sha256 = "0cdfpcbxancw52mavpv9993lbjshcfv07cjzabdghncn3j3g6q1k"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ - aeson async base binary bytestring containers data-default - directory filepath here mtl process req text transformers - unordered-containers + aeson async base binary bytestring containers here process text + transformers unordered-containers ]; executableHaskellDepends = [ - ansi-wl-pprint base directory here optparse-applicative + ansi-wl-pprint base here optparse-applicative ]; testHaskellDepends = [ base ]; description = "Turn your Elm project into buildable Nix project"; @@ -99794,8 +99920,8 @@ self: { }: mkDerivation { pname = "email-validate"; - version = "2.3.2.20"; - sha256 = "0k92hb8nn35ggp1lnqzp1s57znmhnabml217f41zdv8y1khfh3fc"; + version = "2.3.2.21"; + sha256 = "132ijz65csl1ki32nhw3d95x9vzl3lc22z2zhivv1yqh30lfpfgq"; libraryHaskellDepends = [ attoparsec base bytestring template-haskell ]; @@ -100760,10 +100886,8 @@ self: { }: mkDerivation { pname = "enummapset"; - version = "0.7.2.0"; - sha256 = "00n6nifk5hlp85mv0g68jpx9w19hx1cxqhbf7pqlm5m5f99y29m2"; - revision = "1"; - editedCabalFile = "14l25k5jy8lvc936cja46b1zfgmmd9yk1rqqrnznv2xl7xdj8725"; + version = "0.7.3.0"; + sha256 = "0w3hvypj14j7k8kfzrahyv7v35yj60jjyjv4klvnbw05a10hbj3l"; libraryHaskellDepends = [ aeson base containers deepseq ]; testHaskellDepends = [ aeson array base containers deepseq ghc-prim HUnit QuickCheck @@ -100985,8 +101109,8 @@ self: { }: mkDerivation { pname = "eo-phi-normalizer"; - version = "1.0.0"; - sha256 = "01952w59d4w0d0d4nk7lydjz75w6b1qsh662grd3z44ahd3zhyy7"; + version = "1.1.0"; + sha256 = "1xzi0dgk9fac2v1g1g0i5cq19kq97crmq0903bx3m2cn22v4la40"; isLibrary = true; isExecutable = true; setupHaskellDepends = [ base Cabal process PyF ]; @@ -105086,10 +105210,8 @@ self: { }: mkDerivation { pname = "extensible"; - version = "0.9"; - sha256 = "06zmc71r4cqglkv3av38djbkakvw9zxc3901xi2h65fwxn4npvnc"; - revision = "2"; - editedCabalFile = "19d0w4ifmjlkw7i36ah9xqcy3b9na7hcjnvj6grk5iqnlmkz6six"; + version = "0.9.1"; + sha256 = "1kp407jnfl0p086x06s43b30gvq9haixf3r8q2sz90v6gdzbjmvb"; libraryHaskellDepends = [ aeson base bytestring cassava comonad constraints deepseq ghc-prim hashable incremental membership prettyprinter primitive profunctors @@ -105270,17 +105392,15 @@ self: { mainProgram = "extensions"; }) {}; - "extensions_0_1_0_2" = callPackage + "extensions_0_1_0_3" = callPackage ({ mkDerivation, base, bytestring, Cabal, colourista, containers , directory, filepath, ghc-boot-th, hedgehog, hspec, hspec-hedgehog , optparse-applicative, parsec, text }: mkDerivation { pname = "extensions"; - version = "0.1.0.2"; - sha256 = "1ra1qfrsc3icv6lgm06pgrhv77shwb8r7ci2whgnj3hs692ld7gd"; - revision = "5"; - editedCabalFile = "04plmhvz94p8dhy5qfykv5p2z9g25mqjrmcdyz6fj3x2p9pfrscd"; + version = "0.1.0.3"; + sha256 = "1fks1yfdk0zjc1vccj3nr6li09j64cq6b6x9s5mi8qrsv5igbzlm"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -105352,8 +105472,8 @@ self: { }: mkDerivation { pname = "extism-pdk"; - version = "1.0.0.1"; - sha256 = "0gsc1ygrylgq85cbnj4chxikqx0gv7g10nzgmciwkimby94sl64r"; + version = "1.1.0.0"; + sha256 = "0bnhi02f3m9shsn1x2vn7rpjaii72sb6lrsw9njzk743ap23d1kr"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -106259,12 +106379,12 @@ self: { }) {}; "fast-myers-diff" = callPackage - ({ mkDerivation, base, dlist, hspec, text, vector }: + ({ mkDerivation, base, deepseq, dlist, hspec, text, vector }: mkDerivation { pname = "fast-myers-diff"; - version = "0.0.0"; - sha256 = "0biyv3x889c536dcb9ylglidlpi32v861586yhsjszshmpj38iz3"; - libraryHaskellDepends = [ base dlist text vector ]; + version = "0.0.1"; + sha256 = "12flhvdjhkw0iyrcwzjnqkiml698hgv203kl76qy778n59x9hvp7"; + libraryHaskellDepends = [ base deepseq dlist text vector ]; testHaskellDepends = [ base hspec text vector ]; description = "A fast implementation of the Myers diff algorithm"; license = lib.licenses.mit; @@ -107267,8 +107387,8 @@ self: { }: mkDerivation { pname = "fedora-composes"; - version = "0.2"; - sha256 = "1q8k41gsrf77dwv4a1kbvh0l949ashph8n08fv0n3b8xys4nl59x"; + version = "0.2.1"; + sha256 = "0y8cmjmdab3rnjvddxnsjyc28hcqv52a7c2f5505vxw0wz0x57bx"; isLibrary = false; isExecutable = true; executableHaskellDepends = [ @@ -107380,8 +107500,8 @@ self: { }: mkDerivation { pname = "fedora-repoquery"; - version = "0.7"; - sha256 = "1jpnmfm1pj4d078941hapd7ww975cy032d8jdkbparnv847nvd2n"; + version = "0.7.1"; + sha256 = "1jz8v914s7janr6xyk6sf2c0fxfw2c5d7shc08ks62qlvg8qbs8c"; isLibrary = false; isExecutable = true; executableHaskellDepends = [ @@ -108198,6 +108318,24 @@ self: { license = lib.licenses.bsd3; }) {}; + "fgl_5_8_3_0" = callPackage + ({ mkDerivation, array, base, containers, deepseq, hspec + , microbench, QuickCheck, transformers + }: + mkDerivation { + pname = "fgl"; + version = "5.8.3.0"; + sha256 = "1hb3mgqqz67qwfw2893bslj4mkhs4g0y51c6zpc6r2h6caqibjm4"; + libraryHaskellDepends = [ + array base containers deepseq transformers + ]; + testHaskellDepends = [ base containers hspec QuickCheck ]; + benchmarkHaskellDepends = [ base deepseq microbench ]; + description = "Martin Erwig's Functional Graph Library"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "fgl-arbitrary" = callPackage ({ mkDerivation, base, containers, fgl, hspec, QuickCheck }: mkDerivation { @@ -111625,8 +111763,8 @@ self: { }: mkDerivation { pname = "fold-debounce"; - version = "0.2.0.11"; - sha256 = "1i5lbzw2y43ppxk0kaqjap0dxyxpx5vqsvqxb2wqfkm3z8v63cy8"; + version = "0.2.0.12"; + sha256 = "1swlbsgqw6zhqr3rssbl2dmkkh81rw8qykz437py7r652p8plza3"; libraryHaskellDepends = [ base data-default-class stm stm-delay time ]; @@ -111708,30 +111846,6 @@ self: { }) {}; "foldl" = callPackage - ({ mkDerivation, base, bytestring, comonad, containers - , contravariant, criterion, doctest, hashable, primitive - , profunctors, random, semigroupoids, text, transformers - , unordered-containers, vector - }: - mkDerivation { - pname = "foldl"; - version = "1.4.16"; - sha256 = "18bbhz0bjxb30ni9m9nm4aj8klakkd2fbjaymg8j3f0kdki3isj9"; - revision = "1"; - editedCabalFile = "1p628vf9s2ypblfsc5i1vb9xchy6big5nggcqns9xznncvpp23zc"; - libraryHaskellDepends = [ - base bytestring comonad containers contravariant hashable primitive - profunctors random semigroupoids text transformers - unordered-containers vector - ]; - testHaskellDepends = [ base doctest ]; - benchmarkHaskellDepends = [ base criterion ]; - description = "Composable, streaming, and efficient left folds"; - license = lib.licenses.bsd3; - maintainers = [ lib.maintainers.Gabriella439 ]; - }) {}; - - "foldl_1_4_17" = callPackage ({ mkDerivation, base, bytestring, comonad, containers , contravariant, criterion, doctest, hashable, primitive , profunctors, random, semigroupoids, text, transformers @@ -111750,7 +111864,6 @@ self: { benchmarkHaskellDepends = [ base criterion profunctors ]; description = "Composable, streaming, and efficient left folds"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; maintainers = [ lib.maintainers.Gabriella439 ]; }) {}; @@ -112645,8 +112758,8 @@ self: { }: mkDerivation { pname = "fortran-src"; - version = "0.15.1"; - sha256 = "0h3wq3i18hy3w06dzk4l1w5vf3vzx24lyjznrplkbya6kc5y4kpp"; + version = "0.16.3"; + sha256 = "153zalj2d50w7gazsnc2i0530x1l12w5ppwn86q92xp5j56kij96"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -113369,46 +113482,45 @@ self: { , autodocodec-openapi3, base, bcp47, Blammo, Blammo-wai, bugsnag , bytestring, case-insensitive, cassava, conduit, conduit-extra , containers, cookie, datadog, doctest, ekg-core, exceptions, extra - , faktory, freckle-env, freckle-http, freckle-otel, Glob, hashable - , hs-opentelemetry-api, hs-opentelemetry-instrumentation-persistent + , faktory, freckle-env, freckle-exception, freckle-http + , freckle-otel, freckle-prelude, Glob, hs-opentelemetry-api + , hs-opentelemetry-instrumentation-persistent , hs-opentelemetry-instrumentation-wai, hs-opentelemetry-sdk, hspec , hspec-core, hspec-expectations-lifted, hspec-junit-formatter - , http-client, http-types, immortal, lens, monad-control - , monad-logger-aeson, monad-validate, MonadRandom, mtl - , nonempty-containers, openapi3, path-pieces, persistent - , persistent-postgresql, postgresql-simple, primitive, QuickCheck - , resource-pool, resourcet, safe, scientist, semigroupoids - , template-haskell, text, time, transformers, transformers-base - , typed-process, unliftio, unordered-containers, vector, wai - , wai-extra, yaml, yesod-core, yesod-test + , http-client, http-types, HUnit, immortal, lens, monad-control + , monad-validate, MonadRandom, mtl, nonempty-containers, openapi3 + , path-pieces, persistent, persistent-postgresql, postgresql-simple + , primitive, QuickCheck, resource-pool, resourcet, scientist + , semigroupoids, template-haskell, text, time, transformers + , transformers-base, typed-process, unliftio, unordered-containers + , vector, wai, wai-extra, yaml, yesod-core, yesod-test }: mkDerivation { pname = "freckle-app"; - version = "1.20.0.1"; - sha256 = "1lzs43japwnkn4gaxamnsjchimc2v2w8fkjb90j1jjvw1dnnaj8h"; + version = "1.20.2.1"; + sha256 = "09j74p9mxhxz689c9i46474d23hp5p1xmfz2l4pbfh8wfg91bb5a"; libraryHaskellDepends = [ aeson annotated-exception autodocodec autodocodec-openapi3 base bcp47 Blammo Blammo-wai bugsnag bytestring case-insensitive cassava conduit conduit-extra containers cookie datadog doctest ekg-core - exceptions extra faktory freckle-env freckle-http freckle-otel Glob - hashable hs-opentelemetry-api + exceptions extra faktory freckle-env freckle-exception freckle-http + freckle-otel freckle-prelude Glob hs-opentelemetry-api hs-opentelemetry-instrumentation-persistent hs-opentelemetry-instrumentation-wai hs-opentelemetry-sdk hspec hspec-core hspec-expectations-lifted hspec-junit-formatter - http-client http-types immortal lens monad-control - monad-logger-aeson monad-validate MonadRandom mtl - nonempty-containers openapi3 path-pieces persistent - persistent-postgresql postgresql-simple primitive QuickCheck - resource-pool resourcet safe scientist semigroupoids - template-haskell text time transformers transformers-base - typed-process unliftio unordered-containers vector wai wai-extra - yaml yesod-core yesod-test + http-client http-types HUnit immortal lens monad-control + monad-validate MonadRandom mtl nonempty-containers openapi3 + path-pieces persistent persistent-postgresql postgresql-simple + primitive QuickCheck resource-pool resourcet scientist + semigroupoids template-haskell text time transformers + transformers-base typed-process unliftio unordered-containers + vector wai wai-extra yaml yesod-core yesod-test ]; testHaskellDepends = [ - aeson async base Blammo bugsnag bytestring cassava conduit - hs-opentelemetry-api hspec http-types monad-validate - nonempty-containers postgresql-simple QuickCheck vector wai - wai-extra + aeson annotated-exception async base Blammo bugsnag bytestring + cassava conduit hs-opentelemetry-api hspec http-types HUnit + monad-validate nonempty-containers postgresql-simple QuickCheck + vector wai wai-extra ]; description = "Haskell application toolkit used at Freckle"; license = lib.licenses.mit; @@ -113612,14 +113724,19 @@ self: { }) {}; "free-alacarte" = callPackage - ({ mkDerivation, base }: + ({ mkDerivation, base, containers, hspec, QuickCheck, relude, tasty + , tasty-hspec, text, time + }: mkDerivation { pname = "free-alacarte"; - version = "1.0.0.2"; - sha256 = "1zshviy7a1apyg6v24qmf65dg2jh6c7ix0vpp1xi6ahkhcqbsnip"; + version = "1.0.0.7"; + sha256 = "033h3ghq7ibq74har4mv4njpwl6c6gndibq1qhlgx3x82ymxkgpk"; libraryHaskellDepends = [ base ]; + testHaskellDepends = [ + base containers hspec QuickCheck relude tasty tasty-hspec text time + ]; description = "Free monads based on intuitions from the Data types à la Carte"; - license = lib.licenses.gpl3Only; + license = lib.licenses.lgpl3Only; }) {}; "free-algebras" = callPackage @@ -114390,15 +114507,15 @@ self: { "fresnel" = callPackage ({ mkDerivation, ansi-terminal, base, containers, fused-effects - , hashable, profunctors, QuickCheck, template-haskell, transformers - , unordered-containers + , hashable, profunctors, QuickCheck, semigroupoids + , template-haskell, transformers, unordered-containers }: mkDerivation { pname = "fresnel"; - version = "0.0.0.3"; - sha256 = "1gimnk2f3b183xfr33lp52mwhr9q8hbpp72hgqir48phawkicrca"; + version = "0.1.0.1"; + sha256 = "02d8d4m4msx7hxmp337zig07cvq7sci31f9x429w19bj43sp9j7g"; libraryHaskellDepends = [ - base containers hashable profunctors transformers + base containers hashable profunctors semigroupoids transformers unordered-containers ]; testHaskellDepends = [ @@ -114415,8 +114532,8 @@ self: { ({ mkDerivation, base, fresnel, fused-effects }: mkDerivation { pname = "fresnel-fused-effects"; - version = "0.0.0.0"; - sha256 = "1img08a29q1s5zydk9hkggsq874hvqj44f0vjmxdr36j5r72v4kz"; + version = "0.0.0.1"; + sha256 = "00608jnm2p2r8c1b9p6khrxwgs29cclax24pbslx4xqv1fghgl4y"; libraryHaskellDepends = [ base fresnel fused-effects ]; description = "fresnel/fused-effects integration"; license = lib.licenses.bsd3; @@ -114763,8 +114880,8 @@ self: { }: mkDerivation { pname = "fs-api"; - version = "0.3.0.0"; - sha256 = "1l8rs0r6vbjb06qb5cd2qc9b8lb4cd0n159907q5s5zvm9nfgmd1"; + version = "0.3.0.1"; + sha256 = "0yjfldwmxqg4fgcymyb9bb9axwsfsnldnxxfmk54spkmiab8kr49"; libraryHaskellDepends = [ base bytestring containers deepseq digest directory filepath io-classes primitive safe-wild-cards text unix unix-bytestring @@ -114795,21 +114912,22 @@ self: { ({ mkDerivation, base, base16-bytestring, bifunctors, bytestring , containers, fs-api, generics-sop, io-classes, mtl, pretty-show , primitive, QuickCheck, quickcheck-state-machine, random - , safe-wild-cards, strict-stm, tasty, tasty-hunit, tasty-quickcheck - , temporary, text + , safe-wild-cards, tasty, tasty-hunit, tasty-quickcheck, temporary + , text }: mkDerivation { pname = "fs-sim"; - version = "0.3.0.0"; - sha256 = "0wphs3i5f400i313qgii0z76mk3xqvzr5swnmhyc67kcl50l807q"; + version = "0.3.0.1"; + sha256 = "1r094vpwpmq3956zs2yqvpliz0aq0wb71pnw566kcxm1rvv91wjr"; libraryHaskellDepends = [ base base16-bytestring bytestring containers fs-api io-classes mtl - primitive QuickCheck safe-wild-cards strict-stm text + primitive QuickCheck safe-wild-cards text ]; testHaskellDepends = [ base bifunctors bytestring containers fs-api generics-sop - pretty-show primitive QuickCheck quickcheck-state-machine random - strict-stm tasty tasty-hunit tasty-quickcheck temporary text + io-classes pretty-show primitive QuickCheck + quickcheck-state-machine random tasty tasty-hunit tasty-quickcheck + temporary text ]; description = "Simulated file systems"; license = lib.licenses.asl20; @@ -115628,13 +115746,15 @@ self: { }: mkDerivation { pname = "functor-monad"; - version = "0.1.1.0"; - sha256 = "027g26wr9lsasgrfw641i6zpvv23w7489d7wbljxnp6fnkfhxn30"; + version = "0.1.1.1"; + sha256 = "0rjc6ziwvvvlzhf50dx9zml75i647rzd5g4g3bf7nl0q51r4z063"; libraryHaskellDepends = [ adjunctions auto-lift-classes base bifunctors comonad day-comonoid free free-applicative-t kan-extensions transformers ]; - testHaskellDepends = [ base free transformers ]; + testHaskellDepends = [ + base comonad free kan-extensions transformers + ]; description = "FFunctor: functors on (the usual) Functors"; license = lib.licenses.bsd3; hydraPlatforms = lib.platforms.none; @@ -115868,28 +115988,6 @@ self: { }) {}; "fused-effects" = callPackage - ({ mkDerivation, base, containers, hedgehog, hedgehog-fn - , inspection-testing, markdown-unlit, tasty-bench, transformers - , unliftio-core - }: - mkDerivation { - pname = "fused-effects"; - version = "1.1.2.2"; - sha256 = "00m1lnn8zsb6iniyjmmbgiz7kd5c5kl7rxqqxlc2dkb4hpyrm4v5"; - revision = "1"; - editedCabalFile = "0ckc63n04kjlk4m3zjz0ynsc0b4rvz6ikpxcrbx8p9lj132ck6d7"; - libraryHaskellDepends = [ base transformers unliftio-core ]; - testHaskellDepends = [ - base containers hedgehog hedgehog-fn inspection-testing - transformers - ]; - testToolDepends = [ markdown-unlit ]; - benchmarkHaskellDepends = [ base tasty-bench transformers ]; - description = "A fast, flexible, fused effect system"; - license = lib.licenses.bsd3; - }) {}; - - "fused-effects_1_1_2_3" = callPackage ({ mkDerivation, base, containers, hedgehog, hedgehog-fn , inspection-testing, markdown-unlit, tasty-bench, transformers , unliftio-core @@ -115907,7 +116005,6 @@ self: { benchmarkHaskellDepends = [ base tasty-bench transformers ]; description = "A fast, flexible, fused effect system"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "fused-effects-exceptions" = callPackage @@ -115978,8 +116075,8 @@ self: { ({ mkDerivation, base, fused-effects, random, transformers }: mkDerivation { pname = "fused-effects-random"; - version = "1.1.0.0"; - sha256 = "0krcyx4hhvkxh0rbfwxb52xgb4rl45dflyx3aw8xryp6wn9my770"; + version = "1.1.0.1"; + sha256 = "1s259n2iq96rqhzh1vg9m0cpqyfh0ljjgrzw62b4ixm9c39vvw5n"; libraryHaskellDepends = [ base fused-effects random transformers ]; description = "Random number generation for fused-effects"; license = lib.licenses.bsd3; @@ -116118,8 +116215,8 @@ self: { }: mkDerivation { pname = "futhark"; - version = "0.25.21"; - sha256 = "1qhidm4vlpqh99mk6nn0kx95wbfhkkjy0dfcfvblkp03ckg0qbhm"; + version = "0.25.22"; + sha256 = "12x8n953l5j3msh95vbf94yh5yfw9x80grms2r59i3k6vg32bx01"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -116154,8 +116251,8 @@ self: { }: mkDerivation { pname = "futhark-data"; - version = "1.1.0.1"; - sha256 = "1i1npxiij2crgc5vbyqd9j786yh8a6gkshiys1cjwlzj30hm95n3"; + version = "1.1.1.0"; + sha256 = "010q8mbyy320vw785phczmdjdv55w5i7mdd6q04949lzfzxi3w0f"; libraryHaskellDepends = [ base binary bytestring bytestring-to-vector containers half megaparsec mtl scientific text vector vector-binary-instances @@ -119160,8 +119257,8 @@ self: { }: mkDerivation { pname = "genvalidity-containers"; - version = "1.0.0.1"; - sha256 = "155ri2ncwcjx2gl3mimfkafqdf33mzkk1188dk97wbzg0rpq69ip"; + version = "1.0.0.2"; + sha256 = "1087c37r829drixvs6cnl7irxph35nspims4ig20dqxg3g0zpx54"; libraryHaskellDepends = [ base containers genvalidity QuickCheck validity validity-containers ]; @@ -122049,6 +122146,8 @@ self: { pname = "ghc-tags-pipes"; version = "0.1.1.0"; sha256 = "1ajgqhnch20zfrslmng3hbmn3p9hcsd3d6b02yq6qv8rlxrl9nxn"; + revision = "1"; + editedCabalFile = "0r40shzvq4ps4nhp4yhw76wnkm07k711gqzdbrilig4vv0r82x89"; libraryHaskellDepends = [ attoparsec base bytestring ghc-tags-core mtl pipes pipes-attoparsec pipes-bytestring text @@ -122700,8 +122799,8 @@ self: { ({ mkDerivation }: mkDerivation { pname = "ghcjs-dom-javascript"; - version = "0.9.9.2"; - sha256 = "19011y6rnaa6mcch64gxpi1gzv6yp8ma2nxi6k6wp6myyfia57wh"; + version = "0.9.9.3"; + sha256 = "1k62w5czg544ias8q2kvhp8qnlafzisgx1p0gq8d2kh662w99kcg"; description = "DOM library using JSFFI and GHCJS"; license = lib.licenses.mit; platforms = [ "javascript-ghcjs" ]; @@ -123359,7 +123458,7 @@ self: { license = lib.licenses.lgpl21Only; }) {inherit (pkgs) gtk3;}; - "gi-gdk_4_0_8" = callPackage + "gi-gdk_4_0_9" = callPackage ({ mkDerivation, base, bytestring, Cabal, containers, gi-cairo , gi-gdkpixbuf, gi-gio, gi-glib, gi-gobject, gi-pango, gtk4 , haskell-gi, haskell-gi-base, haskell-gi-overloading, text @@ -123367,8 +123466,8 @@ self: { }: mkDerivation { pname = "gi-gdk"; - version = "4.0.8"; - sha256 = "1izl25parszwm9nayn0w9zvmic9bsfcfl1jiasnj11pmzzllyryc"; + version = "4.0.9"; + sha256 = "0c43wxbq4g41j107gnh8gyxjsws223p7kkm46hihjvs8pcxrab94"; setupHaskellDepends = [ base Cabal gi-cairo gi-gdkpixbuf gi-gio gi-glib gi-gobject gi-pango haskell-gi @@ -123506,8 +123605,8 @@ self: { }: mkDerivation { pname = "gi-gio"; - version = "2.0.34"; - sha256 = "0y01d4758lx6qchwgvqzjwgj00r3fqwpwxjm80wq7gdh0nnwwaz3"; + version = "2.0.35"; + sha256 = "07b4gg1wbb5mz63xpvjjdbdp0z9wci5jckr1gr0qxrizyc3vv2vi"; setupHaskellDepends = [ base Cabal gi-glib gi-gobject haskell-gi ]; libraryHaskellDepends = [ base bytestring containers gi-glib gi-gobject haskell-gi @@ -124964,8 +125063,8 @@ self: { }: mkDerivation { pname = "git-annex"; - version = "10.20240831"; - sha256 = "1ly9iirr0669i5aq3k1lf60sg5z3p08kn4jnvnjcx0l114b67q3j"; + version = "10.20240927"; + sha256 = "116nfcsnnbqcsv7azgrpk24p9nib8zbj96lg51c7xf7fp441xs9k"; configureFlags = [ "-fassistant" "-f-benchmark" "-fcrypton" "-fdbus" "-f-debuglocks" "-fmagicmime" "-fpairing" "-fproduction" "-ftorrentparser" @@ -125249,6 +125348,27 @@ self: { mainProgram = "git-mediate"; }) {}; + "git-mediate_1_1_0" = callPackage + ({ mkDerivation, ansi-terminal, base, base-compat, containers, Diff + , directory, filepath, generic-data, mtl, optparse-applicative + , process, split, unix-compat + }: + mkDerivation { + pname = "git-mediate"; + version = "1.1.0"; + sha256 = "090i7ghxihmn8zb0phaaw8xmkqy62rwr4awskh2rc1njpg6s29kq"; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ + ansi-terminal base base-compat containers Diff directory filepath + generic-data mtl optparse-applicative process split unix-compat + ]; + description = "Tool to help resolving git conflicts"; + license = lib.licenses.gpl2Only; + hydraPlatforms = lib.platforms.none; + mainProgram = "git-mediate"; + }) {}; + "git-monitor" = callPackage ({ mkDerivation, base, bytestring, containers, directory, filepath , gitlib, gitlib-libgit2, lifted-async, logging, old-locale @@ -125518,6 +125638,28 @@ self: { license = lib.licenses.bsd3; }) {}; + "github-app-token" = callPackage + ({ mkDerivation, aeson, base, bytestring, directory, dotenv, hspec + , http-conduit, http-types, jwt, markdown-unlit + , monoidal-containers, path, semigroups, text, time, unliftio + }: + mkDerivation { + pname = "github-app-token"; + version = "0.0.3.0"; + sha256 = "0w5fk6dms063qma11dib4spfmgbzs8nabjp8cdlgwlx9lvwnax3z"; + libraryHaskellDepends = [ + aeson base bytestring http-conduit http-types jwt + monoidal-containers path semigroups text time unliftio + ]; + testHaskellDepends = [ + aeson base bytestring directory dotenv hspec http-conduit + http-types markdown-unlit text time unliftio + ]; + testToolDepends = [ markdown-unlit ]; + description = "Generate an installation access token for a GitHub App"; + license = lib.licenses.mit; + }) {}; + "github-backup" = callPackage ({ mkDerivation, base, bytestring, Cabal, containers, directory , exceptions, filepath, git, github, hslogger, IfElse, mtl, network @@ -125784,6 +125926,25 @@ self: { license = lib.licenses.mit; }) {}; + "github-workflow-commands" = callPackage + ({ mkDerivation, base, bytestring, containers, hspec + , hspec-junit-formatter, lens, markdown-unlit, MonadRandom, text + }: + mkDerivation { + pname = "github-workflow-commands"; + version = "0.0.1.0"; + sha256 = "19w1q7ak2prlnmv0npgczmr2f76v16lgl9xnm88xvgijjcn3g52y"; + libraryHaskellDepends = [ + base bytestring containers lens MonadRandom text + ]; + testHaskellDepends = [ + base hspec hspec-junit-formatter lens markdown-unlit + ]; + testToolDepends = [ markdown-unlit ]; + description = "GitHub Actions workflow commands"; + license = lib.licenses.mit; + }) {}; + "githud" = callPackage ({ mkDerivation, base, bytestring, daemons, data-default, directory , filelock, mtl, network, parsec, process, tasty, tasty-hunit @@ -127499,8 +127660,8 @@ self: { }: mkDerivation { pname = "gnutls"; - version = "0.3"; - sha256 = "1v8haxpj2pfx3fjbjfp16r9488l9gj7ih26g978ampb5nwnq3gry"; + version = "0.3.1"; + sha256 = "0yjs39v0dzygfw00fzsjmcfgvv9vk44aqhkshn54ddnhvpdqx76p"; libraryHaskellDepends = [ base bytestring transformers unexceptionalio-trans ]; @@ -130067,6 +130228,30 @@ self: { mainProgram = "goldplate"; }) {}; + "goldplate_0_2_2_1" = callPackage + ({ mkDerivation, aeson, aeson-pretty, async, base, bytestring, Diff + , directory, filepath, Glob, optparse-applicative, process + , regex-pcre-builtin, text, unordered-containers + }: + mkDerivation { + pname = "goldplate"; + version = "0.2.2.1"; + sha256 = "09z937azq3n736gn1sgdy7bxw4nvgsrqicgxdh7x79qng7ks035w"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson aeson-pretty async base bytestring Diff directory filepath + Glob optparse-applicative process regex-pcre-builtin text + unordered-containers + ]; + executableHaskellDepends = [ base ]; + testHaskellDepends = [ aeson base bytestring process ]; + description = "A lightweight golden test runner"; + license = lib.licenses.asl20; + hydraPlatforms = lib.platforms.none; + mainProgram = "goldplate"; + }) {}; + "gooey" = callPackage ({ mkDerivation, base, renderable, transformers, varying }: mkDerivation { @@ -132264,8 +132449,8 @@ self: { }: mkDerivation { pname = "greskell"; - version = "2.0.3.0"; - sha256 = "17njclgkdawnm7hyjv12f2bar93ak9nysfx82igvb6qdp0213a91"; + version = "2.0.3.1"; + sha256 = "14sch5i757zg9zih7gz6s7qdkl0lrzra27qksxwk6bqbkrzdgw95"; libraryHaskellDepends = [ aeson base exceptions greskell-core hashable semigroups text transformers unordered-containers vector @@ -132287,8 +132472,8 @@ self: { }: mkDerivation { pname = "greskell-core"; - version = "1.0.0.1"; - sha256 = "1pjsx1cjm18k2x0h2b80y7qv666c2w5w2gz49qi0vdhx1kgrnzvr"; + version = "1.0.0.2"; + sha256 = "0byq7c26qsi19pbgp5wcaj7a0zvkljc678cjn92x8axi36y8ph8x"; libraryHaskellDepends = [ aeson base bytestring containers hashable scientific semigroups text unordered-containers uuid vector @@ -132311,8 +132496,8 @@ self: { }: mkDerivation { pname = "greskell-websocket"; - version = "1.0.0.1"; - sha256 = "1r9bs5aswh4kxsmwylpizp2b9xiwljic5h18k6qr9i2hgmpshqcn"; + version = "1.0.0.2"; + sha256 = "0liqgmkgivryyrgvc8k76qz62r5x482838rm4jg3diigp1mq2kxj"; libraryHaskellDepends = [ aeson async base base64-bytestring bytestring greskell-core hashtables safe-exceptions stm text unordered-containers uuid @@ -133838,6 +134023,31 @@ self: { broken = true; }) {inherit (pkgs) gtksourceview3;}; + "gtvm-hs" = callPackage + ({ mkDerivation, aeson, base, binrep, bytestring, containers + , exceptions, generic-data-functions, mtl, optparse-applicative + , path, polysemy, rerefined, strongweak, symparsec, text, yaml + }: + mkDerivation { + pname = "gtvm-hs"; + version = "1.0.0"; + sha256 = "05ghp2fadfmr7qsdvz2xj0wlg620l4h2fazwdfkv55126q7n190i"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson base binrep containers exceptions generic-data-functions mtl + path polysemy strongweak symparsec text yaml + ]; + executableHaskellDepends = [ + aeson base binrep bytestring containers exceptions + generic-data-functions mtl optparse-applicative path polysemy + rerefined strongweak symparsec text yaml + ]; + description = "Various tools for reversing and using assets from Golden Time: Vivid Memories"; + license = lib.licenses.mit; + mainProgram = "gtvm-hs"; + }) {}; + "guarded-allocation" = callPackage ({ mkDerivation, base }: mkDerivation { @@ -134464,7 +134674,7 @@ self: { ({ mkDerivation, aeson, asn1-encoding, attoparsec, base , base16-bytestring, bifunctors, binary, binary-conduit, bytestring , bz2, conduit, conduit-extra, containers, criterion - , crypto-cipher-types, cryptonite, errors, hashable + , crypto-cipher-types, crypton, errors, hashable , incremental-parser, ixset-typed, lens, memory, monad-loops , nettle, network-uri, openpgp-asciiarmor, prettyprinter , QuickCheck, quickcheck-instances, resourcet, split, tasty @@ -134473,12 +134683,12 @@ self: { }: mkDerivation { pname = "hOpenPGP"; - version = "2.9.8"; - sha256 = "1ibd9hah5y2qqpmfv5dk9iys3fnixw9blp855mjhfwpikgn3xypq"; + version = "2.10.0"; + sha256 = "1k8c4qwkn4nb9kz3zmlpkjdrmzygk9dc2fms8k8rgqlnz7l61ch5"; libraryHaskellDepends = [ aeson asn1-encoding attoparsec base base16-bytestring bifunctors binary binary-conduit bytestring bz2 conduit conduit-extra - containers crypto-cipher-types cryptonite errors hashable + containers crypto-cipher-types crypton errors hashable incremental-parser ixset-typed lens memory monad-loops nettle network-uri openpgp-asciiarmor prettyprinter resourcet split text time time-locale-compat transformers unliftio-core @@ -134487,7 +134697,7 @@ self: { testHaskellDepends = [ aeson attoparsec base base16-bytestring bifunctors binary binary-conduit bytestring bz2 conduit conduit-extra containers - crypto-cipher-types cryptonite errors hashable incremental-parser + crypto-cipher-types crypton errors hashable incremental-parser ixset-typed lens memory monad-loops nettle network-uri prettyprinter QuickCheck quickcheck-instances resourcet split tasty tasty-hunit tasty-quickcheck text time time-locale-compat @@ -134496,7 +134706,7 @@ self: { benchmarkHaskellDepends = [ aeson attoparsec base base16-bytestring bifunctors binary binary-conduit bytestring bz2 conduit conduit-extra containers - criterion crypto-cipher-types cryptonite errors hashable + criterion crypto-cipher-types crypton errors hashable incremental-parser ixset-typed lens memory monad-loops nettle network-uri prettyprinter resourcet split text time time-locale-compat transformers unliftio-core unordered-containers @@ -135494,8 +135704,8 @@ self: { pname = "hackage-security"; version = "0.6.2.6"; sha256 = "0sfvd5y9v01bjsxsrf446ldcqf56arzr94jk2zsvj49yddbn2hif"; - revision = "3"; - editedCabalFile = "04prkqrqfdynf7l5p9zdy802gp78cizc1ljskqn8qq3yzcj3x13n"; + revision = "4"; + editedCabalFile = "0d7znfvp5b2fqck7bcrhh8a2y21az1bryf0c8gp21j1crrq1lcd7"; libraryHaskellDepends = [ base base16-bytestring base64-bytestring bytestring Cabal Cabal-syntax containers cryptohash-sha256 directory ed25519 @@ -136548,8 +136758,8 @@ self: { pname = "hakyll"; version = "4.16.2.2"; sha256 = "0hnqf4xxgf1qgk262qvq0b0mx51jfv67y2kn6ca8jsp43dxy9941"; - revision = "1"; - editedCabalFile = "10ifx60yb8fi9y8xmqb446nzgqs5r0jh0cbrwkm2iy8valb8z63x"; + revision = "2"; + editedCabalFile = "15457i7cjr2khv3ipis013cm11hinxr5r0s32bgmmbbdqi1g1y2s"; isLibrary = true; isExecutable = true; enableSeparateDataOutput = true; @@ -138632,15 +138842,13 @@ self: { }) {}; "happstack-static-routing" = callPackage - ({ mkDerivation, base, containers, happstack-server, list-tries - , transformers - }: + ({ mkDerivation, base, containers, happstack-server, list-tries }: mkDerivation { pname = "happstack-static-routing"; - version = "0.7.0.0"; - sha256 = "0k2rdn2bvqmmnf46xqmczaaq6l0vx5mm7c2q5mr9kjr1g9gq53gh"; + version = "0.7.0.1"; + sha256 = "050zdxx1fp7yi1dfp3ls5cmqd435bqnj9ian77yi1sbdlk558a0a"; libraryHaskellDepends = [ - base containers happstack-server list-tries transformers + base containers happstack-server list-tries ]; description = "Support for static URL routing with overlap detection for Happstack"; license = lib.licenses.bsd3; @@ -138730,6 +138938,23 @@ self: { mainProgram = "happy"; }) {}; + "happy_2_0_2" = callPackage + ({ mkDerivation, array, base, containers, happy-lib, mtl, process + }: + mkDerivation { + pname = "happy"; + version = "2.0.2"; + sha256 = "0gp8fwn0k4vdz4g3s00jrh0n4g1arvpp6ps4f5xljqd1x1sjxxgp"; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ array base containers happy-lib mtl ]; + testHaskellDepends = [ base process ]; + description = "Happy is a parser generator for Haskell"; + license = lib.licenses.bsd2; + hydraPlatforms = lib.platforms.none; + mainProgram = "happy"; + }) {}; + "happy-arbitrary" = callPackage ({ mkDerivation, aeson, alex, array, base, bytestring, containers , data-fix, extra, file-embed, groom, happy, hspec, hspec-discover @@ -138783,6 +139008,19 @@ self: { broken = true; }) {}; + "happy-lib" = callPackage + ({ mkDerivation, array, base, containers, mtl, transformers }: + mkDerivation { + pname = "happy-lib"; + version = "2.0.2"; + sha256 = "0ki1yn2m7fadsj1vjfskc2py7s6sgkhhzbs4l3ykbmgxkskvza29"; + enableSeparateDataOutput = true; + libraryHaskellDepends = [ array base containers mtl transformers ]; + doHaddock = false; + description = "Happy is a parser generator for Haskell implemented using this library"; + license = lib.licenses.bsd2; + }) {}; + "happy-meta" = callPackage ({ mkDerivation, array, base, containers, fail, happy , haskell-src-meta, mtl, template-haskell @@ -139105,6 +139343,24 @@ self: { broken = true; }) {}; + "harpie" = callPackage + ({ mkDerivation, adjunctions, base, distributive, doctest-parallel + , first-class-families, prettyprinter, QuickCheck + , quickcheck-instances, random, vector, vector-algorithms + }: + mkDerivation { + pname = "harpie"; + version = "0.1.0.0"; + sha256 = "11jdq7d1zx17qa2i1nvg6iysm56plikwk5bkq32xjbjq28yb0jhs"; + libraryHaskellDepends = [ + adjunctions base distributive first-class-families prettyprinter + QuickCheck quickcheck-instances random vector vector-algorithms + ]; + testHaskellDepends = [ base doctest-parallel ]; + description = "Haskell array programming"; + license = lib.licenses.bsd3; + }) {}; + "harpy" = callPackage ({ mkDerivation, array, base, containers, disassembler, mtl, parsec , pretty, template-haskell @@ -139505,6 +139761,22 @@ self: { mainProgram = "hash-addressed"; }) {}; + "hash-cons" = callPackage + ({ mkDerivation, async, base, hashable, tasty, tasty-hunit + , tasty-quickcheck + }: + mkDerivation { + pname = "hash-cons"; + version = "0.1.0.0"; + sha256 = "04rdgc8lyf2byvjx5p3g06vcwjc6g0bh9qgk08c304p4q6rrijv4"; + libraryHaskellDepends = [ base hashable ]; + testHaskellDepends = [ + async base hashable tasty tasty-hunit tasty-quickcheck + ]; + description = "Opportunistic hash-consing data structure"; + license = lib.licenses.bsd3; + }) {}; + "hash-store" = callPackage ({ mkDerivation, base, base16-bytestring, blake2, bytestring , directory, filepath @@ -139716,6 +139988,8 @@ self: { pname = "hashed-storage"; version = "0.5.11"; sha256 = "0s8mnayxlvwrrii2l63b372yi5g08br6gpbgz2256d8y128mwjvk"; + revision = "1"; + editedCabalFile = "05jbnj9mijyai8g1ppkk5v52f4cvybkpki4wcqkm4nlgddyy0lx2"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -140929,8 +141203,8 @@ self: { }: mkDerivation { pname = "haskell-gi"; - version = "0.26.10"; - sha256 = "1njgrs1rqngw128z8dvc69l3v9bpr4apa153anmg1cjv8ji91rqm"; + version = "0.26.11"; + sha256 = "0raf97k9w0794i1viv0xqcpwp6ahpqdja11a4d5qk80r811rc5iw"; setupHaskellDepends = [ base Cabal cabal-doctest ]; libraryHaskellDepends = [ ansi-terminal attoparsec base bytestring Cabal containers directory @@ -140943,12 +141217,35 @@ self: { license = lib.licenses.lgpl21Only; }) {inherit (pkgs) glib; inherit (pkgs) gobject-introspection;}; + "haskell-gi_0_26_12" = callPackage + ({ mkDerivation, ansi-terminal, attoparsec, base, bytestring, Cabal + , cabal-doctest, containers, directory, doctest, filepath, glib + , gobject-introspection, haskell-gi-base, mtl, pretty-show, process + , regex-tdfa, safe, text, transformers, xdg-basedir, xml-conduit + }: + mkDerivation { + pname = "haskell-gi"; + version = "0.26.12"; + sha256 = "0qq2c5s7w0vaa01rpwv02qjrr1sd618vy2k25l55nb0hxzf9z3zi"; + setupHaskellDepends = [ base Cabal cabal-doctest ]; + libraryHaskellDepends = [ + ansi-terminal attoparsec base bytestring Cabal containers directory + filepath haskell-gi-base mtl pretty-show process regex-tdfa safe + text transformers xdg-basedir xml-conduit + ]; + libraryPkgconfigDepends = [ glib gobject-introspection ]; + testHaskellDepends = [ base doctest process ]; + description = "Generate Haskell bindings for GObject Introspection capable libraries"; + license = lib.licenses.lgpl21Only; + hydraPlatforms = lib.platforms.none; + }) {inherit (pkgs) glib; inherit (pkgs) gobject-introspection;}; + "haskell-gi-base" = callPackage ({ mkDerivation, base, bytestring, containers, glib, text }: mkDerivation { pname = "haskell-gi-base"; - version = "0.26.6"; - sha256 = "101ksx4nfacl2k3pf75iycvyk5yrjsp5jmqj0368sk7v5ppdw669"; + version = "0.26.8"; + sha256 = "19sp8yi9inxq7vqw6zpf2rlk56algxajkf8gyl0iqbx95kb4x1bb"; libraryHaskellDepends = [ base bytestring containers text ]; libraryPkgconfigDepends = [ glib ]; description = "Foundation for libraries generated by haskell-gi"; @@ -141717,10 +142014,8 @@ self: { ({ mkDerivation, array, base, happy, pretty, syb }: mkDerivation { pname = "haskell-src"; - version = "1.0.4"; - sha256 = "1spkhv83hy5v1lxs44l3w53vk8zj7gnx42c40hrkj4fcz6apdiwb"; - revision = "1"; - editedCabalFile = "0dfjzq0sxxcalqxygp2svx4890qx8b4amad0xldwy1f4xrp3lsnb"; + version = "1.0.4.1"; + sha256 = "1fgg7wriwan4bfgmwan8q8mryrcdcikksjr26a9fpi7csccbwhv0"; libraryHaskellDepends = [ array base pretty syb ]; libraryToolDepends = [ happy ]; description = "Support for manipulating Haskell source code"; @@ -144391,18 +144686,19 @@ self: { "hasmtlib" = callPackage ({ mkDerivation, array, attoparsec, base, bitvec, bytestring , containers, data-default, dependent-map, finite-typelits, lens - , mtl, smtlib-backends, smtlib-backends-process, some, text - , unordered-containers, utf8-string, vector-sized + , lifted-base, monad-control, mtl, smtlib-backends + , smtlib-backends-process, some, text, unordered-containers + , utf8-string, vector-sized }: mkDerivation { pname = "hasmtlib"; - version = "2.6.1"; - sha256 = "004dic90jsf65z6y8zv0ik3bb9ln1zw5b42kgdm5a4cg97q02fy2"; + version = "2.7.1"; + sha256 = "0bp183vdhc93sb8nhph3mvcl3v6f7x7hkqbj6ihmrgv2ipvykha1"; libraryHaskellDepends = [ array attoparsec base bitvec bytestring containers data-default - dependent-map finite-typelits lens mtl smtlib-backends - smtlib-backends-process some text unordered-containers utf8-string - vector-sized + dependent-map finite-typelits lens lifted-base monad-control mtl + smtlib-backends smtlib-backends-process some text + unordered-containers utf8-string vector-sized ]; description = "A monad for interfacing with external SMT solvers"; license = lib.licenses.gpl3Only; @@ -144485,7 +144781,7 @@ self: { license = lib.licenses.mit; }) {}; - "hasql_1_8_0_2" = callPackage + "hasql_1_8_1_1" = callPackage ({ mkDerivation, aeson, attoparsec, base, bytestring , bytestring-strict-builder, contravariant, contravariant-extras , criterion, dlist, hashable, hashtables, hspec, hspec-discover @@ -144496,8 +144792,8 @@ self: { }: mkDerivation { pname = "hasql"; - version = "1.8.0.2"; - sha256 = "0dgvbvvkn7d5khz5p97ndbw6j72zram986yn6m519ng3c30d51q9"; + version = "1.8.1.1"; + sha256 = "11k4c4rm77j575nzvizmb0ym1zzjrhbrflayzlb7yjkvjn4m2hww"; libraryHaskellDepends = [ aeson attoparsec base bytestring bytestring-strict-builder contravariant dlist hashable hashtables iproute mtl @@ -144779,8 +145075,8 @@ self: { pname = "hasql-listen-notify"; version = "0.1.0.1"; sha256 = "00pcbps2hdjd3i1xxsfgai81hgzc24cpj8n1iqg4xf7pd2c6cps4"; - revision = "2"; - editedCabalFile = "0lhn9axmzn9ps5s919yxhzl4fj35m0n1jizl8flbz2mn062z5w26"; + revision = "3"; + editedCabalFile = "1kln7wzfagcv7nq4a9lkgbc2dc2qxsxc47f8m45afra39grq9mw7"; libraryHaskellDepends = [ base bytestring hasql mtl postgresql-libpq text ]; @@ -145236,8 +145532,8 @@ self: { }: mkDerivation { pname = "hasql-transaction-io"; - version = "0.2.7.0"; - sha256 = "1z7xi1akm4cd2gzgmihv62mza253n4qxfbvcgd7117zb8mvyn6mz"; + version = "0.2.8.0"; + sha256 = "13zrr0shici3cpx0slhsb0qrvxj5sd5zr1dfnvg32gwkg91nqvgb"; libraryHaskellDepends = [ base bytestring bytestring-tree-builder exceptions hasql mtl resourcet safe-exceptions transformers unliftio-core @@ -146843,8 +147139,8 @@ self: { }: mkDerivation { pname = "hdf5"; - version = "1.8.12"; - sha256 = "07hcb2hld6wh5d8av77rzj1pr3gj5xpnk4364ks7xr38hx6lmiz3"; + version = "1.8.13"; + sha256 = "1xi2y1f2z19j12f8ggakvwji9y0v56q45c5mlg27ds0aih4y2rmz"; libraryHaskellDepends = [ base bindings-DSL bytestring libffi lifted-base monad-control primitive tagged transformers vector @@ -147679,8 +147975,8 @@ self: { pname = "hedgehog-classes"; version = "0.2.5.4"; sha256 = "0z9ik5asddc2pnz430jsi1pyahkh6jy36ng0vwm7ywcq7cvhcvlz"; - revision = "3"; - editedCabalFile = "1fgvv1bmipai8dh8vin92lzi642n5c8vynmvi3wfi4mynlacm5zb"; + revision = "5"; + editedCabalFile = "19jxkb9dszkvch4cd30n4nsp36p86xdbgqbliqv836m2qwayjmyp"; libraryHaskellDepends = [ aeson base binary comonad containers hedgehog pretty-show primitive semirings silently transformers vector wl-pprint-annotated @@ -148123,8 +148419,8 @@ self: { }: mkDerivation { pname = "heftia"; - version = "0.3.0.0"; - sha256 = "1brmn77ihnx2a7w64ikw9n8ym4gkaw7zkz5ycrc5dfzsl9ai220s"; + version = "0.3.1.0"; + sha256 = "09kvmpfkb88mgh3vvx78dn719ipifknav2b602l65ah7bwwn962n"; libraryHaskellDepends = [ base constraints data-effects extensible free kan-extensions membership mtl singletons-base singletons-th transformers @@ -148145,8 +148441,8 @@ self: { }: mkDerivation { pname = "heftia-effects"; - version = "0.3.0.0"; - sha256 = "00lgnsnyn0rwhgnzfdq6kq5wxcs3w6d6awcj65kikhp9ysnv0j5n"; + version = "0.3.1.0"; + sha256 = "1kdhhzw3kcpkjl5f4li6w3kygppj57bpscgdcxygy34cflgy4pdc"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -149756,18 +150052,6 @@ self: { }) {}; "hexml" = callPackage - ({ mkDerivation, base, bytestring, extra }: - mkDerivation { - pname = "hexml"; - version = "0.3.4"; - sha256 = "0amy5gjk1sqj5dq8a8gp7d3z9wfhcflhxkssijnklnfn5s002x4k"; - libraryHaskellDepends = [ base bytestring extra ]; - testHaskellDepends = [ base bytestring ]; - description = "XML subset DOM parser"; - license = lib.licenses.bsd3; - }) {}; - - "hexml_0_3_5" = callPackage ({ mkDerivation, base, bytestring, extra }: mkDerivation { pname = "hexml"; @@ -149777,7 +150061,6 @@ self: { testHaskellDepends = [ base bytestring ]; description = "XML subset DOM parser"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "hexml-lens" = callPackage @@ -149810,8 +150093,8 @@ self: { pname = "hexpat"; version = "0.20.13"; sha256 = "1l9zfp69r3xaxi2znjwpcrx7xckcqvaahv2c0qgkqq61a7ka1qa6"; - revision = "2"; - editedCabalFile = "1c3v93rmddyvsjpnc7lyhjhv4rki7rl6s3x2rm449vhc4i8ykhcg"; + revision = "3"; + editedCabalFile = "1y5dxv4pc408di2v7dx4cn9fy987ihahqws1qka1qkwc99dmqbkc"; libraryHaskellDepends = [ base bytestring containers deepseq List text transformers utf8-string @@ -151822,6 +152105,51 @@ self: { mainProgram = "hindent"; }) {}; + "hindent_6_2_0" = callPackage + ({ mkDerivation, async, base, bytestring, Cabal, containers + , criterion, deepseq, Diff, directory, exceptions, filepath + , ghc-lib-parser, ghc-lib-parser-ex, hspec, monad-loops, mtl + , optparse-applicative, path, path-io, regex-tdfa, split, syb + , transformers, unicode-show, utf8-string, yaml + }: + mkDerivation { + pname = "hindent"; + version = "6.2.0"; + sha256 = "05bpsp11cka1l6gmbvsp0fgya8ydx2lh38d3wgq309jf2vmri800"; + isLibrary = true; + isExecutable = true; + enableSeparateDataOutput = true; + libraryHaskellDepends = [ + async base bytestring Cabal containers deepseq directory exceptions + filepath ghc-lib-parser ghc-lib-parser-ex monad-loops mtl + optparse-applicative path path-io regex-tdfa split syb transformers + unicode-show utf8-string yaml + ]; + executableHaskellDepends = [ + async base bytestring Cabal containers directory exceptions + filepath ghc-lib-parser ghc-lib-parser-ex monad-loops mtl + optparse-applicative path path-io regex-tdfa split syb transformers + unicode-show utf8-string yaml + ]; + testHaskellDepends = [ + async base bytestring Cabal containers Diff directory exceptions + filepath ghc-lib-parser ghc-lib-parser-ex hspec monad-loops mtl + optparse-applicative path path-io regex-tdfa split syb transformers + unicode-show utf8-string yaml + ]; + benchmarkHaskellDepends = [ + async base bytestring Cabal containers criterion deepseq directory + exceptions filepath ghc-lib-parser ghc-lib-parser-ex monad-loops + mtl optparse-applicative path path-io regex-tdfa split syb + transformers unicode-show utf8-string yaml + ]; + doHaddock = false; + description = "Extensible Haskell pretty printer"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + mainProgram = "hindent"; + }) {}; + "hindley-milner" = callPackage ({ mkDerivation, base, containers, data-fix, hspec, mtl , transformers @@ -153221,7 +153549,7 @@ self: { ]; }) {}; - "hledger_1_34" = callPackage + "hledger_1_40" = callPackage ({ mkDerivation, aeson, ansi-terminal, base, bytestring, cmdargs , containers, data-default, Decimal, Diff, directory, extra , filepath, githash, hashable, haskeline, hledger-lib, lucid @@ -153232,8 +153560,8 @@ self: { }: mkDerivation { pname = "hledger"; - version = "1.34"; - sha256 = "08ygx4aavimxzmyvb9303xds455vs72jvkbrj41nca8357118j3z"; + version = "1.40"; + sha256 = "189lbp9dmg9kxik5zg7nk6jm8h5p8hpq1z01zsj8c29x8b8md7b7"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -153511,36 +153839,36 @@ self: { license = lib.licenses.gpl3Only; }) {}; - "hledger-lib_1_34" = callPackage + "hledger-lib_1_40" = callPackage ({ mkDerivation, aeson, aeson-pretty, ansi-terminal, array, base , base-compat, blaze-markup, bytestring, call-stack, cassava , cassava-megaparsec, cmdargs, colour, containers, data-default , Decimal, deepseq, directory, doclayout, doctest, extra - , file-embed, filepath, Glob, hashtables, megaparsec, microlens - , microlens-th, mtl, pager, parser-combinators, pretty-simple - , regex-tdfa, safe, tabular, tasty, tasty-hunit, template-haskell - , terminal-size, text, text-ansi, time, timeit, transformers - , uglymemo, unordered-containers, utf8-string + , file-embed, filepath, Glob, hashtables, lucid, megaparsec + , microlens, microlens-th, mtl, pager, parser-combinators + , pretty-simple, regex-tdfa, safe, tabular, tasty, tasty-hunit + , template-haskell, terminal-size, text, text-ansi, time, timeit + , transformers, uglymemo, unordered-containers, utf8-string }: mkDerivation { pname = "hledger-lib"; - version = "1.34"; - sha256 = "0789zyz5lbd67mphr8qq8wryni6dkf3759ah9fb7cm2wr5wwvd85"; + version = "1.40"; + sha256 = "05kap7kgjlh3y7j6ld0jqih21ad7acxd9cv18h0gb7kbwn7qm8vi"; libraryHaskellDepends = [ aeson aeson-pretty ansi-terminal array base base-compat blaze-markup bytestring call-stack cassava cassava-megaparsec cmdargs colour containers data-default Decimal deepseq directory - doclayout extra file-embed filepath Glob hashtables megaparsec - microlens microlens-th mtl pager parser-combinators pretty-simple - regex-tdfa safe tabular tasty tasty-hunit template-haskell - terminal-size text text-ansi time timeit transformers uglymemo - unordered-containers utf8-string + doclayout extra file-embed filepath Glob hashtables lucid + megaparsec microlens microlens-th mtl pager parser-combinators + pretty-simple regex-tdfa safe tabular tasty tasty-hunit + template-haskell terminal-size text text-ansi time timeit + transformers uglymemo unordered-containers utf8-string ]; testHaskellDepends = [ aeson aeson-pretty ansi-terminal array base base-compat blaze-markup bytestring call-stack cassava cassava-megaparsec cmdargs colour containers data-default Decimal deepseq directory - doclayout doctest extra file-embed filepath Glob hashtables + doclayout doctest extra file-embed filepath Glob hashtables lucid megaparsec microlens microlens-th mtl pager parser-combinators pretty-simple regex-tdfa safe tabular tasty tasty-hunit template-haskell terminal-size text text-ansi time timeit @@ -153629,7 +153957,7 @@ self: { maintainers = [ lib.maintainers.maralorn ]; }) {}; - "hledger-ui_1_34" = callPackage + "hledger-ui_1_40" = callPackage ({ mkDerivation, ansi-terminal, async, base, brick, cmdargs , containers, data-default, directory, doclayout, extra, filepath , fsnotify, githash, hledger, hledger-lib, megaparsec, microlens @@ -153638,10 +153966,8 @@ self: { }: mkDerivation { pname = "hledger-ui"; - version = "1.34"; - sha256 = "0w80bl6m98hsjzdpj5vjd768qs32vf8vdqzg6srh2z3pl36pjiki"; - revision = "1"; - editedCabalFile = "09ipwnyswhgx3jg9fp5b22qwk8xph9h80806l73s4rzk9h6nhh7x"; + version = "1.40"; + sha256 = "0rvijrnmkc21nllqcbkn6fh51ifp1n1p8qgmckfp5pngqg40vvnz"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -153716,7 +154042,7 @@ self: { maintainers = [ lib.maintainers.maralorn ]; }) {}; - "hledger-web_1_34" = callPackage + "hledger-web_1_40" = callPackage ({ mkDerivation, aeson, base, base64, blaze-html, blaze-markup , bytestring, case-insensitive, clientsession, cmdargs, conduit , conduit-extra, containers, data-default, Decimal, directory @@ -153729,8 +154055,8 @@ self: { }: mkDerivation { pname = "hledger-web"; - version = "1.34"; - sha256 = "1h39gjpdddnyryig4713pq9ipixzavr0mb7wlmzr5sbzqmnshbds"; + version = "1.40"; + sha256 = "1dsvsgdan7f8zc0z9x4zri2q6ccajvqpjpv18zj488ihknshiwgq"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -157418,7 +157744,7 @@ self: { "hopenpgp-tools" = callPackage ({ mkDerivation, aeson, alex, array, base, base16-bytestring , binary, binary-conduit, bytestring, conduit, conduit-extra - , containers, cryptonite, directory, errors, fgl, graphviz, happy + , containers, crypton, directory, errors, fgl, graphviz, happy , hOpenPGP, http-client, http-client-tls, http-types, ixset-typed , lens, memory, monad-loops, mtl, openpgp-asciiarmor , optparse-applicative, prettyprinter, prettyprinter-ansi-terminal @@ -157427,13 +157753,13 @@ self: { }: mkDerivation { pname = "hopenpgp-tools"; - version = "0.23.8"; - sha256 = "009l8c4zzbmh8q8x9f7zj21ysvma03ksxdknjfcb7z189mafb2qm"; + version = "0.23.10"; + sha256 = "0aaf0k26i5zjnijhnyng7jyhx6qdq2fdzq4idlmj3va386rfm2as"; isLibrary = false; isExecutable = true; executableHaskellDepends = [ aeson array base base16-bytestring binary binary-conduit bytestring - conduit conduit-extra containers cryptonite directory errors fgl + conduit conduit-extra containers crypton directory errors fgl graphviz hOpenPGP http-client http-client-tls http-types ixset-typed lens memory monad-loops mtl openpgp-asciiarmor optparse-applicative prettyprinter prettyprinter-ansi-terminal @@ -163082,14 +163408,27 @@ self: { ({ mkDerivation, base, bytestring, hslua-core, tasty, tasty-lua }: mkDerivation { pname = "hslua-list"; - version = "1.1.1"; - sha256 = "0p70rvvpkq598qpmyccyv6v44rh2glrl8l6vhk7kmy5k4g5gi39n"; + version = "1.1.3"; + sha256 = "1ipmf3rpc3ndc23zjmyjmy9lx0q53pm6bjwsgidbqxi4rxsbddqw"; libraryHaskellDepends = [ base bytestring hslua-core ]; testHaskellDepends = [ base hslua-core tasty tasty-lua ]; description = "Opinionated, but extensible Lua list type"; license = lib.licenses.mit; }) {}; + "hslua-list_1_1_4" = callPackage + ({ mkDerivation, base, bytestring, hslua-core, tasty, tasty-lua }: + mkDerivation { + pname = "hslua-list"; + version = "1.1.4"; + sha256 = "0lyrk95nnsdwi3zfaf4blvih49002wy5hxjj7l49ryc93padkvyk"; + libraryHaskellDepends = [ base bytestring hslua-core ]; + testHaskellDepends = [ base hslua-core tasty tasty-lua ]; + description = "Opinionated, but extensible Lua list type"; + license = lib.licenses.mit; + hydraPlatforms = lib.platforms.none; + }) {}; + "hslua-marshalling" = callPackage ({ mkDerivation, base, bytestring, containers, hslua-core , lua-arbitrary, mtl, QuickCheck, quickcheck-instances, tasty @@ -163119,6 +163458,8 @@ self: { pname = "hslua-module-doclayout"; version = "1.1.1.2"; sha256 = "1bgs6p20maqdwmqjv8nqsmlk63sjhb54icqs7d1kxsk8k9hh65qg"; + revision = "1"; + editedCabalFile = "0nxb6hm71v9lk9622z4kf30aasdr3m6b13maq8zd496i45msi4v4"; libraryHaskellDepends = [ base doclayout hslua text ]; testHaskellDepends = [ base doclayout hslua tasty tasty-hunit tasty-lua text @@ -163127,6 +163468,23 @@ self: { license = lib.licenses.mit; }) {}; + "hslua-module-doclayout_1_2_0" = callPackage + ({ mkDerivation, base, doclayout, hslua, tasty, tasty-hunit + , tasty-lua, text + }: + mkDerivation { + pname = "hslua-module-doclayout"; + version = "1.2.0"; + sha256 = "1x3znkdz1l8p8gsvazz85936p107xscsaah1ac3padyiswhair1j"; + libraryHaskellDepends = [ base doclayout hslua text ]; + testHaskellDepends = [ + base doclayout hslua tasty tasty-hunit tasty-lua text + ]; + description = "Lua module wrapping Text.DocLayout."; + license = lib.licenses.mit; + hydraPlatforms = lib.platforms.none; + }) {}; + "hslua-module-path" = callPackage ({ mkDerivation, base, filepath, hslua-core, hslua-marshalling , hslua-packaging, tasty, tasty-hunit, tasty-lua, text @@ -164330,8 +164688,8 @@ self: { }: mkDerivation { pname = "hspec-need-env"; - version = "0.1.0.10"; - sha256 = "13ms7ifdszwgmvvv1lbyqs53l86li0k639f3f9blfkz3lk3qx2kn"; + version = "0.1.0.11"; + sha256 = "1hsrrpp3dq47sr7khdd2cliyhwhiinjhkzg612nqxcz0whs00sgh"; libraryHaskellDepends = [ base hspec-core hspec-expectations ]; testHaskellDepends = [ base hspec hspec-core setenv transformers ]; testToolDepends = [ hspec-discover ]; @@ -166187,8 +166545,8 @@ self: { ({ mkDerivation, base, http-api-data, text }: mkDerivation { pname = "htmx"; - version = "0.1.0.1"; - sha256 = "06wnjhjgimggfhl2510lxwabqr5hdzb7yqlbmv9mi01c50q6idam"; + version = "0.1.0.2"; + sha256 = "1nc3v9gc3xvjj25djzhr5kii7cxf17mwshdipx2d2b95sngmp6yq"; libraryHaskellDepends = [ base http-api-data text ]; description = "Use htmx with various haskell libraries"; license = lib.licenses.mit; @@ -166200,8 +166558,8 @@ self: { ({ mkDerivation, base, htmx, lucid2, text }: mkDerivation { pname = "htmx-lucid"; - version = "0.2.0.0"; - sha256 = "1ilr1xarmavzfcy53asazk64gkww7wsjsmz0jyrbr4qj076dqj36"; + version = "0.2.0.1"; + sha256 = "0746z1y7w4x2qnraii23z5r1swdwdx07lz6ymjm1z3ia1m6zfz78"; libraryHaskellDepends = [ base htmx lucid2 text ]; description = "Use htmx with lucid"; license = lib.licenses.mit; @@ -166212,8 +166570,8 @@ self: { ({ mkDerivation, base, htmx, htmx-lucid, lucid2, servant, text }: mkDerivation { pname = "htmx-servant"; - version = "0.2.0.1"; - sha256 = "0vwj3d34ada0iskjr4k7a75x6hf750b71acjphnwddpqf233mfla"; + version = "0.2.0.2"; + sha256 = "0v6y6rpb5cwx7mbkkri8yqzikpfqzznblix3i1vag9crfydd8nq5"; libraryHaskellDepends = [ base htmx htmx-lucid lucid2 servant text ]; @@ -166775,8 +167133,8 @@ self: { }: mkDerivation { pname = "http-client-rustls"; - version = "0.0.1.0"; - sha256 = "1yx93cfvn8zqvsrl2bg6zv12acvmbz2d66wyhb7w53jib7gwzk8z"; + version = "0.0.2.0"; + sha256 = "03cl1nbbdjqnmk6yrzxf8sj8nr9zdkm5byvz300pp5ixgvvmnl05"; libraryHaskellDepends = [ base bytestring http-client network resourcet rustls text ]; @@ -166884,36 +167242,6 @@ self: { }) {}; "http-conduit" = callPackage - ({ mkDerivation, aeson, attoparsec, attoparsec-aeson, base - , blaze-builder, bytestring, case-insensitive, conduit - , conduit-extra, cookie, crypton-connection, data-default-class - , hspec, http-client, http-client-tls, http-types, HUnit, mtl - , network, resourcet, streaming-commons, temporary, text, time, tls - , transformers, unliftio, unliftio-core, utf8-string, wai - , wai-conduit, warp, warp-tls - }: - mkDerivation { - pname = "http-conduit"; - version = "2.3.8.3"; - sha256 = "1x6pvpcjndxm26plk29v5nfz19rnci4fjzbamidpjaidi990jlba"; - libraryHaskellDepends = [ - aeson attoparsec attoparsec-aeson base bytestring conduit - conduit-extra http-client http-client-tls http-types mtl resourcet - transformers unliftio-core - ]; - testHaskellDepends = [ - aeson attoparsec-aeson base blaze-builder bytestring - case-insensitive conduit conduit-extra cookie crypton-connection - data-default-class hspec http-client http-types HUnit network - resourcet streaming-commons temporary text time tls transformers - unliftio utf8-string wai wai-conduit warp warp-tls - ]; - doCheck = false; - description = "HTTP client package with conduit interface and HTTPS support"; - license = lib.licenses.bsd3; - }) {}; - - "http-conduit_2_3_9" = callPackage ({ mkDerivation, aeson, attoparsec, attoparsec-aeson, base , blaze-builder, bytestring, case-insensitive, conduit , conduit-extra, cookie, crypton-connection, data-default-class @@ -166941,7 +167269,6 @@ self: { doCheck = false; description = "HTTP client package with conduit interface and HTTPS support"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "http-conduit-browser" = callPackage @@ -169844,18 +170171,18 @@ self: { , network, polysemy, polysemy-log, polysemy-plugin, polysemy-time , prettyprinter, process, resourcet, stm, tasty, tasty-discover , tasty-hedgehog, temporary, testcontainers, text, time - , transformers, unliftio, yaml + , transformers, ulid, unliftio, yaml }: mkDerivation { pname = "hw-polysemy"; - version = "0.2.14.2"; - sha256 = "08cllz3vm444yzvds9b5057l235gs5ardy9x9fbkagdryids6afp"; + version = "0.2.14.11"; + sha256 = "1a71d98arml7qbq1374b4shkxv366f5w0agg4k6c89605h2zmfwl"; libraryHaskellDepends = [ aeson aeson-pretty async base binary bytestring contravariant Diff directory exceptions filepath generic-lens ghc-prim http-conduit lens mtl network polysemy polysemy-log polysemy-plugin polysemy-time prettyprinter process resourcet stm temporary - testcontainers text time transformers unliftio yaml + testcontainers text time transformers ulid unliftio yaml ]; testHaskellDepends = [ amazonka-s3 base filepath generic-lens lens polysemy polysemy-log @@ -170876,21 +171203,21 @@ self: { "hydra" = callPackage ({ mkDerivation, aeson, aeson-pretty, base, bytestring, containers - , directory, filepath, hspec, hspec-discover, HsYAML, HUnit + , directory, filepath, hspec, hspec-discover, HsYAML, HUnit, mtl , QuickCheck, scientific, split, text, vector }: mkDerivation { pname = "hydra"; - version = "0.5.1"; - sha256 = "0jg4dailiw0h8img3syhkxdzdlh3z11lya5azaqf0ki5kwh349n8"; + version = "0.8.0"; + sha256 = "1zbr11xabk4va286084wxyx49fmc3xc3wqfrx4h80mwqx9w5gr8b"; libraryHaskellDepends = [ aeson aeson-pretty base bytestring containers directory filepath - HsYAML scientific split text vector + HsYAML mtl scientific split text vector ]; testHaskellDepends = [ aeson aeson-pretty base bytestring containers directory filepath - hspec hspec-discover HsYAML HUnit QuickCheck scientific split text - vector + hspec hspec-discover HsYAML HUnit mtl QuickCheck scientific split + text vector ]; testToolDepends = [ hspec-discover ]; description = "Type-aware transformations for data and programs"; @@ -171785,17 +172112,16 @@ self: { "iCalendar" = callPackage ({ mkDerivation, base, base64-bytestring, bytestring - , case-insensitive, containers, data-default, mime, mtl, network + , case-insensitive, containers, data-default, mime, mtl , network-uri, old-locale, parsec, text, time }: mkDerivation { pname = "iCalendar"; - version = "0.4.0.5"; - sha256 = "1s1pnwbp6bnsyswrw4vz8hr33jrfd4xs8vnpvrh57a75jdskgsn0"; + version = "0.4.1.0"; + sha256 = "1nh2gdmm1kd8dlflxwzdqg9xdylqblb7xhnhpl143j1wfcnd1cn4"; libraryHaskellDepends = [ base base64-bytestring bytestring case-insensitive containers - data-default mime mtl network network-uri old-locale parsec text - time + data-default mime mtl network-uri old-locale parsec text time ]; description = "iCalendar data types, parser, and printer"; license = lib.licenses.bsd3; @@ -173419,18 +173745,19 @@ self: { "imm" = callPackage ({ mkDerivation, aeson, aeson-pretty, async, atom-conduit, base , beam-core, beam-sqlite, blaze-html, blaze-markup, bytestring - , chronos, co-log, conduit, containers, dhall, directory, filepath - , http-client, http-types, microlens, mime-mail, monad-time - , optparse-applicative, parsec, parsers, pipes, pipes-bytestring - , pipes-http, prettyprinter, prettyprinter-ansi-terminal, refined - , relude, rss-conduit, safe, safe-exceptions, sqlite-simple, stm - , stm-chans, streamly, text, time, timerep, typed-process - , typerep-map, uri-bytestring, xml-conduit, xml-types + , chronos, conduit, containers, dhall, directory, fast-logger + , filepath, http-client, http-types, microlens, mime-mail + , monad-time, optparse-applicative, parsec, parsers, pipes + , pipes-bytestring, pipes-http, prettyprinter + , prettyprinter-ansi-terminal, refined, relude, req, rss-conduit + , safe, safe-exceptions, sqlite-simple, stm, stm-chans, streamly + , streamly-core, text, time, timerep, typed-process, uri-bytestring + , xml-conduit, xml-types }: mkDerivation { pname = "imm"; - version = "2.1.1.0"; - sha256 = "1w3kypakf8zqz8r44r9bx0z5v4wxvhnf446jzarawn9fg7yigcqn"; + version = "2.1.3.0"; + sha256 = "02m8jylzj0lwfcs51c99kfbabblb2r3ds4whrqr1sg8yhm4w8lhc"; isLibrary = true; isExecutable = true; enableSeparateDataOutput = true; @@ -173443,12 +173770,12 @@ self: { ]; executableHaskellDepends = [ aeson async base beam-core beam-sqlite blaze-html blaze-markup - bytestring chronos co-log conduit containers dhall directory + bytestring chronos conduit containers dhall directory fast-logger filepath http-types microlens mime-mail monad-time optparse-applicative pipes pipes-bytestring pipes-http - prettyprinter prettyprinter-ansi-terminal refined relude safe - safe-exceptions sqlite-simple stm stm-chans streamly text time - typed-process typerep-map uri-bytestring xml-conduit xml-types + prettyprinter prettyprinter-ansi-terminal refined relude req safe + safe-exceptions sqlite-simple stm stm-chans streamly streamly-core + text time typed-process uri-bytestring xml-conduit xml-types ]; description = "Execute arbitrary actions for each item from RSS/Atom feeds"; license = lib.licenses.cc0; @@ -176257,8 +176584,8 @@ self: { ({ mkDerivation, base }: mkDerivation { pname = "intermediate-structures"; - version = "0.1.1.0"; - sha256 = "1jx9zhb1gwj79v6wh7536awqfnym1a3px9shcjrzz9br37ybiw8v"; + version = "0.1.2.0"; + sha256 = "1wf6g0a1pz6xiixqnkrdjlb2xr4ck2vab9vd0w6kp0pbhqc6qysp"; libraryHaskellDepends = [ base ]; description = "Some simple functions to deal with transformations from structures to other ones, basically lists"; license = lib.licenses.mit; @@ -176615,8 +176942,8 @@ self: { ({ mkDerivation, base, hedgehog, transformers }: mkDerivation { pname = "interval-functor"; - version = "0.0.0.0"; - sha256 = "0fkpqav61s47mjvfkhbg2hrx6p78v3jrs6vjj75aixccfg4k8n43"; + version = "0.0.0.1"; + sha256 = "0nvv9axfin3lmcbq0d5vhzd00gpz5hy2rczhz69jrvxm7wg0y0wi"; libraryHaskellDepends = [ base transformers ]; testHaskellDepends = [ base hedgehog ]; description = "Intervals of functors"; @@ -176942,6 +177269,8 @@ self: { pname = "invertible-grammar"; version = "0.1.3.5"; sha256 = "01g4lf31hgv8dqabmabkp6zld6v2l3a2mv9wcgyfxghfrd6dspdw"; + revision = "1"; + editedCabalFile = "04xlxfqhyapb2wzzzfvzk6pr11w4rfqyi1axvsk1mxlrihyvl6yy"; libraryHaskellDepends = [ base bifunctors containers mtl prettyprinter profunctors semigroups tagged template-haskell text transformers @@ -178423,8 +178752,8 @@ self: { }: mkDerivation { pname = "isomorphism-class"; - version = "0.1.0.12"; - sha256 = "1ffcjf2lic1mvvxfrfi0cc9qnz5qh73yjd3dsaq5p0h0amp8gppr"; + version = "0.1.1"; + sha256 = "1hq78k8msarpxlzdf5rmv6spkbbr2kvp4jjrp2klixzr3hd2ybnk"; libraryHaskellDepends = [ base bytestring containers hashable primitive text unordered-containers vector @@ -179915,8 +180244,8 @@ self: { pname = "javelin"; version = "0.1.2.0"; sha256 = "12xzs05dkkbn93yh1f5l7m64j3rifcz9qnd5nqqd62cj6nic10xl"; - revision = "1"; - editedCabalFile = "03pdxr80s9ah2yv3kxs76r1dz0j75zvcaylskm203c3cqg1f7scx"; + revision = "2"; + editedCabalFile = "11aizybgmbvmpjax3lsa99c1jib09sgg85g5xpws7qfggmrwj0h0"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -181838,8 +182167,8 @@ self: { }: mkDerivation { pname = "json-spec"; - version = "0.5.0.1"; - sha256 = "19kbipnr0v5pg95bvjc2j8wznyri9i0mb2ldx5zp9a1x5kmifwm7"; + version = "1.1.0.0"; + sha256 = "1mv0k9z1zqhklq6pqpx73b9f5wlcqnl0hj5h4n5i2qq6w2bwpi1g"; libraryHaskellDepends = [ aeson base containers scientific text time vector ]; @@ -181859,8 +182188,8 @@ self: { }: mkDerivation { pname = "json-spec-elm"; - version = "0.4.0.3"; - sha256 = "13gwqcgi08wc0zjx5vd5sx83rqp2nlh6wiyzh8idagv4f3xnm174"; + version = "0.4.0.5"; + sha256 = "17gna98c9x3zf7pc3yc1908si1v5l7vy5avrpc2gkdwnjaq6daq6"; libraryHaskellDepends = [ base bound containers elm-syntax json-spec mtl text ]; @@ -181878,8 +182207,8 @@ self: { }: mkDerivation { pname = "json-spec-elm-servant"; - version = "0.4.1.1"; - sha256 = "0g81dzs512rmgzk6h817d04sdacbdhd19j2qkmihlj6xzjd3gmbf"; + version = "0.4.2.2"; + sha256 = "1l2ykpjb8xv80sb7y08al3yxxvix8a55r5cg7f0sqyfkamyvqh8i"; libraryHaskellDepends = [ base bound containers directory elm-syntax filepath http-types json-spec json-spec-elm mtl prettyprinter process servant text @@ -181901,8 +182230,8 @@ self: { }: mkDerivation { pname = "json-spec-openapi"; - version = "0.3.1.1"; - sha256 = "1dq93wscynxzkknwwad7alvi6n7908j7nzzgz7q5753wbxwqj5yp"; + version = "1.0.0.0"; + sha256 = "1ail9zydaq68iiyha8gnc0z4gf8ra9kmn11p6x3ammv66mw9vpsr"; libraryHaskellDepends = [ aeson base insert-ordered-containers json-spec lens openapi3 text ]; @@ -181938,8 +182267,8 @@ self: { }: mkDerivation { pname = "json-stream"; - version = "0.4.5.3"; - sha256 = "0jysj25x98kw5326a0n08bygm70yc4l1y9ajyf1bca8003m5smvx"; + version = "0.4.6.0"; + sha256 = "0w59673565sjhcal7rk69v79fz5hal4fr8xj9jg3w7n3z5f849ym"; libraryHaskellDepends = [ aeson base bytestring containers primitive scientific text unordered-containers vector @@ -182019,6 +182348,41 @@ self: { broken = true; }) {}; + "json-to-type" = callPackage + ({ mkDerivation, aeson, base, bytestring, containers, data-default + , directory, filepath, GenericPretty, hashable, lens, mtl + , optparse-applicative, pretty, process, QuickCheck + , run-haskell-module, scientific, smallcheck, template-haskell + , text, uniplate, unordered-containers, vector, yaml + }: + mkDerivation { + pname = "json-to-type"; + version = "4.0.1"; + sha256 = "0hpki40mvmc3hla3y9hw1w5mfk96ickgm6lmyrnc79n272i7ygm5"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson base containers data-default filepath GenericPretty hashable + lens mtl pretty process QuickCheck run-haskell-module scientific + smallcheck template-haskell text uniplate unordered-containers + vector + ]; + executableHaskellDepends = [ + aeson base bytestring containers filepath GenericPretty hashable + lens mtl optparse-applicative pretty process scientific + template-haskell text uniplate unordered-containers vector yaml + ]; + testHaskellDepends = [ + aeson base bytestring containers directory filepath GenericPretty + hashable lens mtl optparse-applicative pretty process QuickCheck + scientific smallcheck template-haskell text uniplate + unordered-containers vector + ]; + description = "Automatic type declaration for JSON input data"; + license = lib.licenses.bsd3; + mainProgram = "json-to-type"; + }) {}; + "json-togo" = callPackage ({ mkDerivation, aeson, attoparsec, attoparsec-trans, base , bytestring, scientific, text, transformers, unordered-containers @@ -182374,6 +182738,8 @@ self: { pname = "jsonpath"; version = "0.3.0.0"; sha256 = "10a2wbkhdg2x61qpfvb4cl89plhvwy5nc5qqqs5jnll7kg4cabyi"; + revision = "1"; + editedCabalFile = "0k13cdhcpkh605i5pgb0vbg9q0xkq8gjm2pja4kfij4z41ila9ix"; libraryHaskellDepends = [ aeson base megaparsec scientific text unordered-containers vector ]; @@ -183512,42 +183878,6 @@ self: { }) {}; "katip" = callPackage - ({ mkDerivation, aeson, async, auto-update, base, blaze-builder - , bytestring, containers, criterion, deepseq, directory, either - , filepath, hostname, microlens, microlens-th, monad-control, mtl - , old-locale, quickcheck-instances, regex-tdfa, resourcet - , safe-exceptions, scientific, semigroups, stm, string-conv, tasty - , tasty-golden, tasty-hunit, tasty-quickcheck, template-haskell - , text, time, time-locale-compat, transformers, transformers-base - , transformers-compat, unix, unliftio-core, unordered-containers - , vector - }: - mkDerivation { - pname = "katip"; - version = "0.8.8.0"; - sha256 = "0p8xxbjfw7jcsbxdvypn3594f44wf6qizyrzmg1vvscqchqfaykl"; - libraryHaskellDepends = [ - aeson async auto-update base bytestring containers either hostname - microlens microlens-th monad-control mtl old-locale resourcet - safe-exceptions scientific semigroups stm string-conv - template-haskell text time transformers transformers-base - transformers-compat unix unliftio-core unordered-containers vector - ]; - testHaskellDepends = [ - aeson base bytestring containers directory microlens - quickcheck-instances regex-tdfa safe-exceptions stm tasty - tasty-golden tasty-hunit tasty-quickcheck template-haskell text - time time-locale-compat unordered-containers - ]; - benchmarkHaskellDepends = [ - aeson async base blaze-builder criterion deepseq directory filepath - safe-exceptions text time transformers unix - ]; - description = "A structured logging framework"; - license = lib.licenses.bsd3; - }) {}; - - "katip_0_8_8_2" = callPackage ({ mkDerivation, aeson, async, auto-update, base, blaze-builder , bytestring, containers, criterion, deepseq, directory, either , filepath, hostname, microlens, microlens-th, monad-control, mtl @@ -183581,7 +183911,6 @@ self: { ]; description = "A structured logging framework"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "katip-datadog" = callPackage @@ -183819,6 +184148,29 @@ self: { license = lib.licenses.bsd3; }) {}; + "katip-wai_0_2_0_0" = callPackage + ({ mkDerivation, aeson, async, base, bytestring, case-insensitive + , clock, containers, hspec, hspec-discover, http-client, http-types + , katip, network, stm, text, time, uuid, wai, warp + }: + mkDerivation { + pname = "katip-wai"; + version = "0.2.0.0"; + sha256 = "0n5p0sh961lsj86anx2bpnhhbcaf7y9kvhchqkd18aaw5s899yr3"; + libraryHaskellDepends = [ + aeson base bytestring case-insensitive clock containers http-types + katip network text time uuid wai + ]; + testHaskellDepends = [ + aeson async base bytestring containers hspec http-client http-types + katip stm text uuid wai warp + ]; + testToolDepends = [ hspec-discover ]; + description = "WAI middleware for logging request and response info through katip"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "katt" = callPackage ({ mkDerivation, aeson, base, bytestring, ConfigFile, containers , directory, errors, filepath, lens, mtl, parsec, text, url, wreq @@ -184537,25 +184889,23 @@ self: { , cryptohash-md5, derive-storable, derive-storable-plugin , file-embed, foldl, geomancy, geomancy-layout, GLFW-b, ktx-codec , neat-interpolation, optparse-applicative, optparse-simple - , resourcet, rio, rio-app, serialise, spirv-reflect-ffi + , resourcet, rio, rio-app, serialise, spirv-enum, spirv-reflect-ffi , spirv-reflect-types, StateVar, tagged, template-haskell, text , transformers, unagi-chan, unliftio, vector, vulkan, vulkan-utils , VulkanMemoryAllocator, zstd }: mkDerivation { pname = "keid-core"; - version = "0.1.9.0"; - sha256 = "0gx8hgn52a3hsirna09zn3j8amplp6kp5r8y4wzdr1fz03abas7d"; - revision = "1"; - editedCabalFile = "0wk745437iyyd247q3b8kgdqnysbzcsikbf60cvf3x2ycs8hlb4m"; + version = "0.1.9.1"; + sha256 = "0chyw6l1vzjdgn5mwfp39g2fhsxqs61xyxva2apvbk1xj8qm955g"; libraryHaskellDepends = [ base binary bytestring containers cryptohash-md5 derive-storable derive-storable-plugin file-embed foldl geomancy geomancy-layout GLFW-b ktx-codec neat-interpolation optparse-applicative - optparse-simple resourcet rio rio-app serialise spirv-reflect-ffi - spirv-reflect-types StateVar tagged template-haskell text - transformers unagi-chan unliftio vector vulkan vulkan-utils - VulkanMemoryAllocator zstd + optparse-simple resourcet rio rio-app serialise spirv-enum + spirv-reflect-ffi spirv-reflect-types StateVar tagged + template-haskell text transformers unagi-chan unliftio vector + vulkan vulkan-utils VulkanMemoryAllocator zstd ]; description = "Core parts of Keid engine"; license = lib.licenses.bsd3; @@ -184568,8 +184918,8 @@ self: { }: mkDerivation { pname = "keid-frp-banana"; - version = "0.1.2.0"; - sha256 = "1yaj6mjwqwa99v74bkn42r06l8gxw7cfydwyi013jfgxrjk0kn4l"; + version = "0.1.2.1"; + sha256 = "1zjw8ckzylwxyz8l5s2z62h2s5cpbcasrdbl94gvcx2mrwx1a4yw"; libraryHaskellDepends = [ base geomancy geomancy-layout keid-core reactive-banana resourcet rio these vulkan @@ -184660,8 +185010,8 @@ self: { }: mkDerivation { pname = "keid-ui-dearimgui"; - version = "0.1.3.0"; - sha256 = "07l35z43524gsp65nc7ipg93hdz1ssfd8mm3ifw7qpgc829vp9vl"; + version = "0.1.3.1"; + sha256 = "196w7mwj6wr95p88ij1zadz4908ivrqx5nwgrkc6hqybc4pa7ygh"; libraryHaskellDepends = [ base binary bytestring dear-imgui GLFW-b keid-core resourcet rio rio-app unliftio vector vulkan vulkan-utils VulkanMemoryAllocator @@ -184864,11 +185214,12 @@ self: { ({ mkDerivation, aeson, base, containers, HUnit, text }: mkDerivation { pname = "keuringsdienst"; - version = "1.0.0.5"; - sha256 = "1n44yr8r0gassyidr7ika4p421295a8c1z66m0dkm2aqw82hcim3"; + version = "1.0.2.0"; + sha256 = "156z9wxm62s70y83a51lxpjy3c2x0skq2p3jdjdkpwgqa0i7m7yr"; libraryHaskellDepends = [ aeson base containers text ]; testHaskellDepends = [ aeson base containers HUnit text ]; - license = lib.licenses.gpl3Only; + description = "Data validation in Haskell that is composable, made easy and clean"; + license = lib.licenses.lgpl3Only; }) {}; "kevin" = callPackage @@ -185642,10 +185993,8 @@ self: { }: mkDerivation { pname = "kmonad"; - version = "0.4.2"; - sha256 = "1d9l16b9srxkkpj61fbz06gxz3y200yn146sdv7h2bbxnjdswia2"; - revision = "2"; - editedCabalFile = "1djchj9c64p0fy3ahzkx3z9wg9dg7pjya3mb6z3wmhjvym8iavvv"; + version = "0.4.3"; + sha256 = "1wd55wx24sbgyq5laibmgn1agdq69333s9j7n44hs47a7hfxdvlv"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -185653,7 +186002,7 @@ self: { template-haskell time unix unliftio ]; executableHaskellDepends = [ base ]; - testHaskellDepends = [ base hspec ]; + testHaskellDepends = [ base hspec rio ]; testToolDepends = [ hspec-discover ]; description = "Advanced keyboard remapping utility"; license = lib.licenses.mit; @@ -185972,8 +186321,8 @@ self: { }: mkDerivation { pname = "kontrakcja-templates"; - version = "0.12"; - sha256 = "1asmsk3d4wqmiqsxnhaknmnrplrwq6cx6p7n7859rl6x7ac0fjg0"; + version = "0.12.0.1"; + sha256 = "0606qgrhnxm7a4fzh3jy0074vc61c95svfprq4p7i0i8n66v11h9"; libraryHaskellDepends = [ base containers directory exceptions HStringTemplate html json monad-control mtl time transformers transformers-base @@ -186428,6 +186777,25 @@ self: { license = lib.licenses.isc; }) {}; + "kvitable_1_1_0_1" = callPackage + ({ mkDerivation, base, containers, html-parse, lucid, microlens + , named-text, sayable, tasty, tasty-hunit, template-haskell, text + }: + mkDerivation { + pname = "kvitable"; + version = "1.1.0.1"; + sha256 = "1zb2s4fkcsa097x1ch02j6z5k1ya733f74rrs85hcrr8vm1hdgc0"; + libraryHaskellDepends = [ + base containers lucid microlens named-text sayable text + ]; + testHaskellDepends = [ + base html-parse microlens tasty tasty-hunit template-haskell text + ]; + description = "Key/Value Indexed Table container and formatting library"; + license = lib.licenses.isc; + hydraPlatforms = lib.platforms.none; + }) {}; + "kyotocabinet" = callPackage ({ mkDerivation, base, bytestring, cereal, kyotocabinet }: mkDerivation { @@ -189704,8 +190072,8 @@ self: { }: mkDerivation { pname = "launchdarkly-server-sdk"; - version = "4.1.0"; - sha256 = "072ppl47rdvcsliij7swdhzlskq30xdwvj5ag2a7060ax5pv23v2"; + version = "4.2.0"; + sha256 = "1ip40njah6i25v7wzkd5vpw9gs43dinb1x8ri8mhdn430h30mr05"; libraryHaskellDepends = [ aeson attoparsec base base16-bytestring bytestring clock containers cryptohash exceptions extra generic-lens hashtables http-client @@ -191689,6 +192057,39 @@ self: { maintainers = [ lib.maintainers.rvl ]; }) {}; + "lentil_1_5_7_0" = callPackage + ({ mkDerivation, base, bytestring, csv, deepseq, directory, dlist + , filemanip, filepath, hspec, hspec-discover, megaparsec, mtl + , natural-sort, optparse-applicative, prettyprinter + , prettyprinter-ansi-terminal, regex-tdfa, semigroups + , terminal-progress-bar, text + }: + mkDerivation { + pname = "lentil"; + version = "1.5.7.0"; + sha256 = "1xd68cfpq78w778j36d6hxsbi7cjdbsaab6ay0ian4b5a0qwnpic"; + isLibrary = false; + isExecutable = true; + executableHaskellDepends = [ + base bytestring csv deepseq directory dlist filemanip filepath + megaparsec mtl natural-sort optparse-applicative prettyprinter + prettyprinter-ansi-terminal regex-tdfa semigroups + terminal-progress-bar text + ]; + testHaskellDepends = [ + base bytestring csv deepseq directory dlist filemanip filepath + hspec megaparsec mtl natural-sort optparse-applicative + prettyprinter prettyprinter-ansi-terminal regex-tdfa semigroups + terminal-progress-bar text + ]; + testToolDepends = [ hspec-discover ]; + description = "frugal issue tracker"; + license = lib.licenses.gpl3Only; + hydraPlatforms = lib.platforms.none; + mainProgram = "lentil"; + maintainers = [ lib.maintainers.rvl ]; + }) {}; + "lenz" = callPackage ({ mkDerivation, base, base-unicode-symbols, hs-functors , transformers @@ -192830,28 +193231,30 @@ self: { "librarian" = callPackage ({ mkDerivation, base, containers, dhall, directory, easy-file - , Glob, hspec, hspec-core, hspec-discover, optparse-applicative - , pretty-show, regexpr, temporary + , either, Glob, hspec, hspec-core, hspec-discover + , optparse-applicative, pretty-show, regexpr, temporary, text, time }: mkDerivation { pname = "librarian"; - version = "0.1.0.0"; - sha256 = "0w3g6dq4kalniaxspj6zs4ghn9dyazkjga2vad4zb9cwr8i9vh2w"; + version = "0.1.0.1"; + sha256 = "16q7pfxklf29k2l644mjiff9jkfkjdb1zcqv0f6aynl15xvwc72v"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ - base containers dhall directory easy-file Glob pretty-show regexpr + base containers directory easy-file Glob pretty-show regexpr time + ]; + executableHaskellDepends = [ + base dhall directory either optparse-applicative text time ]; - executableHaskellDepends = [ base dhall optparse-applicative ]; testHaskellDepends = [ base containers directory easy-file Glob hspec hspec-core - hspec-discover temporary + hspec-discover temporary time ]; testToolDepends = [ hspec-discover ]; description = "Move/rename according a set of rules"; license = lib.licenses.isc; hydraPlatforms = lib.platforms.none; - mainProgram = "librarian"; + mainProgram = "librarian-exe"; }) {}; "librato" = callPackage @@ -193531,6 +193934,28 @@ self: { license = lib.licenses.bsd3; }) {}; + "lifted-async_0_10_2_6" = callPackage + ({ mkDerivation, async, base, constraints, deepseq, HUnit + , lifted-base, monad-control, mtl, tasty, tasty-bench + , tasty-expected-failure, tasty-hunit, tasty-th, transformers-base + }: + mkDerivation { + pname = "lifted-async"; + version = "0.10.2.6"; + sha256 = "1sh11zpmmxbkf00j6k0k858yhxpn7fckvw3d5yynkw263pz1hrzn"; + libraryHaskellDepends = [ + async base constraints lifted-base monad-control transformers-base + ]; + testHaskellDepends = [ + async base HUnit lifted-base monad-control mtl tasty + tasty-expected-failure tasty-hunit tasty-th + ]; + benchmarkHaskellDepends = [ async base deepseq tasty-bench ]; + description = "Run lifted IO operations asynchronously and wait for their results"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "lifted-base" = callPackage ({ mkDerivation, base, criterion, HUnit, monad-control, monad-peel , test-framework, test-framework-hunit, transformers @@ -193656,6 +194081,8 @@ self: { pname = "lifx-lan"; version = "0.8.3"; sha256 = "0077wdyrfz20lrd55lzv3bd1ab9cckppkm1gyzp1g23b8xwdayz5"; + revision = "1"; + editedCabalFile = "04956hhmg3cng3q4q26pbqy0lcrn5cv6wb57philixjsl4jlzrgp"; libraryHaskellDepends = [ ansi-terminal base binary bytestring colour composition containers extra monad-loops mtl network random safe text time transformers @@ -195711,8 +196138,8 @@ self: { }: mkDerivation { pname = "list-tries"; - version = "0.6.7"; - sha256 = "110y66kkbi6m55b3ba7p1r25xnf6n59yz2kdp4qf6s8c7a5i0wzh"; + version = "0.6.7.1"; + sha256 = "1wg247946hn79l4z7h35j304b867fs55b43l19jhkhqi86k4q5y2"; libraryHaskellDepends = [ base binary containers dlist ]; testHaskellDepends = [ base binary ChasingBottoms HUnit QuickCheck template-haskell @@ -196010,6 +196437,26 @@ self: { license = lib.licenses.bsd3; }) {}; + "little-logger_3_0_0" = callPackage + ({ mkDerivation, base, directory, monad-logger, mtl, optics, tasty + , tasty-hunit, temporary, text, unliftio-core + }: + mkDerivation { + pname = "little-logger"; + version = "3.0.0"; + sha256 = "1ckhkv6pj0sbjs7kn11jb8x5v4ilm8rx51mmi84zyzmxfkrpamwf"; + libraryHaskellDepends = [ + base monad-logger mtl optics text unliftio-core + ]; + testHaskellDepends = [ + base directory monad-logger mtl optics tasty tasty-hunit temporary + text unliftio-core + ]; + description = "Basic logging based on monad-logger"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "little-rio" = callPackage ({ mkDerivation, base, exceptions, little-logger, microlens, mtl , primitive, resourcet, unliftio-core @@ -196026,6 +196473,23 @@ self: { license = lib.licenses.bsd3; }) {}; + "little-rio_3_0_0" = callPackage + ({ mkDerivation, base, exceptions, little-logger, mtl, optics + , primitive, resourcet, unliftio-core + }: + mkDerivation { + pname = "little-rio"; + version = "3.0.0"; + sha256 = "1jkpcwsxrg142jb58vqhchnlhz7x7krr8hf3grycgxrzw2hnw10j"; + libraryHaskellDepends = [ + base exceptions little-logger mtl optics primitive resourcet + unliftio-core + ]; + description = "When you need just the RIO monad"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "live-sequencer" = callPackage ({ mkDerivation, alsa-core, alsa-seq, base, bytestring, cgi , concurrent-split, containers, data-accessor @@ -196557,6 +197021,8 @@ self: { pname = "llvm-pretty"; version = "0.12.1.0"; sha256 = "113avpn33gyh65yd0bbfwni044ih5vcbnv8l43siy8a4asp0xfwi"; + revision = "1"; + editedCabalFile = "0b7k8br3m9jb3zsh983zb7a2x85jn1z2dxxisc7jhjzvhb3xd9my"; libraryHaskellDepends = [ base containers microlens microlens-th monadLib parsec pretty syb template-haskell th-abstraction @@ -197672,10 +198138,8 @@ self: { }: mkDerivation { pname = "logic-TPTP"; - version = "0.5.0.0"; - sha256 = "0sqzf332c7zdwkdi1346dxljrdammiz1vc332j85487nb0ypnxwi"; - revision = "4"; - editedCabalFile = "012aqairsbxqrl0ak5i11wqr1rcdpwi5m4f5nww8glxi3jglnnyb"; + version = "0.5.1.0"; + sha256 = "1s3r85zw5ci5mg9rrik351xxi5k8cszlpdanwpxyrinjd3y6j01i"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -198312,8 +198776,8 @@ self: { }: mkDerivation { pname = "looper"; - version = "0.3.0.0"; - sha256 = "01ap0kscxq90zl9rdmgmlfh1dky95r7fmnivzic045ck57bshl2n"; + version = "0.3.0.1"; + sha256 = "0kcy4pr7z6ppqgnxbssp597qyjgcm25pdhbhzxjp0n205nywiz11"; libraryHaskellDepends = [ base opt-env-conf text time unliftio ]; testHaskellDepends = [ base opt-env-conf opt-env-conf-test sydtest unliftio @@ -199182,20 +199646,6 @@ self: { }) {}; "lua" = callPackage - ({ mkDerivation, base, lua5_4, tasty, tasty-hunit }: - mkDerivation { - pname = "lua"; - version = "2.3.2"; - sha256 = "0c9pq728ipcgmmxw58ab9p0lgcqqb2gf8dlscvgg52pb3q4qqamf"; - configureFlags = [ "-fsystem-lua" "-f-use-pkgconfig" ]; - libraryHaskellDepends = [ base ]; - librarySystemDepends = [ lua5_4 ]; - testHaskellDepends = [ base tasty tasty-hunit ]; - description = "Lua, an embeddable scripting language"; - license = lib.licenses.mit; - }) {inherit (pkgs) lua5_4;}; - - "lua_2_3_3" = callPackage ({ mkDerivation, base, lua5_4, tasty, tasty-hunit }: mkDerivation { pname = "lua"; @@ -199207,7 +199657,6 @@ self: { testHaskellDepends = [ base tasty tasty-hunit ]; description = "Lua, an embeddable scripting language"; license = lib.licenses.mit; - hydraPlatforms = lib.platforms.none; }) {inherit (pkgs) lua5_4;}; "lua-arbitrary" = callPackage @@ -199317,8 +199766,8 @@ self: { pname = "lucid"; version = "2.11.20230408"; sha256 = "07a41xkql96hkp9jawlaxn0lflvjf8a2djb45k3b3ig9zs82j48g"; - revision = "1"; - editedCabalFile = "1gb3b79xf4jp0xvk2anlvpvac6gqcfpffylkwki19lrx6jbd8fqs"; + revision = "2"; + editedCabalFile = "13hfdk1xj1fi0fd9crylvvzfr52z79j941im654jv50a3667lxfj"; libraryHaskellDepends = [ base blaze-builder bytestring containers hashable mmorph mtl text transformers @@ -199484,6 +199933,8 @@ self: { pname = "lucid2"; version = "0.0.20240424"; sha256 = "1ccpcbq84y53dxna700rfn6gaxn6xywqfdn27xpvbrl79w5x5p1j"; + revision = "1"; + editedCabalFile = "0xggpzcbzrbnd7f0rbjcsri914wwwy8qh256wrq41jswsrb00bkp"; libraryHaskellDepends = [ base bytestring containers mtl text transformers ]; @@ -199646,8 +200097,8 @@ self: { pname = "lumberjack"; version = "1.0.3.0"; sha256 = "05a4gvc47448crb0yn0fwi3y9bwdqlmnch839hljwpyamqvqwi8q"; - revision = "1"; - editedCabalFile = "1dj6mw8jbxczmqxwyiqqqz7lsi4586bbgv16m4ji14zmm84z2ad3"; + revision = "2"; + editedCabalFile = "1szaa11cdmdb8i2hpj0hl8cpwhkbk7s2iwq0hpck75as0xiqk36z"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -199776,8 +200227,8 @@ self: { pname = "lvmlib"; version = "1.1"; sha256 = "1lr2qr817mb8qb7b3wvry9jpj3wjphj5s60rn3dyqibx8gny36bg"; - revision = "1"; - editedCabalFile = "0bhgq85nsmyr14lmv1jihacsijsn48smfjymgc4myd6pvaa2f84k"; + revision = "2"; + editedCabalFile = "1zy8lh3a4gjfxglhyd561608jdxd1v8hgjwp8mi3hszj7i2ylkym"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -200221,22 +200672,22 @@ self: { "macaroon-shop" = callPackage ({ mkDerivation, base, bytes, bytestring, cereal, containers - , cryptonite, hedgehog, memory, saltine, transformers + , crypton, hedgehog, memory, saltine, transformers }: mkDerivation { pname = "macaroon-shop"; - version = "0.1.0.0"; - sha256 = "087b83l3bdx1mk79bxqcwckbjdz7idi0m73dcrjiv5b4q5rjr8rs"; + version = "0.1.0.1"; + sha256 = "1d03s3mj9h582amlvgz648ygc9g9bzj5ri668kk5pkif6wbr138d"; libraryHaskellDepends = [ - base bytes bytestring cereal containers cryptonite memory saltine + base bytes bytestring cereal containers crypton memory saltine transformers ]; testHaskellDepends = [ - base bytes bytestring cereal containers cryptonite hedgehog memory + base bytes bytestring cereal containers crypton hedgehog memory saltine transformers ]; description = "A toolkit for working with macaroons"; - license = lib.licenses.isc; + license = lib.licenses.bsd3; hydraPlatforms = lib.platforms.none; broken = true; }) {}; @@ -202769,6 +203220,8 @@ self: { pname = "matchable-th"; version = "0.2"; sha256 = "1v2r38r59wk699nsql3mw7z83gm1snvnci146ply34za7i42zp54"; + revision = "1"; + editedCabalFile = "17mdf8bsq9s2w4bl76zink0k55my43a3702f0zfxgqy5p2b09pkw"; libraryHaskellDepends = [ base bifunctors matchable template-haskell th-abstraction ]; @@ -203785,6 +204238,33 @@ self: { maintainers = [ lib.maintainers.dschrempf ]; }) {}; + "mcmc_0_8_3_0" = callPackage + ({ mkDerivation, ad, aeson, async, base, bytestring, circular + , containers, covariance, criterion, directory, dirichlet + , fixed-vector, hmatrix, hspec, log-domain, math-functions + , microlens, mwc-random, parallel, primitive, random, splitmix + , statistics, time, transformers, vector, zlib + }: + mkDerivation { + pname = "mcmc"; + version = "0.8.3.0"; + sha256 = "1p4j59wzzbrn5xy64pcg42g2qicski3j16prpm082sags0pv3i7r"; + libraryHaskellDepends = [ + ad aeson async base bytestring circular containers covariance + directory dirichlet hmatrix log-domain math-functions microlens + mwc-random parallel primitive random splitmix statistics time + transformers vector zlib + ]; + testHaskellDepends = [ base hspec random statistics ]; + benchmarkHaskellDepends = [ + aeson base criterion fixed-vector math-functions random vector + ]; + description = "Sample from a posterior using Markov chain Monte Carlo"; + license = lib.licenses.gpl3Plus; + hydraPlatforms = lib.platforms.none; + maintainers = [ lib.maintainers.dschrempf ]; + }) {}; + "mcmc-samplers" = callPackage ({ mkDerivation, base, containers, hakaru, hmatrix, mwc-random , primitive, statistics @@ -204959,8 +205439,8 @@ self: { }: mkDerivation { pname = "memory-hexstring"; - version = "1.0.0.0"; - sha256 = "1sm7jj75mv8p7f33h619zm10xbzyjg1jds87cg36mrj8hfb32q48"; + version = "1.0.1.0"; + sha256 = "0jwkikrv3pkhvxhq2bm675hiivx18m2p89x5irn3hn6mz85p08hq"; libraryHaskellDepends = [ aeson base bytestring memory scale template-haskell text ]; @@ -204986,6 +205466,25 @@ self: { broken = true; }) {}; + "mempack" = callPackage + ({ mkDerivation, base, binary, bytestring, cereal, criterion, FailT + , flat, hspec, mtl, QuickCheck, random, serialise, store, text + }: + mkDerivation { + pname = "mempack"; + version = "0.1.0.0"; + sha256 = "1ay2d0ag2gsqh2j0pgq34fk6lqdb09g01mh510p9g787l89mx7hy"; + libraryHaskellDepends = [ base bytestring FailT mtl text ]; + testHaskellDepends = [ + base bytestring FailT hspec mtl QuickCheck random + ]; + benchmarkHaskellDepends = [ + base binary bytestring cereal criterion flat serialise store + ]; + description = "Short description"; + license = lib.licenses.bsd3; + }) {}; + "memscript" = callPackage ({ mkDerivation, base, haskeline, transformers }: mkDerivation { @@ -207264,6 +207763,118 @@ self: { maintainers = [ lib.maintainers.mpscholten ]; }) {}; + "minion" = callPackage + ({ mkDerivation, aeson, base, base64-bytestring, binary, bytestring + , case-insensitive, containers, exceptions, filepath, http-api-data + , http-media, http-types, string-conversions, text, transformers + , wai, warp + }: + mkDerivation { + pname = "minion"; + version = "0.1.0.1"; + sha256 = "1mfrcs7v6r9ws3dhpac3g4zhcnr2ylp9mcncsas17wg21jlhzqfb"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson base base64-bytestring binary bytestring case-insensitive + containers exceptions filepath http-api-data http-media http-types + string-conversions text transformers wai + ]; + executableHaskellDepends = [ base warp ]; + description = "A Haskell introspectable web router"; + license = lib.licenses.mit; + }) {}; + + "minion-conduit" = callPackage + ({ mkDerivation, base, binary, bytestring, conduit, http-types + , minion, text, wai, warp + }: + mkDerivation { + pname = "minion-conduit"; + version = "0.1.0.0"; + sha256 = "06g30mqiajrn39lch9c4phm0zai6ni9hbnbq741mgbggkyszxqvs"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + base binary bytestring conduit http-types minion text wai + ]; + executableHaskellDepends = [ base warp ]; + description = "Minion conduit support"; + license = lib.licenses.mit; + mainProgram = "minion-conduit-example"; + }) {}; + + "minion-htmx" = callPackage + ({ mkDerivation, base, bytestring, http-types, minion, text }: + mkDerivation { + pname = "minion-htmx"; + version = "0.1.0.0"; + sha256 = "11zgxfplizkvbrrakx678xj49xyckbjqgb6iz4jrrjjls148ffp4"; + libraryHaskellDepends = [ base bytestring http-types minion text ]; + description = "Minion HTMX support"; + license = lib.licenses.mit; + }) {}; + + "minion-jwt" = callPackage + ({ mkDerivation, aeson, base, bytestring, http-types, jose, minion + , mtl, text, time, transformers, wai, warp + }: + mkDerivation { + pname = "minion-jwt"; + version = "0.1.0.0"; + sha256 = "1f9gfrwachf4ibmvj2129vpzl6qaxn5lbhsf2y0yydj63k5wc7mb"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson base bytestring http-types jose minion mtl text time + transformers wai + ]; + executableHaskellDepends = [ base warp ]; + description = "Minion JWT support"; + license = lib.licenses.mit; + mainProgram = "minion-jwt-example"; + }) {}; + + "minion-openapi3" = callPackage + ({ mkDerivation, aeson, base, blaze-html, blaze-markup, bytestring + , case-insensitive, directory, file-embed-lzma, filepath + , http-api-data, http-types, insert-ordered-containers, lens + , minion, minion-wai-extra, openapi3, template-haskell, text + }: + mkDerivation { + pname = "minion-openapi3"; + version = "0.1.0.0"; + sha256 = "03rqqx8dy6sk8ryp2a0ykw67rxj531sw12vzpnz8f17vw90x5npp"; + libraryHaskellDepends = [ + aeson base blaze-html blaze-markup bytestring case-insensitive + directory file-embed-lzma filepath http-api-data http-types + insert-ordered-containers lens minion minion-wai-extra openapi3 + template-haskell text + ]; + description = "Minion openapi3 support"; + license = lib.licenses.mit; + }) {}; + + "minion-wai-extra" = callPackage + ({ mkDerivation, base, binary, bytestring, http-media, http-types + , minion, resourcet, string-conversions, text, transformers, wai + , wai-extra, warp + }: + mkDerivation { + pname = "minion-wai-extra"; + version = "0.1.0.0"; + sha256 = "0mi6kqha1k4ln0l7kcl373mn4r5f80y1ih3s1a6y8k7y87rcx3c8"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + base binary bytestring http-media http-types minion resourcet + string-conversions text transformers wai wai-extra + ]; + executableHaskellDepends = [ base warp ]; + description = "Minion wrappers for wai-extra"; + license = lib.licenses.mit; + }) {}; + "minions" = callPackage ({ mkDerivation, ansi-terminal, base, MissingH, process, time }: mkDerivation { @@ -207923,6 +208534,26 @@ self: { license = lib.licenses.bsd3; }) {}; + "mixed-types-num_0_6_2" = callPackage + ({ mkDerivation, base, collect-errors, hspec, hspec-smallcheck + , QuickCheck, smallcheck, template-haskell + }: + mkDerivation { + pname = "mixed-types-num"; + version = "0.6.2"; + sha256 = "0nrbvnvzrfpxrxgg6mnd3jadhhx390cffqz1zrvcw9b2qzdk6i6b"; + libraryHaskellDepends = [ + base collect-errors hspec hspec-smallcheck QuickCheck smallcheck + template-haskell + ]; + testHaskellDepends = [ + base collect-errors hspec hspec-smallcheck QuickCheck smallcheck + ]; + description = "Alternative Prelude with numeric and logic expressions typed bottom-up"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "mixpanel-client" = callPackage ({ mkDerivation, aeson, base, base64-bytestring, bytestring, hspec , hspec-discover, http-client, http-client-tls, markdown-unlit @@ -208606,13 +209237,19 @@ self: { }) {}; "mockcat" = callPackage - ({ mkDerivation, base, hspec, mtl, template-haskell, text }: + ({ mkDerivation, base, hspec, mtl, template-haskell, text + , transformers + }: mkDerivation { pname = "mockcat"; - version = "0.3.1.0"; - sha256 = "1akg2r96qxqpis3m0xrnaxi26c0nvwr91f3yczai0pzhrp6887g4"; - libraryHaskellDepends = [ base mtl template-haskell text ]; - testHaskellDepends = [ base hspec mtl template-haskell text ]; + version = "0.5.1.0"; + sha256 = "08z3v6wvm42hgjsl5diqmv4m8j6idxnwy37w9fph8i22a2kf5hn8"; + libraryHaskellDepends = [ + base mtl template-haskell text transformers + ]; + testHaskellDepends = [ + base hspec mtl template-haskell text transformers + ]; description = "Mock library for test in Haskell"; license = lib.licenses.mit; }) {}; @@ -211191,14 +211828,14 @@ self: { "mono-traversable" = callPackage ({ mkDerivation, base, bytestring, containers, deepseq, foldl - , gauge, hashable, hspec, HUnit, mwc-random, QuickCheck, split - , text, transformers, unordered-containers, vector - , vector-algorithms + , gauge, hashable, hspec, hspec-discover, HUnit, mwc-random + , QuickCheck, split, text, transformers, unordered-containers + , vector, vector-algorithms }: mkDerivation { pname = "mono-traversable"; - version = "1.0.17.0"; - sha256 = "0byk9hc2yh95hnhlx1r7h7i42h4dnlm3kwqksb9kaqxwc2wgkn15"; + version = "1.0.20.0"; + sha256 = "0i9mz79nhsci3ichqzwnqq3llip7vblk4q98b3ydmcll7jayl8g6"; libraryHaskellDepends = [ base bytestring containers hashable split text transformers unordered-containers vector vector-algorithms @@ -211207,6 +211844,7 @@ self: { base bytestring containers foldl hspec HUnit QuickCheck text transformers unordered-containers vector ]; + testToolDepends = [ hspec-discover ]; benchmarkHaskellDepends = [ base bytestring containers deepseq gauge mwc-random text vector ]; @@ -211474,8 +212112,8 @@ self: { }: mkDerivation { pname = "monoidmap"; - version = "0.0.1.5"; - sha256 = "18698w7ibyjj3xbzfxh58djdrgi4dg1524g47n9pws8m04kgah2l"; + version = "0.0.1.6"; + sha256 = "15p32jm7pl7vpda65nyps9lbw0i32z9lp8zn3yg87480dab2jsqa"; libraryHaskellDepends = [ base containers deepseq groups monoid-subclasses nonempty-containers nothunks @@ -212920,11 +213558,13 @@ self: { }: mkDerivation { pname = "mpd-current-json"; - version = "1.3.2.0"; - sha256 = "04kwmfjc28y2j0wfgcf9m7qfh7vwa2cvzfsy2hpplyg5ji2ds11a"; + version = "2.1.0.0"; + sha256 = "0ici761fvhcl82gnsrzmab529rfwx990qv6qappk4wqvn0d1dvm2"; isLibrary = true; isExecutable = true; - libraryHaskellDepends = [ aeson base libmpd ]; + libraryHaskellDepends = [ + aeson aeson-pretty base bytestring libmpd + ]; executableHaskellDepends = [ aeson aeson-pretty base bytestring libmpd optparse-applicative ]; @@ -217099,8 +217739,8 @@ self: { }: mkDerivation { pname = "named-text"; - version = "1.2.0.0"; - sha256 = "017snabd25b06zgzdagpribqk3mbgd4y4npjf2d6vwzfi5mlcs4z"; + version = "1.2.1.0"; + sha256 = "079nlyhvwdbihlbxdskk8ny4kia7jz7fnw29y2jp576b4470zrgl"; libraryHaskellDepends = [ aeson base deepseq hashable prettyprinter sayable text ]; @@ -219051,14 +219691,14 @@ self: { license = lib.licenses.bsd3; }) {}; - "network_3_2_2_0" = callPackage + "network_3_2_4_0" = callPackage ({ mkDerivation, base, bytestring, deepseq, directory, hspec , hspec-discover, HUnit, QuickCheck, stm, temporary }: mkDerivation { pname = "network"; - version = "3.2.2.0"; - sha256 = "033zcj1ibrw49h4rbkhbznyz0na25zyaihh2m35wqlkgji3lkc7g"; + version = "3.2.4.0"; + sha256 = "16xpkjcp3k22sr7aby35xf5arh0rkq330g70dqaw29v7hb87fw1c"; libraryHaskellDepends = [ base bytestring deepseq directory stm ]; testHaskellDepends = [ base bytestring directory hspec HUnit QuickCheck temporary @@ -219786,12 +220426,12 @@ self: { license = lib.licenses.bsd3; }) {}; - "network-run_0_4_0" = callPackage + "network-run_0_4_1" = callPackage ({ mkDerivation, base, bytestring, network, time-manager }: mkDerivation { pname = "network-run"; - version = "0.4.0"; - sha256 = "07ndlpmsbzhd8sfk8rv1xm543g7v111rilysb9fl0llgzas8hra8"; + version = "0.4.1"; + sha256 = "1yl2y910s7b4a31anifl5agba88fwgn4k7958k56nk37hjwj0aq8"; libraryHaskellDepends = [ base bytestring network time-manager ]; description = "Simple network runner library"; license = lib.licenses.bsd3; @@ -219974,10 +220614,10 @@ self: { }: mkDerivation { pname = "network-transport"; - version = "0.5.7"; - sha256 = "163n3dl56vrmw4pdq66lb80ybjh58lqr85j69hpqwr24c46gjqk7"; + version = "0.5.8"; + sha256 = "141qsnxmj2iaclnimilygi4wrxn9hymjf1g7dq32hgswp60yzklx"; revision = "1"; - editedCabalFile = "1z9k8i5j01ajhashmy1kkwq6bqcwvi48j6d3n57i4bglfdz8s31z"; + editedCabalFile = "0nf7jxr7xcdx7rslqrpn4b4k5x35s3j9i2wvzgz0mg6mfdifllp2"; libraryHaskellDepends = [ base binary bytestring deepseq hashable transformers ]; @@ -220029,8 +220669,8 @@ self: { }: mkDerivation { pname = "network-transport-inmemory"; - version = "0.5.4"; - sha256 = "0557xhsswlypnxfvw5x3add29dai29ybi1g129mzkz0pi1wddxiq"; + version = "0.5.41"; + sha256 = "1h3fi1qyybjbr7ph4l2j0p8hgypk9j3jarr1c6365mr73m9wbwji"; libraryHaskellDepends = [ base bytestring containers data-accessor network-transport stm ]; @@ -220048,8 +220688,8 @@ self: { }: mkDerivation { pname = "network-transport-tcp"; - version = "0.8.4"; - sha256 = "141l1i8knh0b8wspq0zf2530z89bziiv13zw2s36drxg6inq6rcl"; + version = "0.8.5"; + sha256 = "1ppdi8j4whg86mplq3nkz8ll7d927drzj238bj9d1ym9izbprjjj"; libraryHaskellDepends = [ async base bytestring containers data-accessor network network-transport uuid @@ -220067,8 +220707,8 @@ self: { }: mkDerivation { pname = "network-transport-tests"; - version = "0.3.2"; - sha256 = "1w3cxiap0p8kgxs4jghvhfzpa6bazpha4s6zgabd80cw3gcmf5lf"; + version = "0.3.3"; + sha256 = "1x6gqv09nhqf2ynk3wx308gnwd2qqx7v54vsrlxn27vhajc105jl"; libraryHaskellDepends = [ ansi-terminal base bytestring containers mtl network-transport random @@ -220890,8 +221530,8 @@ self: { }: mkDerivation { pname = "ngx-export-tools"; - version = "1.2.4.1"; - sha256 = "120jk2d2yip9vd4r0s9b7z7ykh67i921svspn2kc7v5vwx95xn3w"; + version = "1.2.6.1"; + sha256 = "1xvhmvlcs10ibn0i2hrphp168gkygsxkbzbdmzp72pn8lhnjsgvd"; libraryHaskellDepends = [ aeson base binary bytestring ngx-export template-haskell ]; @@ -220902,19 +221542,20 @@ self: { "ngx-export-tools-extra" = callPackage ({ mkDerivation, aeson, array, async, base, base64, binary , bytestring, case-insensitive, containers, ede - , enclosed-exceptions, http-client, http-client-brread-timeout - , http-client-tls, http-types, network, ngx-export - , ngx-export-tools, pcre-heavy, pcre-light, prettyprinter, resolv - , safe, safe-exceptions, snap-core, snap-server, template-haskell - , text, time, trifecta, unordered-containers + , enclosed-exceptions, hashable, http-client + , http-client-brread-timeout, http-client-tls, http-types, network + , ngx-export, ngx-export-tools, pcre-heavy, pcre-light + , prettyprinter, resolv, safe, safe-exceptions, snap-core + , snap-server, template-haskell, text, time, trifecta + , unordered-containers }: mkDerivation { pname = "ngx-export-tools-extra"; - version = "1.2.9.1"; - sha256 = "0mafzhc6lnari85ng2iw025nhyvwsqkaamxf6jlkkm45k9zsa59y"; + version = "1.2.11"; + sha256 = "0aj78jb6vl4vl50z8qz2hjrid36wgrnfsgcmqsxm4pg1ph7bqkd0"; libraryHaskellDepends = [ aeson array async base base64 binary bytestring case-insensitive - containers ede enclosed-exceptions http-client + containers ede enclosed-exceptions hashable http-client http-client-brread-timeout http-client-tls http-types network ngx-export ngx-export-tools pcre-heavy pcre-light prettyprinter resolv safe safe-exceptions snap-core snap-server template-haskell @@ -225045,8 +225686,8 @@ self: { }: mkDerivation { pname = "ogma-cli"; - version = "1.4.0"; - sha256 = "096p2xx99d00p0qnrclnwdb4dq5wp1i2idz7wj1g7ccz3h26rm2z"; + version = "1.4.1"; + sha256 = "1r9yj862azfg4xngp0ghr9i6zawdaw4gkqb4nl6dpalsc7w0lx8w"; isLibrary = false; isExecutable = true; executableHaskellDepends = [ base ogma-core optparse-applicative ]; @@ -225060,21 +225701,21 @@ self: { }) {}; "ogma-core" = callPackage - ({ mkDerivation, aeson, base, bytestring, filepath, HUnit, IfElse - , mtl, ogma-extra, ogma-language-c, ogma-language-cocospec + ({ mkDerivation, aeson, base, bytestring, filepath, HUnit, mtl + , ogma-extra, ogma-language-c, ogma-language-cocospec , ogma-language-copilot, ogma-language-jsonspec, ogma-language-smv , ogma-spec, QuickCheck, test-framework, test-framework-hunit , test-framework-quickcheck2 }: mkDerivation { pname = "ogma-core"; - version = "1.4.0"; - sha256 = "03bbdqq69jqxfdaihykxxds4vcfvc6bydwkyz8zsanvsi5ifwza5"; + version = "1.4.1"; + sha256 = "1g2696iip5sshwgpf9rq769ivqrxc5km1rq0b2q50y91qfh583c9"; enableSeparateDataOutput = true; libraryHaskellDepends = [ - aeson base bytestring filepath IfElse mtl ogma-extra - ogma-language-c ogma-language-cocospec ogma-language-copilot - ogma-language-jsonspec ogma-language-smv ogma-spec + aeson base bytestring filepath mtl ogma-extra ogma-language-c + ogma-language-cocospec ogma-language-copilot ogma-language-jsonspec + ogma-language-smv ogma-spec ]; testHaskellDepends = [ base HUnit QuickCheck test-framework test-framework-hunit @@ -225091,8 +225732,8 @@ self: { }: mkDerivation { pname = "ogma-extra"; - version = "1.4.0"; - sha256 = "1lg9xph8hsb9jfxvyka6hqb9n9ijw4da29girjf6y16cf7ras3j0"; + version = "1.4.1"; + sha256 = "0mipcd5pyi0qxcsb0nhcb57rz7c64m2d36jq08sfvnfa161nhkx9"; libraryHaskellDepends = [ base bytestring Cabal directory filepath ]; @@ -225109,8 +225750,8 @@ self: { }: mkDerivation { pname = "ogma-language-c"; - version = "1.4.0"; - sha256 = "0bvsm9d65akrv67n9l9j0j0b6bpxddhj2fgzp4jrjw07dcqsfwpi"; + version = "1.4.1"; + sha256 = "0pnpafz2zmzylq7gzgpzx9358h2lfy3hhpz5wz0fiihh8rfakjgd"; setupHaskellDepends = [ base BNFC Cabal process ]; libraryHaskellDepends = [ array base ]; testHaskellDepends = [ @@ -225128,8 +225769,8 @@ self: { }: mkDerivation { pname = "ogma-language-cocospec"; - version = "1.4.0"; - sha256 = "1n2i2zxcci5ys0z00h28ndqyl7ay0i200y5krxnarwy5b28xcjnf"; + version = "1.4.1"; + sha256 = "16j2pqjymr03xkjc5fy2c0hp6c21j557c86ymhlmisy4hkd18195"; setupHaskellDepends = [ base BNFC Cabal process ]; libraryHaskellDepends = [ array base ]; testHaskellDepends = [ @@ -225145,8 +225786,8 @@ self: { ({ mkDerivation, base }: mkDerivation { pname = "ogma-language-copilot"; - version = "1.4.0"; - sha256 = "16ybs7c1404c1hsmrimqs9lx0m5d24kvqjd99ljmk4vw4hb686if"; + version = "1.4.1"; + sha256 = "0v2nw4mk891faayhvww2qjlrxfcqsgy2ha9zagaby2mfb5q1avh9"; libraryHaskellDepends = [ base ]; description = "Ogma: Runtime Monitor translator: Copilot Language Endpoints"; license = "unknown"; @@ -225200,8 +225841,8 @@ self: { }: mkDerivation { pname = "ogma-language-jsonspec"; - version = "1.4.0"; - sha256 = "0xrdnbsdm2a06r3n7i19bb9dcgssgb9fcly5c7rx7p4744lli3as"; + version = "1.4.1"; + sha256 = "1bl4ypyj3q6xy1dnfpywbii51521vf5la19jmy82scql9vs9y8rm"; libraryHaskellDepends = [ aeson base bytestring jsonpath megaparsec ogma-spec text ]; @@ -225217,8 +225858,8 @@ self: { }: mkDerivation { pname = "ogma-language-smv"; - version = "1.4.0"; - sha256 = "1f2afvxdjgkgdc64w0f455fb4r9w43nbsjjm4q2s4lhqhrf7qqa9"; + version = "1.4.1"; + sha256 = "0jwsqamnqnvy2id1js61a2xkxr5vj6w5xlpfqh0m1qqsgp2qg5kw"; setupHaskellDepends = [ base BNFC Cabal process ]; libraryHaskellDepends = [ array base ]; testHaskellDepends = [ @@ -225234,8 +225875,8 @@ self: { ({ mkDerivation, base }: mkDerivation { pname = "ogma-spec"; - version = "1.4.0"; - sha256 = "01lgymsrvkh75jjssxbn5wzw3d51fpc27ngf6pfmrkbd7fx39287"; + version = "1.4.1"; + sha256 = "0a0fdx1hpvncyaxsalknkwv8ms2a0p9giazgpkrikr4p14rb771k"; libraryHaskellDepends = [ base ]; description = "Ogma: Runtime Monitor translator: JSON Frontend"; license = "unknown"; @@ -225485,25 +226126,6 @@ self: { }) {}; "om-elm" = callPackage - ({ mkDerivation, base, bytestring, Cabal, containers, directory - , http-types, safe, safe-exceptions, template-haskell, text, unix - , wai - }: - mkDerivation { - pname = "om-elm"; - version = "2.0.0.6"; - sha256 = "1gjrnrl3gvjg85ldgih7zi4sv53vrfl28jymn4z70xnpna7lvph9"; - libraryHaskellDepends = [ - base bytestring Cabal containers directory http-types safe - safe-exceptions template-haskell text unix wai - ]; - description = "Haskell utilities for building embedded Elm programs"; - license = lib.licenses.mit; - hydraPlatforms = lib.platforms.none; - broken = true; - }) {}; - - "om-elm_2_0_0_7" = callPackage ({ mkDerivation, base, bytestring, Cabal, containers, directory , http-types, safe, safe-exceptions, template-haskell, text, unix , wai @@ -226196,6 +226818,36 @@ self: { license = lib.licenses.bsd3; }) {}; + "opaleye_0_10_4_0" = callPackage + ({ mkDerivation, aeson, base, base16-bytestring, bytestring + , case-insensitive, containers, contravariant, dotenv, hspec + , hspec-discover, multiset, postgresql-simple, pretty + , product-profunctors, profunctors, QuickCheck, scientific + , semigroups, text, time, time-compat, time-locale-compat + , transformers, uuid-types, void + }: + mkDerivation { + pname = "opaleye"; + version = "0.10.4.0"; + sha256 = "16sj1kim44g93cnxkw26hp203ib7pkyzscalk5rfnlz409s1jhp9"; + libraryHaskellDepends = [ + aeson base base16-bytestring bytestring case-insensitive + contravariant postgresql-simple pretty product-profunctors + profunctors scientific semigroups text time-compat + time-locale-compat transformers uuid-types void + ]; + testHaskellDepends = [ + aeson base bytestring containers contravariant dotenv hspec + hspec-discover multiset postgresql-simple product-profunctors + profunctors QuickCheck semigroups text time time-compat + transformers + ]; + testToolDepends = [ hspec-discover ]; + description = "An SQL-generating DSL targeting PostgreSQL"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "opaleye-classy" = callPackage ({ mkDerivation, base, bytestring, lens, mtl, opaleye , postgresql-simple, product-profunctors, transformers @@ -227909,8 +228561,8 @@ self: { }: mkDerivation { pname = "opt-env-conf"; - version = "0.5.0.1"; - sha256 = "1x0zb436yrcvihr6g7g7gz2w0nhlbv3nqgf0rmaa3clp72a272rk"; + version = "0.5.1.0"; + sha256 = "024qqi8gfha21ch54dja0rrmcqalmxn6qgxypzvmqzxdmv1fcwjh"; libraryHaskellDepends = [ aeson autodocodec autodocodec-nix autodocodec-schema autodocodec-yaml base containers hashable mtl path path-io @@ -229701,8 +230353,8 @@ self: { ({ mkDerivation, base, containers, pa-prelude }: mkDerivation { pname = "pa-error-tree"; - version = "0.1.0.0"; - sha256 = "0ffnz0642kqkjancq5smjal6ap59p4jc8c8zr0qhv7wdbs83sbgq"; + version = "0.1.1.0"; + sha256 = "0qp63q5jcal4vd31lhyiz0vb5nmrjv9n2pxw0jl2avnpmbhsg7kd"; libraryHaskellDepends = [ base containers pa-prelude ]; description = "Collect a tree of errors and pretty-print"; license = lib.licenses.bsd3; @@ -229715,8 +230367,8 @@ self: { }: mkDerivation { pname = "pa-field-parser"; - version = "0.3.0.0"; - sha256 = "0myd5zcxz7cx731a9ymqnny34k2gjav7x7053f358r5dymmjp32j"; + version = "0.3.1.0"; + sha256 = "1wh4pki488id333kvd5k1zmr7pv2dxb2461w9bvmp6x0311hwkmb"; libraryHaskellDepends = [ aeson aeson-better-errors attoparsec base case-insensitive containers pa-error-tree pa-prelude scientific semigroupoids @@ -229728,18 +230380,18 @@ self: { "pa-json" = callPackage ({ mkDerivation, aeson, aeson-better-errors, aeson-pretty, base - , base64-bytestring, bytestring, containers, pa-error-tree - , pa-field-parser, pa-label, pa-prelude, scientific, text, time - , vector + , base64-bytestring, bytestring, containers, mono-traversable + , pa-error-tree, pa-field-parser, pa-label, pa-prelude, scientific + , text, time, vector }: mkDerivation { pname = "pa-json"; - version = "0.3.0.0"; - sha256 = "0fwjv244kbbc9zixf64654fwdykk8h4qc7iv7w7l08bywmjrgrs5"; + version = "0.4.0.0"; + sha256 = "19h8irg3lyaa5ilgk3f7w0bfa9fvcamh79z6faqchnc5lhb7akgw"; libraryHaskellDepends = [ aeson aeson-better-errors aeson-pretty base base64-bytestring - bytestring containers pa-error-tree pa-field-parser pa-label - pa-prelude scientific text time vector + bytestring containers mono-traversable pa-error-tree + pa-field-parser pa-label pa-prelude scientific text time vector ]; description = "Our JSON parsers/encoders"; license = lib.licenses.bsd3; @@ -229749,8 +230401,8 @@ self: { ({ mkDerivation, base }: mkDerivation { pname = "pa-label"; - version = "0.1.1.0"; - sha256 = "10v107ck2c9vq09qcmh652f0w33c68xfbn1fcg042mh41j8860dl"; + version = "0.1.2.0"; + sha256 = "03y2cn6yy06xcpnjs5zc8hd8iba4k44wrrncl7ksplg8j3iank1x"; libraryHaskellDepends = [ base ]; description = "Labels, and labelled tuples and enums (GHC >9.2)"; license = lib.licenses.bsd3; @@ -229758,17 +230410,17 @@ self: { "pa-prelude" = callPackage ({ mkDerivation, base, bytestring, containers, error, exceptions - , mtl, profunctors, PyF, scientific, semigroupoids + , foldl, ghc-boot, mtl, profunctors, PyF, scientific, semigroupoids , template-haskell, text, these, validation-selective, vector }: mkDerivation { pname = "pa-prelude"; - version = "0.2.0.0"; - sha256 = "00gkyypa17ic2s019jmrxwjaylnfryn6nlg20ky1iip935y5y0b8"; + version = "0.3.0.0"; + sha256 = "0x4z94l62c7vgm0ya7bddxhzih07fb1kkjl0j0f6k64a42w67w00"; libraryHaskellDepends = [ - base bytestring containers error exceptions mtl profunctors PyF - scientific semigroupoids template-haskell text these - validation-selective vector + base bytestring containers error exceptions foldl ghc-boot mtl + profunctors PyF scientific semigroupoids template-haskell text + these validation-selective vector ]; description = "The Possehl Analytics Prelude"; license = lib.licenses.bsd3; @@ -230485,8 +231137,8 @@ self: { pname = "palette"; version = "0.3.0.3"; sha256 = "11d3011j680nhd0r2b29fhirld2vijwynwbgv8i5v1q7lgrb92az"; - revision = "1"; - editedCabalFile = "01fjw8i5m7d4zml2rd7nwpdlnxwasdfxglm3shgpk004gfk7lw1i"; + revision = "2"; + editedCabalFile = "1kc2va4x50lrgril36vc3dm5j42464m675jbadw7p31hg4vriqc3"; libraryHaskellDepends = [ array base colour containers MonadRandom ]; @@ -230617,7 +231269,7 @@ self: { ]; }) {}; - "pandoc_3_3" = callPackage + "pandoc_3_4" = callPackage ({ mkDerivation, aeson, aeson-pretty, array, attoparsec, base , base64-bytestring, binary, blaze-html, blaze-markup, bytestring , case-insensitive, citeproc, commonmark, commonmark-extensions @@ -230636,8 +231288,8 @@ self: { }: mkDerivation { pname = "pandoc"; - version = "3.3"; - sha256 = "1vf6syw75ijdwig5b8nry65qwdl90wi4d9rxmpgkdvqbxs0y3fk2"; + version = "3.4"; + sha256 = "0kwq6xpycd5sv5h6mbiv08imnzzsgchvyxx5hzscha4kkk2hr0nw"; configureFlags = [ "-f-trypandoc" ]; enableSeparateDataOutput = true; libraryHaskellDepends = [ @@ -230759,14 +231411,14 @@ self: { maintainers = [ lib.maintainers.maralorn ]; }) {}; - "pandoc-cli_3_3" = callPackage + "pandoc-cli_3_4" = callPackage ({ mkDerivation, base, hslua-cli, pandoc, pandoc-lua-engine , pandoc-server, safe, temporary, text, wai-extra, warp }: mkDerivation { pname = "pandoc-cli"; - version = "3.3"; - sha256 = "1nalsmf7j6gab05mql80l3n7i675ghf05n93jji5k4pvby45nria"; + version = "3.4"; + sha256 = "0qrgjx1q7g80lx98580q3w4pddmh2qqpxkmg005hmdmp6hqvd30s"; isLibrary = false; isExecutable = true; executableHaskellDepends = [ @@ -230808,8 +231460,8 @@ self: { pname = "pandoc-crossref"; version = "0.3.17.1"; sha256 = "0md7i54rnvgn0yll7mwhi124nak0pfmpga34vnd996r6fgmnq5fb"; - revision = "2"; - editedCabalFile = "00x3nqlrp872wq2alaahkiv34ifj36bs2ql0n4vn2h19wlg1f578"; + revision = "3"; + editedCabalFile = "14zqqrv5mgd8kdnis2k97ydcbi2rr77cq09z918lwcfcx7dxsl6w"; isLibrary = true; isExecutable = true; enableSeparateDataOutput = true; @@ -231147,7 +231799,7 @@ self: { license = lib.licenses.gpl2Plus; }) {}; - "pandoc-lua-engine_0_3_1" = callPackage + "pandoc-lua-engine_0_3_2" = callPackage ({ mkDerivation, aeson, base, bytestring, citeproc, containers , data-default, directory, doclayout, doctemplates, exceptions , filepath, hslua, hslua-module-doclayout, hslua-module-path @@ -231158,8 +231810,8 @@ self: { }: mkDerivation { pname = "pandoc-lua-engine"; - version = "0.3.1"; - sha256 = "1k2r7l3a970zink3dnw5xrgfn9sy9ysqa6j2mz2l631v5qsg075q"; + version = "0.3.2"; + sha256 = "0lh533m3xvr8c29mazdb09b7w7ivrlscc5dxzmrfnkwkr0friw8c"; libraryHaskellDepends = [ aeson base bytestring citeproc containers data-default doclayout doctemplates exceptions hslua hslua-module-doclayout @@ -231183,8 +231835,8 @@ self: { }: mkDerivation { pname = "pandoc-lua-marshal"; - version = "0.2.7.1"; - sha256 = "1yg1hv2xaw2yr036xc6bp2dd0dr4kw1g6ss9a8ahxs8kd670myxw"; + version = "0.2.8"; + sha256 = "0z58mn895hhgkl9lww2zxc0zrpqdnf6m8bpvxfdsh8az0sxgsgba"; libraryHaskellDepends = [ aeson base bytestring containers exceptions hslua hslua-list hslua-marshalling pandoc-types safe text @@ -231198,6 +231850,29 @@ self: { license = lib.licenses.mit; }) {}; + "pandoc-lua-marshal_0_2_9" = callPackage + ({ mkDerivation, aeson, base, bytestring, containers, exceptions + , hslua, hslua-list, hslua-marshalling, pandoc-types, QuickCheck + , safe, tasty, tasty-hunit, tasty-lua, tasty-quickcheck, text + }: + mkDerivation { + pname = "pandoc-lua-marshal"; + version = "0.2.9"; + sha256 = "04qqjh1f1dp912j5fgvj6sd3ky5cf0hngr0bl37178yikr3mm2k1"; + libraryHaskellDepends = [ + aeson base bytestring containers exceptions hslua hslua-list + hslua-marshalling pandoc-types safe text + ]; + testHaskellDepends = [ + aeson base bytestring containers exceptions hslua hslua-list + hslua-marshalling pandoc-types QuickCheck safe tasty tasty-hunit + tasty-lua tasty-quickcheck text + ]; + description = "Use pandoc types in Lua"; + license = lib.licenses.mit; + hydraPlatforms = lib.platforms.none; + }) {}; + "pandoc-markdown-ghci-filter" = callPackage ({ mkDerivation, aeson, base, containers, ghcid, pandoc , pandoc-types, QuickCheck, tasty, tasty-hunit, tasty-quickcheck @@ -231307,6 +231982,38 @@ self: { mainProgram = "pandoc-plot"; }) {}; + "pandoc-plot_1_9_1" = callPackage + ({ mkDerivation, aeson, base, bytestring, containers, data-default + , directory, filepath, gitrev, hashable, hspec-expectations + , lifted-async, lifted-base, mtl, optparse-applicative, pandoc + , pandoc-types, shakespeare, tagsoup, tasty, tasty-hspec + , tasty-hunit, template-haskell, text, typed-process, yaml + }: + mkDerivation { + pname = "pandoc-plot"; + version = "1.9.1"; + sha256 = "0d6lknjnlzg4a7sx311kpdi94yq7fp19lhvwbsf7rvc3ykx0hjm3"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson base bytestring containers data-default directory filepath + hashable lifted-async lifted-base mtl pandoc pandoc-types + shakespeare tagsoup template-haskell text typed-process yaml + ]; + executableHaskellDepends = [ + base directory filepath gitrev optparse-applicative pandoc + pandoc-types template-haskell text typed-process + ]; + testHaskellDepends = [ + base containers directory filepath hspec-expectations pandoc-types + tasty tasty-hspec tasty-hunit text + ]; + description = "A Pandoc filter to include figures generated from code blocks using your plotting toolkit of choice"; + license = lib.licenses.gpl2Plus; + hydraPlatforms = lib.platforms.none; + mainProgram = "pandoc-plot"; + }) {}; + "pandoc-pyplot" = callPackage ({ mkDerivation, base, containers, data-default-class, deepseq , directory, filepath, hashable, hspec, hspec-expectations, mtl @@ -231388,7 +232095,7 @@ self: { license = lib.licenses.gpl2Plus; }) {}; - "pandoc-server_0_1_0_7" = callPackage + "pandoc-server_0_1_0_8" = callPackage ({ mkDerivation, aeson, base, base64-bytestring, bytestring , containers, data-default, doctemplates, pandoc, pandoc-types , servant-server, skylighting, text, unicode-collation, wai @@ -231396,8 +232103,8 @@ self: { }: mkDerivation { pname = "pandoc-server"; - version = "0.1.0.7"; - sha256 = "1nrcb1r4gjgpw2vgz32dn7h1qinx1lxnlbq7cf1wggm86ac7jz3a"; + version = "0.1.0.8"; + sha256 = "1ffsbi1ik0lx06xj1ffr2zpn4a9wn8lsawyhak77nqaih93336a5"; libraryHaskellDepends = [ aeson base base64-bytestring bytestring containers data-default doctemplates pandoc pandoc-types servant-server skylighting text @@ -232534,10 +233241,8 @@ self: { }: mkDerivation { pname = "parameterized-utils"; - version = "2.1.8.0"; - sha256 = "026lrdnw5rjvny380rmrzpwhmcfgp551whbk0mnx2y2q6ij0sjfm"; - revision = "2"; - editedCabalFile = "1kk13926s885fxss2hz6h438k526s8agnhg8v199qam862f16yhh"; + version = "2.1.9.0"; + sha256 = "15yn958adkivyg7qbbbi20ja8smcdjyslkk3mxswl0r0bfgz2y70"; libraryHaskellDepends = [ base base-orphans constraints containers deepseq ghc-prim hashable hashtables indexed-traversable lens mtl profunctors @@ -233680,6 +234385,30 @@ self: { broken = true; }) {}; + "paseto" = callPackage + ({ mkDerivation, aeson, base, base16-bytestring, base64-bytestring + , basement, binary, bytestring, containers, crypton, deepseq + , hedgehog, memory, mtl, parsec, text, time, transformers-except + }: + mkDerivation { + pname = "paseto"; + version = "0.1.0.0"; + sha256 = "1pcs4p5zxnwdxbvizmiy9cwf57rn0l4yq95yxsfa9zsi0bk9df6f"; + revision = "2"; + editedCabalFile = "01vn6hhqrzlri78kp51fvgfq0ajilcpicr79jdhjbinksxxjaapx"; + libraryHaskellDepends = [ + aeson base base16-bytestring base64-bytestring basement binary + bytestring containers crypton deepseq memory mtl parsec text time + transformers-except + ]; + testHaskellDepends = [ + aeson base base16-bytestring bytestring containers crypton hedgehog + memory mtl text time transformers-except + ]; + description = "Platform-Agnostic Security Tokens"; + license = lib.licenses.mit; + }) {}; + "passage" = callPackage ({ mkDerivation, array, base, containers, directory, filepath , GraphSCC, monadLib, mwc-random, pretty, primitive, process @@ -233953,8 +234682,8 @@ self: { }: mkDerivation { pname = "patat"; - version = "0.12.0.0"; - sha256 = "0a903f34y1a3aipff2c4zl86smxgi8agbawkgdd6ac7px4zdz4sv"; + version = "0.12.0.1"; + sha256 = "0mpafb16k4jh00ff07qgrqnpyshd8iwpsaaijzijl11sfildxy05"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -233983,8 +234712,8 @@ self: { }: mkDerivation { pname = "patch"; - version = "0.0.8.2"; - sha256 = "15r2sjlpvp22iwd7qa1lqdq7n8nvqv2klvzrlm3phqq3j5n5x5y5"; + version = "0.0.8.3"; + sha256 = "0x7n18wq7mcy0rd9b5jvxynn800xk9wwa4idfa370v8c9vypvq0c"; libraryHaskellDepends = [ base commutative-semigroups constraints-extras containers dependent-map dependent-sum indexed-traversable lens @@ -236242,44 +236971,6 @@ self: { }) {}; "persistent" = callPackage - ({ mkDerivation, aeson, attoparsec, attoparsec-aeson, base - , base64-bytestring, blaze-html, bytestring, conduit, containers - , criterion, deepseq, fast-logger, file-embed, hspec, http-api-data - , lift-type, monad-logger, mtl, path-pieces, QuickCheck - , quickcheck-instances, resource-pool, resourcet, scientific - , shakespeare, silently, template-haskell, text, th-lift-instances - , time, transformers, unliftio, unliftio-core, unordered-containers - , vault, vector - }: - mkDerivation { - pname = "persistent"; - version = "2.14.6.2"; - sha256 = "1i76jnq6vv8qc1xcp5jg5n0033q8s5fhrja1f4v606q7jz9fiilg"; - libraryHaskellDepends = [ - aeson attoparsec attoparsec-aeson base base64-bytestring blaze-html - bytestring conduit containers deepseq fast-logger http-api-data - lift-type monad-logger mtl path-pieces resource-pool resourcet - scientific silently template-haskell text th-lift-instances time - transformers unliftio unliftio-core unordered-containers vault - vector - ]; - testHaskellDepends = [ - aeson attoparsec base base64-bytestring blaze-html bytestring - conduit containers deepseq fast-logger hspec http-api-data - monad-logger mtl path-pieces QuickCheck quickcheck-instances - resource-pool resourcet scientific shakespeare silently - template-haskell text th-lift-instances time transformers unliftio - unliftio-core unordered-containers vector - ]; - benchmarkHaskellDepends = [ - base criterion deepseq file-embed template-haskell text - ]; - description = "Type-safe, multi-backend data serialization"; - license = lib.licenses.mit; - maintainers = [ lib.maintainers.psibi ]; - }) {}; - - "persistent_2_14_6_3" = callPackage ({ mkDerivation, aeson, attoparsec, attoparsec-aeson, base , base64-bytestring, blaze-html, bytestring, conduit, containers , criterion, deepseq, fast-logger, file-embed, hspec, http-api-data @@ -236314,7 +237005,6 @@ self: { ]; description = "Type-safe, multi-backend data serialization"; license = lib.licenses.mit; - hydraPlatforms = lib.platforms.none; maintainers = [ lib.maintainers.psibi ]; }) {}; @@ -236418,8 +237108,8 @@ self: { }: mkDerivation { pname = "persistent-documentation"; - version = "0.1.0.4"; - sha256 = "0ib56hz4q83knw6lqdbfcflnpwd0x8381p67yibmnbyn9p5b6r1q"; + version = "0.1.0.5"; + sha256 = "032mfnsz5kpy1022gc2w9y0g4fjhqwq07zb2r8arjdhzzhbirwk2"; libraryHaskellDepends = [ base containers mtl persistent template-haskell text ]; @@ -236620,10 +237310,8 @@ self: { }: mkDerivation { pname = "persistent-mongoDB"; - version = "2.13.0.1"; - sha256 = "1ck74kpzkz623c43qb8r1cjq8chi2p721vx95zrpciz8jm496235"; - revision = "4"; - editedCabalFile = "01zfwp8jyr65sc3mijv1a8x0zs4csmr71nn6ksr9d18p3lpd9zz8"; + version = "2.13.1.0"; + sha256 = "08zal5arbclq6z05i5nz31yqiny2vgj0ky94bqff1jp72ly32rp3"; libraryHaskellDepends = [ aeson base bson bytestring cereal conduit http-api-data mongoDB network path-pieces persistent resource-pool resourcet text time @@ -237352,6 +238040,8 @@ self: { pname = "pg-entity"; version = "0.0.4.4"; sha256 = "0xbsys4h6p84m3vh076v5cjrmf2v9yl8d44zaknfxbjc8ssfbmh2"; + revision = "2"; + editedCabalFile = "19firm055d3j9gw8cf6qb6n2jy5jgs287mcgmskbcj78fs1a9g62"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -239902,8 +240592,8 @@ self: { pname = "pipes-extras"; version = "1.0.15"; sha256 = "1cyb05bv5xkarab3090ikpjiqm79lr46n3nalplliz8jr4x67a82"; - revision = "8"; - editedCabalFile = "1lh58slrw21gm799zp963k34ypcqhxz36j15qzhh1nh5zazasq8m"; + revision = "9"; + editedCabalFile = "00wd0vp60dma62mxxxaj1njcsyz9pazy2j3zpvfppr7zphckhq6p"; libraryHaskellDepends = [ base foldl lens pipes transformers ]; testHaskellDepends = [ base HUnit pipes test-framework test-framework-hunit transformers @@ -240926,6 +241616,18 @@ self: { mainProgram = "place-cursor-at"; }) {inherit (pkgs.xorg) libXinerama;}; + "placeholder" = callPackage + ({ mkDerivation, base, filepath, ghc-prim, tasty, tasty-hunit }: + mkDerivation { + pname = "placeholder"; + version = "0"; + sha256 = "0b6irf7nhr2p5w2wh4fvwaa8ajh45vdnnpqwrwxz7ladfmfbw2r9"; + libraryHaskellDepends = [ base ghc-prim ]; + testHaskellDepends = [ base filepath ghc-prim tasty tasty-hunit ]; + description = "placeholder definitions for TODO and unimplemented"; + license = "(BSD-2-Clause OR Apache-2.0)"; + }) {}; + "placeholders" = callPackage ({ mkDerivation, base, template-haskell }: mkDerivation { @@ -247417,8 +248119,8 @@ self: { pname = "prettyprinter-graphviz"; version = "1.1.0.0"; sha256 = "1lqf296jr2jfg86apn729payq2rkk95pdidl7n62xx4bniax7fvm"; - revision = "1"; - editedCabalFile = "1q8mp6rzb9l6jm8bc902si99ns2nw3vzimqvzwhxbkxf4ljdzqwq"; + revision = "2"; + editedCabalFile = "0rrh7rkwv3rbd974ylwvsm8wdjk40i7sp95vjqq49zm68l3h6094"; libraryHaskellDepends = [ base graphviz prettyprinter text ]; description = "A prettyprinter backend for graphviz"; license = lib.licenses.bsd3; @@ -247448,10 +248150,8 @@ self: { ({ mkDerivation, base, lucid, prettyprinter, text }: mkDerivation { pname = "prettyprinter-lucid"; - version = "0.1.0.1"; - sha256 = "0m8dbxzs22zbahpr6r1frlfqyw581wyg92vswm3gi2qqpj406djh"; - revision = "3"; - editedCabalFile = "01ngq4fx3d5xpy0kxfragajjp746dhighsvmcyjwyb65w1z8fflq"; + version = "0.2.0.1"; + sha256 = "1kmbqywn15djxsxb98qrrn9cfdpvmq8x4h29fzdx76bsv5zrlvvk"; libraryHaskellDepends = [ base lucid prettyprinter text ]; description = "A prettyprinter backend for lucid"; license = lib.licenses.bsd3; @@ -248470,12 +249170,12 @@ self: { license = lib.licenses.mit; }) {}; - "process_1_6_22_0" = callPackage + "process_1_6_24_0" = callPackage ({ mkDerivation, base, deepseq, directory, filepath, unix }: mkDerivation { pname = "process"; - version = "1.6.22.0"; - sha256 = "1yv8pk2g8d5wrw3306ar76fzgd6iyra9ci0syjl0b4pmwxff41ps"; + version = "1.6.24.0"; + sha256 = "1fl1y0zc4dsifw1f5nkmy18l46i8wlkcq9h8jp2cm4gzww8x92qy"; libraryHaskellDepends = [ base deepseq directory filepath unix ]; description = "Process libraries"; license = lib.licenses.bsd3; @@ -252125,15 +252825,15 @@ self: { "pusher-http-haskell" = callPackage ({ mkDerivation, aeson, base, base16-bytestring, bytestring - , cryptonite, hashable, hspec, http-client, http-client-tls + , crypton, hashable, hspec, http-client, http-client-tls , http-types, memory, QuickCheck, text, time, unordered-containers }: mkDerivation { pname = "pusher-http-haskell"; - version = "2.1.0.17"; - sha256 = "1fmnhx9hlxajdbyq71v28b0sc7phgx2h7spi2s5viihpnxzwp3rk"; + version = "2.1.0.18"; + sha256 = "08wc8agnxfalixc7d4zlwsh3swanyfgg74180lm4v5i2q6s5jxy4"; libraryHaskellDepends = [ - aeson base base16-bytestring bytestring cryptonite hashable + aeson base base16-bytestring bytestring crypton hashable http-client http-client-tls http-types memory text time unordered-containers ]; @@ -252787,6 +253487,23 @@ self: { mainProgram = "qnap-decrypt"; }) {}; + "qq-bytes" = callPackage + ({ mkDerivation, base, bytestring, hedgehog, tasty, tasty-discover + , tasty-hedgehog, tasty-hunit, template-haskell + }: + mkDerivation { + pname = "qq-bytes"; + version = "1.0.0.0"; + sha256 = "0b5fkysx2pfn0kyn433gizcrjwy354rx067fvn22l8ag6i6clp5z"; + libraryHaskellDepends = [ base bytestring template-haskell ]; + testHaskellDepends = [ + base bytestring hedgehog tasty tasty-hedgehog tasty-hunit + ]; + testToolDepends = [ tasty-discover ]; + description = "QuasiQuoter for byte sequence"; + license = lib.licenses.asl20; + }) {}; + "qq-literals" = callPackage ({ mkDerivation, base, network-uri, template-haskell }: mkDerivation { @@ -252890,6 +253607,23 @@ self: { license = lib.licenses.mit; }) {}; + "qrcode-core_0_9_10" = callPackage + ({ mkDerivation, base, binary, bytestring, case-insensitive + , containers, dlist, primitive, text, vector + }: + mkDerivation { + pname = "qrcode-core"; + version = "0.9.10"; + sha256 = "117xsv0p2l6nwbl0a7qwip1cnix4x6gljl12w11pzrqmvrhgilx2"; + libraryHaskellDepends = [ + base binary bytestring case-insensitive containers dlist primitive + text vector + ]; + description = "QR code library in pure Haskell"; + license = lib.licenses.mit; + hydraPlatforms = lib.platforms.none; + }) {}; + "qrcode-juicypixels" = callPackage ({ mkDerivation, base, base64-bytestring, bytestring, JuicyPixels , qrcode-core, text, vector @@ -252906,6 +253640,23 @@ self: { license = lib.licenses.mit; }) {}; + "qrcode-juicypixels_0_8_6" = callPackage + ({ mkDerivation, base, base64-bytestring, bytestring, JuicyPixels + , qrcode-core, text, vector + }: + mkDerivation { + pname = "qrcode-juicypixels"; + version = "0.8.6"; + sha256 = "0i17wcv570x4a9cg0cdkzz4g86jwgfx68sg62bbvw7zwyc00bpma"; + libraryHaskellDepends = [ + base base64-bytestring bytestring JuicyPixels qrcode-core text + vector + ]; + description = "Converts a qrcode-core image to JuicyPixels"; + license = lib.licenses.mit; + hydraPlatforms = lib.platforms.none; + }) {}; + "qsem" = callPackage ({ mkDerivation, base, ghc-prim }: mkDerivation { @@ -253182,8 +253933,8 @@ self: { }: mkDerivation { pname = "quantizer"; - version = "0.3.1.0"; - sha256 = "1pd3cqz73nvdf9i7fg11q1yjm699n11shxan60iv2v57q6kryjw4"; + version = "0.4.0.0"; + sha256 = "1hbxkl5hl88wrbd8jsx3sh7nb9in5rsd3f2cd43qxmpvda62m8rb"; libraryHaskellDepends = [ base minmax monoid-insertleft uniqueness-periods-vector-stats ]; @@ -253970,8 +254721,8 @@ self: { }: mkDerivation { pname = "quickcheck-quid"; - version = "0.0.1.4"; - sha256 = "1s1pqqs0v22vigq913v7qjqx95xmfrfg46khiac5qp982swz9vnv"; + version = "0.0.1.5"; + sha256 = "0w54yxwmrf228q0bi3cymlfm2gbv098i0yfpm8xqp6wl5afm5291"; libraryHaskellDepends = [ base containers deepseq extra hashable QuickCheck text ]; @@ -254123,7 +254874,7 @@ self: { license = lib.licenses.bsd3; }) {}; - "quickcheck-state-machine_0_10_0" = callPackage + "quickcheck-state-machine_0_10_1" = callPackage ({ mkDerivation, array, base, base-compat, bifunctors, bytestring , containers, directory, doctest, exceptions, filelock, filepath , generics-sop, graphviz, hashable, hashtables, http-client @@ -254137,8 +254888,8 @@ self: { }: mkDerivation { pname = "quickcheck-state-machine"; - version = "0.10.0"; - sha256 = "09xm7lc24ps4il2x5gbl01643zp5j26ps6r2jxw05n8859flp4lq"; + version = "0.10.1"; + sha256 = "03ignyi3db1hciwjk03xvwd1ls53sszm4j3398vdw97s53d5li7l"; libraryHaskellDepends = [ base base-compat bytestring containers directory exceptions filepath generics-sop graphviz MemoTrie mtl pretty pretty-show @@ -254941,6 +255692,22 @@ self: { broken = true; }) {}; + "r-tree" = callPackage + ({ mkDerivation, base, deepseq, hspec, random, tasty-bench, weigh + }: + mkDerivation { + pname = "r-tree"; + version = "1.0.0.0"; + sha256 = "1p8wc66wvxrqcw9akgzmzzf88hrm69s0ma87zxyp1h1pirbn3s9j"; + libraryHaskellDepends = [ base deepseq ]; + testHaskellDepends = [ base deepseq hspec random ]; + benchmarkHaskellDepends = [ + base deepseq random tasty-bench weigh + ]; + description = "R-/R*-trees"; + license = lib.licenses.mit; + }) {}; + "r3x-haskell-sdk" = callPackage ({ mkDerivation, aeson, base, blaze-html, bytestring , case-insensitive, containers, cookie, http-types, mtl, regex-pcre @@ -255119,8 +255886,8 @@ self: { }: mkDerivation { pname = "radix-tree"; - version = "1.0.0.1"; - sha256 = "0jzr4zhznxh45pivsa6falk4pbcizm7bx1kfb108a8bx00i4s885"; + version = "1.0.0.2"; + sha256 = "19i156s1b9n5vmzjjbd8z7jix95km0xx7fzrig1gx712yaf9x7rh"; libraryHaskellDepends = [ base bytestring deepseq primitive template-haskell text ]; @@ -256117,8 +256884,8 @@ self: { }: mkDerivation { pname = "rank1dynamic"; - version = "0.4.1"; - sha256 = "19x2w44f31589vf4s428m7g3dz75qykr7mv599rf3gls4zjx781r"; + version = "0.4.2"; + sha256 = "15v36c1h19gr1a9klz4qyzyizak2r8pnbybb5xl8nyaz0ib0hgf6"; libraryHaskellDepends = [ base binary ]; testHaskellDepends = [ base HUnit test-framework test-framework-hunit @@ -256629,14 +257396,14 @@ self: { broken = true; }) {}; - "rattletrap_13_0_3" = callPackage + "rattletrap_13_1_0" = callPackage ({ mkDerivation, aeson, aeson-pretty, array, base, bytestring , containers, filepath, http-client, http-client-tls, text }: mkDerivation { pname = "rattletrap"; - version = "13.0.3"; - sha256 = "0rs1hskmx13ahcqg6dxx46nc0pijc14d8bikjsdm1y17z2wzidcm"; + version = "13.1.0"; + sha256 = "0niqx3yv215xc2pcy1hnfxrmqqclmz4h33swm8wnf1ddwajh3q9d"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -257042,8 +257809,8 @@ self: { }: mkDerivation { pname = "rds-data"; - version = "0.0.0.2"; - sha256 = "1gfqxffl7fncmwriyrc328imkv98vwls4jdva5klgaw3gwrq1l2x"; + version = "0.0.0.10"; + sha256 = "15kxk1k59b97nbs1kj2j8gy473bdzmzv7684kr3vwhd0mjwg69z2"; isLibrary = false; isExecutable = true; libraryHaskellDepends = [ @@ -259256,8 +260023,8 @@ self: { }: mkDerivation { pname = "reflex"; - version = "0.9.3.0"; - sha256 = "1hhh3ca0pcrnrzbn83vb7wzp6iq45vabzgchwh6b6b0mr3ckqrlk"; + version = "0.9.3.1"; + sha256 = "04vgr8a98k5iqc0lc8asvh785pn9fzhx1v8vl6ghq6k5hy9mgigq"; libraryHaskellDepends = [ base bifunctors commutative-semigroups comonad constraints constraints-extras containers data-default dependent-map @@ -262693,7 +263460,7 @@ self: { maintainers = [ lib.maintainers.maralorn ]; }) {}; - "req_3_13_3" = callPackage + "req_3_13_4" = callPackage ({ mkDerivation, aeson, authenticate-oauth, base, blaze-builder , bytestring, case-insensitive, containers, crypton-connection , data-default-class, exceptions, hspec, hspec-core, hspec-discover @@ -262704,8 +263471,8 @@ self: { }: mkDerivation { pname = "req"; - version = "3.13.3"; - sha256 = "162hqajwdnkpl0hylkzf33jxh68nyq1bnsyp3wi6h394phrgniy3"; + version = "3.13.4"; + sha256 = "0s80kl29b7d35v044yvkfa6ja40k4sm3wh26qpnscqzv2n6w8zzk"; enableSeparateDataOutput = true; libraryHaskellDepends = [ aeson authenticate-oauth base blaze-builder bytestring @@ -262950,8 +263717,8 @@ self: { }: mkDerivation { pname = "rerefined"; - version = "0.5.1"; - sha256 = "0n775yxclxpnw0nf6g0ai6pdmckvw5v8rw03fss51mq1y9xw8dcg"; + version = "0.6.0"; + sha256 = "0msawph4qcl3ch2821bq1kfjmzkxl6vkhglcp6glimkcsmkbabyv"; libraryHaskellDepends = [ base mono-traversable QuickCheck template-haskell text text-builder-linear type-level-show @@ -263496,32 +264263,6 @@ self: { }) {}; "rest-rewrite" = callPackage - ({ mkDerivation, base, containers, graphviz, hashable, monad-loops - , mtl, parsec, process, QuickCheck, text, time - , unordered-containers, z3 - }: - mkDerivation { - pname = "rest-rewrite"; - version = "0.4.3"; - sha256 = "0rvqagskkibwadqdkfqqjp0vrdxfn1hnb6g27ps7h160knygaa1d"; - revision = "1"; - editedCabalFile = "0m0m3brlxx945lrr34wpmn5jgzdpw9ck0qxj23s8av4rlh1a9hx1"; - libraryHaskellDepends = [ - base containers hashable monad-loops mtl parsec process QuickCheck - text time unordered-containers - ]; - testHaskellDepends = [ - base containers hashable mtl QuickCheck text time - unordered-containers - ]; - testSystemDepends = [ graphviz z3 ]; - doHaddock = false; - description = "Rewriting library with online termination checking"; - license = lib.licenses.bsd3; - maintainers = [ lib.maintainers.tbidne ]; - }) {inherit (pkgs) graphviz; inherit (pkgs) z3;}; - - "rest-rewrite_0_4_4" = callPackage ({ mkDerivation, base, containers, graphviz, hashable, monad-loops , mtl, parsec, process, QuickCheck, text, time , unordered-containers, z3 @@ -263542,7 +264283,6 @@ self: { doHaddock = false; description = "Rewriting library with online termination checking"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; maintainers = [ lib.maintainers.tbidne ]; }) {inherit (pkgs) graphviz; inherit (pkgs) z3;}; @@ -267657,16 +268397,17 @@ self: { "rustls" = callPackage ({ mkDerivation, async, base, bytestring, containers - , derive-storable, directory, filepath, hedgehog, network, process - , resourcet, rustls, stm, tasty, tasty-hedgehog, tasty-hunit - , temporary, text, transformers + , derive-storable, directory, filepath, hedgehog, mtl, network + , process, resourcet, rustls, stm, tasty, tasty-hedgehog + , tasty-hunit, temporary, text, transformers }: mkDerivation { pname = "rustls"; - version = "0.1.0.0"; - sha256 = "19gv5cc0c3mnl40h5z1qnxrdhshiikmpmlyljv27jx2vk4i4vqib"; + version = "0.2.0.0"; + sha256 = "1scgp17hfmnzfccpaqih0smq3v34n217wsc5p7xdqgyhxwsj1bqg"; libraryHaskellDepends = [ - base bytestring derive-storable network resourcet text transformers + base bytestring containers derive-storable mtl network resourcet + text transformers ]; librarySystemDepends = [ rustls ]; testHaskellDepends = [ @@ -267769,43 +268510,6 @@ self: { }) {}; "rzk" = callPackage - ({ mkDerivation, aeson, alex, array, base, bifunctors, BNFC - , bytestring, Cabal, co-log-core, data-default-class, directory - , doctest, filepath, Glob, happy, hspec, hspec-discover, lens, lsp - , lsp-types, mtl, optparse-generic, process, QuickCheck, stm - , template-haskell, text, with-utf8, yaml - }: - mkDerivation { - pname = "rzk"; - version = "0.7.4"; - sha256 = "1n7dk24pbllr1xxr3klqxh5nq2pcjchygdr0xvhd2yla7w5hjhv5"; - isLibrary = true; - isExecutable = true; - setupHaskellDepends = [ base Cabal process ]; - libraryHaskellDepends = [ - aeson array base bifunctors bytestring co-log-core - data-default-class directory filepath Glob lens lsp lsp-types mtl - stm template-haskell text yaml - ]; - libraryToolDepends = [ alex BNFC happy ]; - executableHaskellDepends = [ - array base bifunctors bytestring directory Glob mtl - optparse-generic template-haskell text with-utf8 yaml - ]; - executableToolDepends = [ alex BNFC happy ]; - testHaskellDepends = [ - array base bifunctors bytestring directory doctest Glob hspec - hspec-discover mtl QuickCheck template-haskell text yaml - ]; - testToolDepends = [ alex BNFC happy hspec-discover ]; - description = "An experimental proof assistant for synthetic ∞-categories"; - license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; - mainProgram = "rzk"; - broken = true; - }) {}; - - "rzk_0_7_5" = callPackage ({ mkDerivation, aeson, alex, array, base, bifunctors, BNFC , bytestring, Cabal, co-log-core, data-default-class, directory , doctest, filepath, Glob, happy, hspec, hspec-discover, lens, lsp @@ -269316,21 +270020,21 @@ self: { }) {}; "sandwich-hedgehog" = callPackage - ({ mkDerivation, base, free, hedgehog, monad-control, mtl - , safe-exceptions, sandwich, string-interpolate, text, time, vty + ({ mkDerivation, base, exceptions, free, hedgehog, sandwich + , string-interpolate, text, time, unliftio, vty , wl-pprint-annotated }: mkDerivation { pname = "sandwich-hedgehog"; - version = "0.1.3.0"; - sha256 = "0wf16y9a8savdviyr29dpji9ij26zcn3jrsf297ywrlbd00n7g1h"; + version = "0.1.3.1"; + sha256 = "0pidk7xlgdm9sad9zskqbmyhn0mlmz6vyygg4vfr2cqbnfkms502"; libraryHaskellDepends = [ - base free hedgehog monad-control mtl safe-exceptions sandwich - string-interpolate text time vty wl-pprint-annotated + base exceptions free hedgehog sandwich string-interpolate text time + unliftio vty wl-pprint-annotated ]; testHaskellDepends = [ - base free hedgehog monad-control mtl safe-exceptions sandwich - string-interpolate text time vty wl-pprint-annotated + base exceptions free hedgehog sandwich string-interpolate text time + unliftio vty wl-pprint-annotated ]; description = "Sandwich integration with Hedgehog"; license = lib.licenses.bsd3; @@ -269820,8 +270524,8 @@ self: { }: mkDerivation { pname = "sayable"; - version = "1.2.4.0"; - sha256 = "0hqcpcgzwv4q7vxdhnf3lffhlnrr4ykpz330n1ip0qnys483yz8r"; + version = "1.2.5.0"; + sha256 = "05jf2423l85vwc98fxib9ahlq9w4zhan4912jmfk86gvhsd35hls"; libraryHaskellDepends = [ base bytestring containers exceptions prettyprinter template-haskell text th-abstraction @@ -270166,8 +270870,8 @@ self: { }: mkDerivation { pname = "scale"; - version = "1.0.0.0"; - sha256 = "1c1khgy83402lqfqdvq5amf9pgn5a6m4m5zmqkkw6iw0wbjw7p3a"; + version = "1.0.1.0"; + sha256 = "19cnzd316qbzxdjgia35l1yay1qpc6x10sgpfbv58yr4z65s01rx"; libraryHaskellDepends = [ base bitvec bytestring cereal data-default generics-sop memory template-haskell text vector @@ -273275,8 +273979,8 @@ self: { }: mkDerivation { pname = "semilattices"; - version = "0.0.0.7"; - sha256 = "1m9sqm4nq8d8rraqfqfwbn91412aqqq4gg9754lnq9crns75df11"; + version = "0.0.0.8"; + sha256 = "05dmnszyxssbjzw6f7qwq3slzd913afn562f2rnc54q9719xyybn"; libraryHaskellDepends = [ base containers unordered-containers ]; testHaskellDepends = [ base doctest QuickCheck quickcheck-instances @@ -273840,29 +274544,6 @@ self: { }) {}; "sequence-formats" = callPackage - ({ mkDerivation, attoparsec, base, bytestring, containers, errors - , exceptions, foldl, hspec, lens-family, pipes, pipes-attoparsec - , pipes-bytestring, pipes-safe, pipes-zlib, tasty, tasty-hunit - , transformers, vector - }: - mkDerivation { - pname = "sequence-formats"; - version = "1.8.1.0"; - sha256 = "105kxxczmdq6k2mnfsr5k6ixnlcllkhk9w70c5jcf96wz4gm6ydz"; - libraryHaskellDepends = [ - attoparsec base bytestring containers errors exceptions foldl - lens-family pipes pipes-attoparsec pipes-bytestring pipes-safe - pipes-zlib transformers vector - ]; - testHaskellDepends = [ - base bytestring containers foldl hspec pipes pipes-safe tasty - tasty-hunit transformers vector - ]; - description = "A package with basic parsing utilities for several Bioinformatic data formats"; - license = lib.licenses.gpl3Only; - }) {}; - - "sequence-formats_1_8_1_1" = callPackage ({ mkDerivation, attoparsec, base, bytestring, containers, errors , exceptions, foldl, hspec, lens-family, pipes, pipes-attoparsec , pipes-bytestring, pipes-safe, pipes-zlib, tasty, tasty-hunit @@ -273883,7 +274564,6 @@ self: { ]; description = "A package with basic parsing utilities for several Bioinformatic data formats"; license = lib.licenses.gpl3Only; - hydraPlatforms = lib.platforms.none; }) {}; "sequenceTools" = callPackage @@ -274253,35 +274933,6 @@ self: { }) {}; "servant" = callPackage - ({ mkDerivation, aeson, attoparsec, base, base-compat, bifunctors - , bytestring, case-insensitive, constraints, deepseq, hspec - , hspec-discover, http-api-data, http-media, http-types, mmorph - , mtl, network-uri, QuickCheck, quickcheck-instances - , singleton-bool, sop-core, string-conversions, tagged, text - , transformers, vault - }: - mkDerivation { - pname = "servant"; - version = "0.20.1"; - sha256 = "1s8vapj8qb8l5snjzxd63d9rvxwa1vw6g77cg8nynrzzppwp7xwl"; - revision = "5"; - editedCabalFile = "1lp44k8vsjwscjc5palvr930pznrm40adqksm3jcmhjsq63xmmji"; - libraryHaskellDepends = [ - aeson attoparsec base base-compat bifunctors bytestring - case-insensitive constraints deepseq http-api-data http-media - http-types mmorph mtl network-uri QuickCheck singleton-bool - sop-core string-conversions tagged text transformers vault - ]; - testHaskellDepends = [ - aeson base base-compat bytestring hspec http-media mtl QuickCheck - quickcheck-instances string-conversions text transformers - ]; - testToolDepends = [ hspec-discover ]; - description = "A family of combinators for defining webservices APIs"; - license = lib.licenses.bsd3; - }) {}; - - "servant_0_20_2" = callPackage ({ mkDerivation, aeson, attoparsec, base, bifunctors, bytestring , case-insensitive, constraints, containers, deepseq, hspec , hspec-discover, http-api-data, http-media, http-types, mmorph @@ -274305,7 +274956,6 @@ self: { testToolDepends = [ hspec-discover ]; description = "A family of combinators for defining webservices APIs"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-JuicyPixels" = callPackage @@ -274407,23 +275057,6 @@ self: { }) {}; "servant-auth" = callPackage - ({ mkDerivation, aeson, base, containers, jose, lens, servant, text - , unordered-containers - }: - mkDerivation { - pname = "servant-auth"; - version = "0.4.1.0"; - sha256 = "08ggnlknhzdpf49zjm1qpzm12gckss7yr8chmzm6h6ycigz77ndd"; - revision = "9"; - editedCabalFile = "0vdci6ckk0qq48wpsxqm09azb2fap6av2vnafzkyhfj8knk49jyh"; - libraryHaskellDepends = [ - aeson base containers jose lens servant text unordered-containers - ]; - description = "Authentication combinators for servant"; - license = lib.licenses.bsd3; - }) {}; - - "servant-auth_0_4_2_0" = callPackage ({ mkDerivation, aeson, base, containers, jose, lens, servant, text , unordered-containers }: @@ -274436,36 +275069,9 @@ self: { ]; description = "Authentication combinators for servant"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-auth-client" = callPackage - ({ mkDerivation, aeson, base, bytestring, containers, hspec - , hspec-discover, http-client, http-types, jose, QuickCheck - , servant, servant-auth, servant-auth-server, servant-client - , servant-client-core, servant-server, time, transformers, wai - , warp - }: - mkDerivation { - pname = "servant-auth-client"; - version = "0.4.1.1"; - sha256 = "1fs00p15hz2lqspby2xg6h0zxmlljm6wgi0wk73a4gavyg26dgqq"; - revision = "5"; - editedCabalFile = "1dbq1451jj49hbjfrdhr47k3rpwj825rbvj3f79w75rzyl3hyg75"; - libraryHaskellDepends = [ - base bytestring containers servant servant-auth servant-client-core - ]; - testHaskellDepends = [ - aeson base bytestring hspec http-client http-types jose QuickCheck - servant servant-auth servant-auth-server servant-client - servant-server time transformers wai warp - ]; - testToolDepends = [ hspec-discover ]; - description = "servant-client/servant-auth compatibility"; - license = lib.licenses.bsd3; - }) {}; - - "servant-auth-client_0_4_2_0" = callPackage ({ mkDerivation, aeson, base, bytestring, containers, hspec , hspec-discover, http-client, http-types, jose, QuickCheck , servant, servant-auth, servant-auth-server, servant-client @@ -274487,7 +275093,6 @@ self: { testToolDepends = [ hspec-discover ]; description = "servant-client/servant-auth compatibility"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-auth-cookie" = callPackage @@ -274523,30 +275128,6 @@ self: { }) {}; "servant-auth-docs" = callPackage - ({ mkDerivation, base, Cabal, cabal-doctest, doctest, hspec - , hspec-discover, lens, QuickCheck, servant, servant-auth - , servant-docs, template-haskell, text - }: - mkDerivation { - pname = "servant-auth-docs"; - version = "0.2.10.1"; - sha256 = "03dnh6x0y34npmv9w2f3hc9r1brlzf2rki6c6ngvwb3dvichhykv"; - revision = "3"; - editedCabalFile = "12irngkv4irmjkmarnpyfknq9iwz9xigcgldmg6y9sscjjv7xh7r"; - setupHaskellDepends = [ base Cabal cabal-doctest ]; - libraryHaskellDepends = [ - base lens servant servant-auth servant-docs - ]; - testHaskellDepends = [ - base doctest hspec lens QuickCheck servant servant-auth - servant-docs template-haskell text - ]; - testToolDepends = [ hspec-discover ]; - description = "servant-docs/servant-auth compatibility"; - license = lib.licenses.bsd3; - }) {}; - - "servant-auth-docs_0_2_11_0" = callPackage ({ mkDerivation, base, Cabal, cabal-doctest, doctest, hspec , hspec-discover, lens, QuickCheck, servant, servant-auth , servant-docs, template-haskell, text @@ -274566,7 +275147,6 @@ self: { testToolDepends = [ hspec-discover ]; description = "servant-docs/servant-auth compatibility"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-auth-hmac" = callPackage @@ -274607,38 +275187,6 @@ self: { }) {}; "servant-auth-server" = callPackage - ({ mkDerivation, aeson, base, base64-bytestring, blaze-builder - , bytestring, case-insensitive, cookie, data-default-class, entropy - , hspec, hspec-discover, http-client, http-types, jose, lens - , lens-aeson, markdown-unlit, memory, monad-time, mtl, QuickCheck - , servant, servant-auth, servant-server, tagged, text, time - , transformers, unordered-containers, wai, warp, wreq - }: - mkDerivation { - pname = "servant-auth-server"; - version = "0.4.8.0"; - sha256 = "0drny9m2js619pkxxa1mxji5x4r46kpv3qnmswyrb3kc0ck5c2af"; - revision = "6"; - editedCabalFile = "0rvb6jwjmkdrbc2q92si19arf5gi80x3m1g67354bncdaa81n81z"; - libraryHaskellDepends = [ - aeson base base64-bytestring blaze-builder bytestring - case-insensitive cookie data-default-class entropy http-types jose - lens memory monad-time mtl servant servant-auth servant-server - tagged text time unordered-containers wai - ]; - testHaskellDepends = [ - aeson base bytestring case-insensitive hspec http-client http-types - jose lens lens-aeson mtl QuickCheck servant servant-auth - servant-server text time transformers wai warp wreq - ]; - testToolDepends = [ hspec-discover markdown-unlit ]; - description = "servant-server/servant-auth compatibility"; - license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; - broken = true; - }) {}; - - "servant-auth-server_0_4_9_0" = callPackage ({ mkDerivation, aeson, base, base64-bytestring, blaze-builder , bytestring, case-insensitive, cookie, data-default-class, entropy , hspec, hspec-discover, http-client, http-types, jose, lens @@ -274669,28 +275217,6 @@ self: { }) {}; "servant-auth-swagger" = callPackage - ({ mkDerivation, base, hspec, hspec-discover, lens, QuickCheck - , servant, servant-auth, servant-swagger, swagger2, text - }: - mkDerivation { - pname = "servant-auth-swagger"; - version = "0.2.10.2"; - sha256 = "0f4sn0xlsq8lcnyj0q978bamfav6jmfkkccrg2k5l7rndif4nmwg"; - revision = "3"; - editedCabalFile = "0cvs7qwjdbr1f6n49pwjkq1cmkhya658207cmi8b70ghm5wvqfgi"; - libraryHaskellDepends = [ - base lens servant servant-auth servant-swagger swagger2 text - ]; - testHaskellDepends = [ - base hspec lens QuickCheck servant servant-auth servant-swagger - swagger2 text - ]; - testToolDepends = [ hspec-discover ]; - description = "servant-swagger/servant-auth compatibility"; - license = lib.licenses.bsd3; - }) {}; - - "servant-auth-swagger_0_2_11_0" = callPackage ({ mkDerivation, base, hspec, hspec-discover, lens, QuickCheck , servant, servant-auth, servant-swagger, swagger2, text }: @@ -274708,7 +275234,6 @@ self: { testToolDepends = [ hspec-discover ]; description = "servant-swagger/servant-auth compatibility"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-auth-token" = callPackage @@ -275011,38 +275536,6 @@ self: { }) {}; "servant-client" = callPackage - ({ mkDerivation, aeson, base, base-compat, bytestring, containers - , deepseq, entropy, exceptions, hspec, hspec-discover - , http-api-data, http-client, http-media, http-types, HUnit - , kan-extensions, markdown-unlit, monad-control, mtl, network - , QuickCheck, semigroupoids, servant, servant-client-core - , servant-server, sop-core, stm, text, time, transformers - , transformers-base, transformers-compat, wai, warp - }: - mkDerivation { - pname = "servant-client"; - version = "0.20"; - sha256 = "0xmjqc54yq5akhw5ydbx5k0c1pnrryma8nczwyzvwx4vazrk0pbn"; - revision = "6"; - editedCabalFile = "0a2ix2r0fwdjfpd74sbgksiadzp1x8l5dm66k0g51dvj0v64njcn"; - libraryHaskellDepends = [ - base base-compat bytestring containers deepseq exceptions - http-client http-media http-types kan-extensions monad-control mtl - semigroupoids servant servant-client-core stm text time - transformers transformers-base transformers-compat - ]; - testHaskellDepends = [ - aeson base base-compat bytestring entropy hspec http-api-data - http-client http-types HUnit kan-extensions markdown-unlit mtl - network QuickCheck servant servant-client-core servant-server - sop-core stm text transformers transformers-compat wai warp - ]; - testToolDepends = [ hspec-discover markdown-unlit ]; - description = "Automatic derivation of querying functions for servant"; - license = lib.licenses.bsd3; - }) {}; - - "servant-client_0_20_2" = callPackage ({ mkDerivation, aeson, base, base-compat, bytestring, containers , deepseq, entropy, exceptions, hspec, hspec-discover , http-api-data, http-client, http-media, http-types, HUnit @@ -275070,35 +275563,9 @@ self: { testToolDepends = [ hspec-discover markdown-unlit ]; description = "Automatic derivation of querying functions for servant"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-client-core" = callPackage - ({ mkDerivation, aeson, base, base-compat, base64-bytestring - , bytestring, constraints, containers, deepseq, exceptions, free - , hspec, hspec-discover, http-media, http-types, network-uri - , QuickCheck, safe, servant, sop-core, template-haskell, text - , transformers - }: - mkDerivation { - pname = "servant-client-core"; - version = "0.20"; - sha256 = "012bdf3c44bqzb0ycns4pcxb0zidqqn7lpzz9316kiwy0wb4jx56"; - revision = "4"; - editedCabalFile = "10zypw7b7p3b3hb293ik44n45c9s875jnr919ramfx3bpiqchb5g"; - libraryHaskellDepends = [ - aeson base base-compat base64-bytestring bytestring constraints - containers deepseq exceptions free http-media http-types - network-uri safe servant sop-core template-haskell text - transformers - ]; - testHaskellDepends = [ base base-compat deepseq hspec QuickCheck ]; - testToolDepends = [ hspec-discover ]; - description = "Core functionality and class for client function generation for servant APIs"; - license = lib.licenses.bsd3; - }) {}; - - "servant-client-core_0_20_2" = callPackage ({ mkDerivation, aeson, base, base-compat, base64-bytestring , bytestring, constraints, containers, deepseq, exceptions, free , hspec, hspec-discover, http-media, http-types, network-uri @@ -275117,7 +275584,6 @@ self: { testToolDepends = [ hspec-discover ]; description = "Core functionality and class for client function generation for servant APIs"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-client-js" = callPackage @@ -275190,28 +275656,6 @@ self: { }) {}; "servant-conduit" = callPackage - ({ mkDerivation, base, base-compat, bytestring, conduit - , http-client, http-media, mtl, resourcet, servant, servant-client - , servant-server, unliftio-core, wai, warp - }: - mkDerivation { - pname = "servant-conduit"; - version = "0.16"; - sha256 = "037vqqq5k2jm6s7gg2shb6iyvjfblsr41ifjpryfxmsib669vs9f"; - revision = "2"; - editedCabalFile = "0vxil0jr3iv4a9bf1rvy7qpbmffic1ga8drm6yl6csd64n4a3jvn"; - libraryHaskellDepends = [ - base bytestring conduit mtl resourcet servant unliftio-core - ]; - testHaskellDepends = [ - base base-compat bytestring conduit http-client http-media - resourcet servant servant-client servant-server wai warp - ]; - description = "Servant Stream support for conduit"; - license = lib.licenses.bsd3; - }) {}; - - "servant-conduit_0_16_1" = callPackage ({ mkDerivation, base, base-compat, bytestring, conduit , http-client, http-media, mtl, resourcet, servant, servant-client , servant-server, unliftio-core, wai, warp @@ -275229,7 +275673,6 @@ self: { ]; description = "Servant Stream support for conduit"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-csharp" = callPackage @@ -275315,37 +275758,6 @@ self: { }) {}; "servant-docs" = callPackage - ({ mkDerivation, aeson, aeson-pretty, base, base-compat, bytestring - , case-insensitive, hashable, http-media, http-types, lens, servant - , string-conversions, tasty, tasty-golden, tasty-hunit, text - , transformers, universe-base, unordered-containers - }: - mkDerivation { - pname = "servant-docs"; - version = "0.13"; - sha256 = "0i91my86bcnn0jckf2qlfyx1zfbg8w6959v7iim60s3mdx9yjp67"; - revision = "4"; - editedCabalFile = "16m0glwz8x4k8cjp14jz9gq68q30wmz37qx39f3b4qrh3924hnsm"; - isLibrary = true; - isExecutable = true; - libraryHaskellDepends = [ - aeson aeson-pretty base base-compat bytestring case-insensitive - hashable http-media http-types lens servant string-conversions text - universe-base unordered-containers - ]; - executableHaskellDepends = [ - aeson base lens servant string-conversions text - ]; - testHaskellDepends = [ - aeson base base-compat lens servant string-conversions tasty - tasty-golden tasty-hunit transformers - ]; - description = "generate API docs for your servant webservice"; - license = lib.licenses.bsd3; - mainProgram = "greet-docs"; - }) {}; - - "servant-docs_0_13_1" = callPackage ({ mkDerivation, aeson, aeson-pretty, base, base-compat, bytestring , case-insensitive, hashable, http-media, http-types, lens, servant , string-conversions, tasty, tasty-golden, tasty-hunit, text @@ -275371,7 +275783,6 @@ self: { ]; description = "generate API docs for your servant webservice"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; mainProgram = "greet-docs"; }) {}; @@ -275495,19 +275906,15 @@ self: { }) {}; "servant-event-stream" = callPackage - ({ mkDerivation, base, binary, http-media, lens, pipes - , servant-foreign, servant-js, servant-pipes, servant-server, text - , wai-extra + ({ mkDerivation, base, bytestring, http-media, lens + , servant-foreign, servant-server, text }: mkDerivation { pname = "servant-event-stream"; - version = "0.2.1.0"; - sha256 = "1bs4gjw7xaai5hxcv0dy7fmvx26ysmcqnaly5vriwkz45k1rhlj9"; - revision = "2"; - editedCabalFile = "1s6si9php8im45yh0r9slgw7sz8c0jk2i4c93a5qbjr0mzz9k2va"; + version = "0.3.0.1"; + sha256 = "1nd9v3dmpnqwj63psm6zikgcd635fc80a7bhn0azzlgi551s5kf2"; libraryHaskellDepends = [ - base binary http-media lens pipes servant-foreign servant-js - servant-pipes servant-server text wai-extra + base bytestring http-media lens servant-foreign servant-server text ]; testHaskellDepends = [ base ]; description = "Servant support for Server-Sent events"; @@ -275594,25 +276001,6 @@ self: { }) {}; "servant-foreign" = callPackage - ({ mkDerivation, base, base-compat, hspec, hspec-discover - , http-types, lens, servant, text - }: - mkDerivation { - pname = "servant-foreign"; - version = "0.16"; - sha256 = "15pir0x7dcyjmw71g4w00qgvcxyvhbkywzc3bvvaaprk5bjb3bmv"; - revision = "4"; - editedCabalFile = "0nm2nkivil7yh66syvw1a41g1lif75h7wc07rh9bnl7ncqfvdnal"; - libraryHaskellDepends = [ - base base-compat http-types lens servant text - ]; - testHaskellDepends = [ base hspec servant ]; - testToolDepends = [ hspec-discover ]; - description = "Helpers for generating clients for servant APIs in any programming language"; - license = lib.licenses.bsd3; - }) {}; - - "servant-foreign_0_16_1" = callPackage ({ mkDerivation, base, base-compat, hspec, hspec-discover , http-types, lens, servant, text }: @@ -275627,7 +276015,6 @@ self: { testToolDepends = [ hspec-discover ]; description = "Helpers for generating clients for servant APIs in any programming language"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-gdp" = callPackage @@ -275798,42 +276185,6 @@ self: { }) {}; "servant-http-streams" = callPackage - ({ mkDerivation, aeson, base, base-compat, bytestring - , case-insensitive, containers, deepseq, entropy, exceptions, hspec - , hspec-discover, http-api-data, http-common, http-media - , http-streams, http-types, HUnit, io-streams, kan-extensions - , markdown-unlit, monad-control, mtl, network, QuickCheck - , semigroupoids, servant, servant-client-core, servant-server, stm - , text, time, transformers, transformers-base, transformers-compat - , wai, warp - }: - mkDerivation { - pname = "servant-http-streams"; - version = "0.20"; - sha256 = "1pakvvw8m7dkwf8zfrh2gan1hs5zp4mgnn4bp0wiy49mc3zzlxwi"; - revision = "6"; - editedCabalFile = "0sq87z14wijr0dv0yclbz9k7g4plfjq8bqcn5wi7wq0h3ak7fzzg"; - libraryHaskellDepends = [ - base base-compat bytestring case-insensitive containers deepseq - exceptions http-common http-media http-streams http-types - io-streams kan-extensions monad-control mtl semigroupoids servant - servant-client-core text time transformers transformers-base - transformers-compat - ]; - testHaskellDepends = [ - aeson base base-compat bytestring deepseq entropy hspec - http-api-data http-streams http-types HUnit kan-extensions - markdown-unlit mtl network QuickCheck servant servant-client-core - servant-server stm text transformers transformers-compat wai warp - ]; - testToolDepends = [ hspec-discover markdown-unlit ]; - description = "Automatic derivation of querying functions for servant"; - license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; - broken = true; - }) {}; - - "servant-http-streams_0_20_2" = callPackage ({ mkDerivation, aeson, base, base-compat, bytestring , case-insensitive, containers, deepseq, entropy, exceptions, hspec , hspec-discover, http-api-data, http-common, http-media @@ -275961,10 +276312,8 @@ self: { ({ mkDerivation, aeson, base, http-media, servant, text }: mkDerivation { pname = "servant-jsonrpc"; - version = "1.1.1"; - sha256 = "0x5anjs6r7xgd2aqvs3fw4jr9yjz92a7pwa5ydpz63ijw2784j9z"; - revision = "1"; - editedCabalFile = "013m5rxs6cl75lhkj4p81jwsrmpywcd1cf7pkxq4kblg3in8bgy0"; + version = "1.2.0"; + sha256 = "1w92snxlypdf9qhm2bmbig864k67iz5avz98pw1yk9q2jggnd7ha"; libraryHaskellDepends = [ aeson base http-media servant text ]; description = "JSON-RPC messages and endpoints"; license = lib.licenses.bsd3; @@ -275978,10 +276327,8 @@ self: { }: mkDerivation { pname = "servant-jsonrpc-client"; - version = "1.1.0"; - sha256 = "0d18qajwpq6np0a61i5qm1z7iwvqrmgixg627diwr1xh4ws1ij8d"; - revision = "2"; - editedCabalFile = "0khfc661yxsnv2vrxcqfj892r3w2ngx3n8mngmrywl0217wh2s87"; + version = "1.2.0"; + sha256 = "1vws0nga5hv5fzlipf1xdr2pj08jjpvpzjlr1q992gsr8q4xm7kn"; libraryHaskellDepends = [ aeson base servant servant-client-core servant-jsonrpc ]; @@ -275996,8 +276343,8 @@ self: { }: mkDerivation { pname = "servant-jsonrpc-server"; - version = "2.1.2"; - sha256 = "0gbmpv1j4za01vwrygngbcs1pzjbfmc043yy57rq0yzvbcm1bmh7"; + version = "2.2.0"; + sha256 = "0ayga850zvkkl85lmmmlpxi4kpw1ny8irdb7ky5ssmrix8slkqx1"; libraryHaskellDepends = [ aeson base containers servant servant-jsonrpc servant-server ]; @@ -276070,26 +276417,6 @@ self: { }) {}; "servant-machines" = callPackage - ({ mkDerivation, base, base-compat, bytestring, http-client - , http-media, machines, mtl, servant, servant-client - , servant-server, wai, warp - }: - mkDerivation { - pname = "servant-machines"; - version = "0.16"; - sha256 = "0c2cz96m9lbzr318i4vpy55y37xagh7sf1g0hvxbsvwhnzqa4532"; - revision = "2"; - editedCabalFile = "0nrrrh73bryg9xh025zdmk1kdmnm0kzrisbyhxrmqc514ayzkrr8"; - libraryHaskellDepends = [ base bytestring machines mtl servant ]; - testHaskellDepends = [ - base base-compat bytestring http-client http-media machines servant - servant-client servant-server wai warp - ]; - description = "Servant Stream support for machines"; - license = lib.licenses.bsd3; - }) {}; - - "servant-machines_0_16_1" = callPackage ({ mkDerivation, base, base-compat, bytestring, http-client , http-media, machines, mtl, servant, servant-client , servant-server, wai, warp @@ -276105,7 +276432,6 @@ self: { ]; description = "Servant Stream support for machines"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-match" = callPackage @@ -276433,29 +276759,6 @@ self: { }) {}; "servant-pipes" = callPackage - ({ mkDerivation, base, base-compat, bytestring, http-client - , http-media, monad-control, mtl, pipes, pipes-bytestring - , pipes-safe, servant, servant-client, servant-server, wai, warp - }: - mkDerivation { - pname = "servant-pipes"; - version = "0.16"; - sha256 = "00n2rmv4aar49247is2sgy58nal64lv05zci9lhkbgmmmi1hqd10"; - revision = "2"; - editedCabalFile = "1xm1mi12qmwwxy3yqm6ys37q33f8hvq2sqyrvqw9rilkiqs2w8yr"; - libraryHaskellDepends = [ - base bytestring monad-control mtl pipes pipes-safe servant - ]; - testHaskellDepends = [ - base base-compat bytestring http-client http-media pipes - pipes-bytestring pipes-safe servant servant-client servant-server - wai warp - ]; - description = "Servant Stream support for pipes"; - license = lib.licenses.bsd3; - }) {}; - - "servant-pipes_0_16_1" = callPackage ({ mkDerivation, base, base-compat, bytestring, http-client , http-media, monad-control, mtl, pipes, pipes-bytestring , pipes-safe, servant, servant-client, servant-server, wai, warp @@ -276474,7 +276777,6 @@ self: { ]; description = "Servant Stream support for pipes"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-polysemy" = callPackage @@ -277008,46 +277310,6 @@ self: { }) {}; "servant-server" = callPackage - ({ mkDerivation, aeson, base, base-compat, base64-bytestring - , bytestring, constraints, containers, directory, exceptions - , filepath, hspec, hspec-discover, hspec-wai, http-api-data - , http-media, http-types, monad-control, mtl, network, network-uri - , QuickCheck, resourcet, safe, servant, should-not-typecheck - , sop-core, string-conversions, tagged, temporary, text - , transformers, transformers-base, transformers-compat, wai - , wai-app-static, wai-extra, warp, word8 - }: - mkDerivation { - pname = "servant-server"; - version = "0.20"; - sha256 = "1gp8pslk2sspi5vzrl1nimndpif7jhgzlffi2mzf1ap1bdwgxchk"; - revision = "6"; - editedCabalFile = "1n70k1n65lyqx4lhbmg1gw5mfl584smlyaxzrllmp9flh50z64nf"; - isLibrary = true; - isExecutable = true; - libraryHaskellDepends = [ - base base-compat base64-bytestring bytestring constraints - containers exceptions filepath http-api-data http-media http-types - monad-control mtl network network-uri resourcet servant sop-core - string-conversions tagged text transformers transformers-base wai - wai-app-static word8 - ]; - executableHaskellDepends = [ - aeson base base-compat servant text wai warp - ]; - testHaskellDepends = [ - aeson base base-compat base64-bytestring bytestring directory hspec - hspec-wai http-types mtl QuickCheck resourcet safe servant - should-not-typecheck sop-core string-conversions temporary text - transformers transformers-compat wai wai-extra - ]; - testToolDepends = [ hspec-discover ]; - description = "A family of combinators for defining webservices APIs and serving them"; - license = lib.licenses.bsd3; - mainProgram = "greet"; - }) {}; - - "servant-server_0_20_2" = callPackage ({ mkDerivation, aeson, base, base-compat, base64-bytestring , bytestring, constraints, containers, directory, exceptions , filepath, hspec, hspec-discover, hspec-wai, http-api-data @@ -277079,7 +277341,6 @@ self: { testToolDepends = [ hspec-discover ]; description = "A family of combinators for defining webservices APIs and serving them"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; mainProgram = "greet"; }) {}; @@ -277217,6 +277478,34 @@ self: { broken = true; }) {}; + "servant-static-th_1_0_0_1" = callPackage + ({ mkDerivation, base, blaze-html, bytestring, containers + , directory, filepath, hspec, hspec-wai, http-media, semigroups + , servant, servant-blaze, servant-server, tasty, tasty-hspec + , tasty-hunit, template-haskell, text, wai + }: + mkDerivation { + pname = "servant-static-th"; + version = "1.0.0.1"; + sha256 = "0pxzv2v5wlf906lxk778m3jvb2ax46x5z122x32a9a0n0s8pppik"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + base blaze-html bytestring containers directory filepath http-media + semigroups servant servant-blaze servant-server template-haskell + text + ]; + testHaskellDepends = [ + base blaze-html bytestring directory filepath hspec hspec-wai + servant servant-blaze servant-server tasty tasty-hspec tasty-hunit + wai + ]; + description = "Embed a directory of static files in your Servant server"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + broken = true; + }) {}; + "servant-streaming" = callPackage ({ mkDerivation, base, hspec, http-types, QuickCheck, servant }: mkDerivation { @@ -277358,36 +277647,6 @@ self: { }) {}; "servant-swagger" = callPackage - ({ mkDerivation, aeson, aeson-pretty, base, base-compat, bytestring - , Cabal, cabal-doctest, directory, doctest, filepath, hspec - , hspec-discover, http-media, insert-ordered-containers, lens - , lens-aeson, QuickCheck, servant, singleton-bool, swagger2 - , template-haskell, text, time, unordered-containers, utf8-string - , vector - }: - mkDerivation { - pname = "servant-swagger"; - version = "1.2"; - sha256 = "1dim4vlsd9zcz3ra0qwvb4hlbj0iarxygz78ksw8nbvqgbym3zjh"; - revision = "4"; - editedCabalFile = "0qvd4p0g8djj67g7c4nh2y9z4x6k778y3037w2m4622412fvyyfv"; - setupHaskellDepends = [ base Cabal cabal-doctest ]; - libraryHaskellDepends = [ - aeson aeson-pretty base base-compat bytestring hspec http-media - insert-ordered-containers lens QuickCheck servant singleton-bool - swagger2 text unordered-containers - ]; - testHaskellDepends = [ - aeson base base-compat directory doctest filepath hspec lens - lens-aeson QuickCheck servant swagger2 template-haskell text time - utf8-string vector - ]; - testToolDepends = [ hspec-discover ]; - description = "Generate a Swagger/OpenAPI/OAS 2.0 specification for your servant API."; - license = lib.licenses.bsd3; - }) {}; - - "servant-swagger_1_2_1" = callPackage ({ mkDerivation, aeson, aeson-pretty, base, base-compat, bytestring , Cabal, cabal-doctest, directory, doctest, filepath, hspec , hspec-discover, http-media, insert-ordered-containers, lens @@ -277413,7 +277672,6 @@ self: { testToolDepends = [ hspec-discover ]; description = "Generate a Swagger/OpenAPI/OAS 2.0 specification for your servant API."; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "servant-swagger-tags" = callPackage @@ -278044,8 +278302,8 @@ self: { }: mkDerivation { pname = "serversession-backend-persistent"; - version = "2.0.2"; - sha256 = "19jsswwc38514fqg2asshsvx1x3zx930887k63my4dmidyvvqmwd"; + version = "2.0.3"; + sha256 = "1f6zpxi16frs6jn1dx2kzk0cacw549pg2id2z6vqxkc5fw98iswq"; libraryHaskellDepends = [ aeson base base64-bytestring bytestring cereal path-pieces persistent serversession tagged text time transformers @@ -278786,8 +279044,8 @@ self: { }: mkDerivation { pname = "sgf"; - version = "0.1.3.2"; - sha256 = "051w1sswj1k2br011q0g6zzvkvwxahkgfn4cpkkrdwz8xm1jb9al"; + version = "0.1.3.3"; + sha256 = "0wxmyv00gphyd7alq79g4vvdkdsmp204pcx300vqvgf6b6ydn1an"; libraryHaskellDepends = [ base containers encoding extensible-exceptions mtl parsec split time transformers @@ -280943,8 +281201,8 @@ self: { pname = "sign"; version = "0.4.4"; sha256 = "1z9csfbl5h4cprvykszn81xncsry7fama2y3gbgnqr7mq15qziq7"; - revision = "2"; - editedCabalFile = "1si2x4ip4lqh9zj249f1rsslzxxj94arww63bqaha2zkg25sfykz"; + revision = "3"; + editedCabalFile = "1yrpjv01zhshi0ri3kn8sclvyry85raxgfggxqg9pab73vqwfz79"; libraryHaskellDepends = [ base containers deepseq hashable lattices universe-base ]; @@ -282851,6 +283109,21 @@ self: { hydraPlatforms = lib.platforms.none; }) {}; + "singletons-default" = callPackage + ({ mkDerivation, base, data-default-class, singletons + , singletons-base + }: + mkDerivation { + pname = "singletons-default"; + version = "0.1.0.7"; + sha256 = "1rdz61hvv95l33rdv1afhrfjwdpznwik2d4q1z7wl6c8h6dl2wx1"; + libraryHaskellDepends = [ + base data-default-class singletons singletons-base + ]; + description = "An optional type with type level default"; + license = lib.licenses.bsd3; + }) {}; + "singletons-presburger" = callPackage ({ mkDerivation, base, ghc, ghc-typelits-presburger, mtl , reflection, singletons, singletons-base @@ -283186,10 +283459,8 @@ self: { }: mkDerivation { pname = "size-based"; - version = "0.1.3.2"; - sha256 = "1qh2apjkv0m6hi668wq4g7gb75hwhpydv8c5gxn3sgm3cmjscl42"; - revision = "1"; - editedCabalFile = "1h4ig2pqw5spg5mdgwd73q4banvk3kyk7q76pkhy8n0mnwpa51ck"; + version = "0.1.3.3"; + sha256 = "1xc31iy57v9hm97hhr26ws2wwsf56gczwnq7q8ckiy5pgw6fmr1g"; libraryHaskellDepends = [ base dictionary-sharing template-haskell testing-type-modifiers ]; @@ -283681,8 +283952,8 @@ self: { }: mkDerivation { pname = "skylighting"; - version = "0.14.2"; - sha256 = "1xbjmxpcqhnfjhma3bq539y3a3jnry75qrfw7d113gvrwsx39njl"; + version = "0.14.3"; + sha256 = "025b9qvah2qi2lff97m9hjnz8808c49sbzg3215s6524arhciv59"; configureFlags = [ "-fexecutable" ]; isLibrary = true; isExecutable = true; @@ -283708,8 +283979,8 @@ self: { }: mkDerivation { pname = "skylighting-core"; - version = "0.14.2"; - sha256 = "0ja6pjkz49p9r6h0lajf2nfq55sbmda57n1v7jbw1xzh3fcdvqrn"; + version = "0.14.3"; + sha256 = "02y4vzakmdk24k3dysdh7wzrb597cmxzppxxlw3jd2lbyqw7yzlm"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -285289,8 +285560,8 @@ self: { }: mkDerivation { pname = "smtpbz"; - version = "1.0.1"; - sha256 = "1zxcr4md1r9dlg14a3b6ywqnir6jx95qsffwv2f08k2mkifm82w3"; + version = "1.1.0"; + sha256 = "04fr5w139bvi3wdx7ynxkgmb5z34a7wpa4znrhh6vjq2hykxi4nk"; libraryHaskellDepends = [ aeson base bytestring http-conduit http-types text ]; @@ -289163,15 +289434,16 @@ self: { }) {}; "spirv-reflect-ffi" = callPackage - ({ mkDerivation, base, bytestring, c2hs, spirv-reflect-types, text - , vector + ({ mkDerivation, base, bytestring, c2hs, spirv-enum + , spirv-reflect-types, text, vector, vector-algorithms }: mkDerivation { pname = "spirv-reflect-ffi"; - version = "0.2"; - sha256 = "1pz2nlc4l6clmwwqmn95lfa50ii0524grfxs1c3ycbd8qi16n6q4"; + version = "0.3"; + sha256 = "1fh7xwqlc9diz3v4byz5iknndf5hm83mzb7awcn012ac55d3gz3x"; libraryHaskellDepends = [ - base bytestring spirv-reflect-types text vector + base bytestring spirv-enum spirv-reflect-types text vector + vector-algorithms ]; libraryToolDepends = [ c2hs ]; description = "C-library loader for spirv-reflect tool"; @@ -289179,26 +289451,26 @@ self: { }) {}; "spirv-reflect-types" = callPackage - ({ mkDerivation, base, containers, text, vector }: + ({ mkDerivation, base, containers, spirv-enum, text, vector }: mkDerivation { pname = "spirv-reflect-types"; - version = "0.2"; - sha256 = "0j002p01kgk3avzvq7p391k7bll74fxg01mqlbk4mjyc7plvz87a"; - libraryHaskellDepends = [ base containers text vector ]; + version = "0.3"; + sha256 = "0sg46268a52qkhql50rm3rkgikg8ygrxhxb4qhrx09xpqqngxhzz"; + libraryHaskellDepends = [ base containers spirv-enum text vector ]; description = "Data types from spirv-reflect tool"; license = lib.licenses.bsd3; }) {}; "spirv-reflect-yaml" = callPackage - ({ mkDerivation, base, bytestring, HsYAML, spirv-reflect-types - , text, vector + ({ mkDerivation, base, bytestring, HsYAML, spirv-enum + , spirv-reflect-types, text, vector }: mkDerivation { pname = "spirv-reflect-yaml"; - version = "0.2"; - sha256 = "0zgr0mfwxf485ka706y67h6vjp6d307fwirfff87gsh0lip7199b"; + version = "0.3"; + sha256 = "1bi1c6ykzs6pbls7r21ipx29dinn7m9lqn94lwf7j2c901nk53s1"; libraryHaskellDepends = [ - base bytestring HsYAML spirv-reflect-types text vector + base bytestring HsYAML spirv-enum spirv-reflect-types text vector ]; description = "YAML loader for spirv-reflect tool"; license = lib.licenses.bsd3; @@ -290027,8 +290299,8 @@ self: { }: mkDerivation { pname = "sqlite-easy"; - version = "1.1.0.0"; - sha256 = "12x89y3hsy51ydb8lnawws9cbqyj9x98mk3pwm5pc62pcwy947yi"; + version = "1.1.0.1"; + sha256 = "04f83krzb5a806dszhhnyhrxpvh6qr00579cq6h4bhz6bk54ivrz"; libraryHaskellDepends = [ base bytestring direct-sqlite migrant-core mtl resource-pool text unliftio-core @@ -291716,13 +291988,13 @@ self: { , hspec-expectations-lifted, hspec-golden, http-types, lens , lens-aeson, monad-logger, mtl, optparse-applicative, QuickCheck , resourcet, rio, semigroups, text, text-metrics, time - , transformers, typed-process, unliftio, unordered-containers, uuid - , yaml + , transformers, typed-process, unix, unliftio, unordered-containers + , uuid, yaml }: mkDerivation { pname = "stackctl"; - version = "1.7.0.0"; - sha256 = "1v0c2kzkwkd85hq4ffr4pm438lxa5ylg2amcxhz6y6fc8853ihcv"; + version = "1.7.2.0"; + sha256 = "1wpm5bklwxsy8kqk3r4srd50b66jbky0v4wyzqpyjkdh0qn080w8"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -291732,7 +292004,7 @@ self: { containers envparse errors exceptions extra filepath Glob lens lens-aeson monad-logger mtl optparse-applicative QuickCheck resourcet rio semigroups text text-metrics time transformers - typed-process unliftio unordered-containers uuid yaml + typed-process unix unliftio unordered-containers uuid yaml ]; executableHaskellDepends = [ base ]; testHaskellDepends = [ @@ -294178,6 +294450,28 @@ self: { license = lib.licenses.bsd3; }) {}; + "streaming-bytestring_0_3_3" = callPackage + ({ mkDerivation, base, bytestring, deepseq, exceptions, ghc-prim + , mmorph, mtl, resourcet, smallcheck, streaming, tasty, tasty-hunit + , tasty-smallcheck, transformers, transformers-base + }: + mkDerivation { + pname = "streaming-bytestring"; + version = "0.3.3"; + sha256 = "15v1r8fw2w9a6ivg3f83pqfs9q5ik27vjbk2wvpd8vlmw210idnv"; + libraryHaskellDepends = [ + base bytestring deepseq exceptions ghc-prim mmorph mtl resourcet + streaming transformers transformers-base + ]; + testHaskellDepends = [ + base bytestring resourcet smallcheck streaming tasty tasty-hunit + tasty-smallcheck transformers + ]; + description = "Fast, effectful byte streams"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "streaming-cassava" = callPackage ({ mkDerivation, base, bytestring, cassava, hspec, mtl, QuickCheck , quickcheck-instances, streaming, streaming-bytestring, text @@ -294511,19 +294805,20 @@ self: { }) {}; "streaming-utils" = callPackage - ({ mkDerivation, aeson, attoparsec, base, bytestring, http-client - , http-client-tls, json-stream, mtl, network, network-simple, pipes - , resourcet, streaming, streaming-bytestring, streaming-commons - , transformers, zlib + ({ mkDerivation, aeson, attoparsec, attoparsec-aeson, base + , bytestring, http-client, http-client-tls, json-stream, mtl + , network, network-simple, pipes, resourcet, streaming + , streaming-bytestring, streaming-commons, transformers, zlib }: mkDerivation { pname = "streaming-utils"; - version = "0.2.5.0"; - sha256 = "1zaq0vk4bzn27w56nxx56fij9cxk7pz5vf2xvglxkj6xip1w63fz"; + version = "0.2.6.0"; + sha256 = "0dpd58fpib9g6chfqkfj29v691gi7mq4czwapwhfjsmmd6rghb01"; libraryHaskellDepends = [ - aeson attoparsec base bytestring http-client http-client-tls - json-stream mtl network network-simple pipes resourcet streaming - streaming-bytestring streaming-commons transformers + aeson attoparsec attoparsec-aeson base bytestring http-client + http-client-tls json-stream mtl network network-simple pipes + resourcet streaming streaming-bytestring streaming-commons + transformers ]; libraryPkgconfigDepends = [ zlib ]; description = "http, attoparsec, pipes and other utilities for the streaming libraries"; @@ -294730,6 +295025,8 @@ self: { pname = "streamly-fsnotify"; version = "2.1.0.2"; sha256 = "1firr8rbdi39qpwj7d5p8bzavsr37cy9jwgd93yss708msx3n0cl"; + revision = "1"; + editedCabalFile = "0mk5f6i3lk6napip8rkkny97yn5y1acq44wzpsjfnnw1w4sv50f2"; libraryHaskellDepends = [ base exceptions filepath fsnotify semirings streamly streamly-core text time @@ -295256,10 +295553,8 @@ self: { ({ mkDerivation, base, deepseq }: mkDerivation { pname = "strict-mutable-base"; - version = "1.0.0.0"; - sha256 = "06d46902d79ryg7yy2zc973mgjdr3rc2i486xs6f8lhnrlwq9v3n"; - revision = "1"; - editedCabalFile = "1nqhm00lr9ashsjd38dwax2mn228kqjqshqx39plsjnf25kri5xq"; + version = "1.1.0.0"; + sha256 = "1zwh7v8v0vkxg7kv7zjpxp40iyfqwj6kix05f2k32faav0kx3qzz"; libraryHaskellDepends = [ base deepseq ]; description = "Strict variants of mutable data types from base"; license = lib.licenses.bsd3; @@ -295539,6 +295834,8 @@ self: { pname = "string-interpolate"; version = "0.3.4.0"; sha256 = "13hb3spabggr6gsn9xhwpwldjvpl2l7z4lgssis82c40n108b0w8"; + revision = "1"; + editedCabalFile = "164afgw0mxnyx5vjwshxphzkw1c4wqm93f3r89rwa5f3w93js7d2"; libraryHaskellDepends = [ base bytestring haskell-src-exts haskell-src-meta split template-haskell text text-conversions utf8-string @@ -296190,8 +296487,8 @@ self: { }: mkDerivation { pname = "strongweak"; - version = "0.8.0"; - sha256 = "1nws2lkbjfr11jx5ns8qmmik63n158n4abdb1bgmkzkby8621f08"; + version = "0.9.1"; + sha256 = "0bq9vamnzidmcbapn6lc6vyz3lk2m0ld475z6a311xr5x0d70vad"; libraryHaskellDepends = [ base rerefined text text-builder-linear vector vector-sized ]; @@ -298651,21 +298948,21 @@ self: { license = "unknown"; }) {}; - "sydtest_0_17_0_0" = callPackage + "sydtest_0_18_0_0" = callPackage ({ mkDerivation, async, autodocodec, base, bytestring, containers - , dlist, fast-myers-diff, filepath, MonadRandom, mtl, opt-env-conf - , path, path-io, pretty-show, QuickCheck, quickcheck-io, random - , random-shuffle, safe, safe-coloured-text + , deepseq, dlist, fast-myers-diff, filepath, MonadRandom, mtl + , opt-env-conf, path, path-io, pretty-show, QuickCheck + , quickcheck-io, random, random-shuffle, safe, safe-coloured-text , safe-coloured-text-terminfo, stm, svg-builder, text, vector }: mkDerivation { pname = "sydtest"; - version = "0.17.0.0"; - sha256 = "1l8ji5qny7wq6n10ys1mxclqbzk54g3fsdi99pjb9sigd99s550n"; + version = "0.18.0.0"; + sha256 = "1krm952vqp79gw761d5f90jq30f6n9vih64ay73xacv5nzms5x5l"; libraryHaskellDepends = [ - async autodocodec base bytestring containers dlist fast-myers-diff - filepath MonadRandom mtl opt-env-conf path path-io pretty-show - QuickCheck quickcheck-io random random-shuffle safe + async autodocodec base bytestring containers deepseq dlist + fast-myers-diff filepath MonadRandom mtl opt-env-conf path path-io + pretty-show QuickCheck quickcheck-io random random-shuffle safe safe-coloured-text safe-coloured-text-terminfo stm svg-builder text vector ]; @@ -299013,8 +299310,8 @@ self: { }: mkDerivation { pname = "sydtest-wai"; - version = "0.2.0.1"; - sha256 = "0fmgn8g9ka275qkanzrlqr4wqwjcq2a99yvkh4jz53vspyiml78q"; + version = "0.2.0.2"; + sha256 = "03nm64vfpvb54m2ngsgwrprgw00ysxiwbb332yvk5w0rb1p4bfg1"; libraryHaskellDepends = [ base bytestring case-insensitive http-client http-types mtl network sydtest text time wai warp @@ -302773,8 +303070,8 @@ self: { ({ mkDerivation, base, containers, filepath, hpc, tasty }: mkDerivation { pname = "tasty-coverage"; - version = "0.1.3.0"; - sha256 = "00yzx1qw4bcdpa55ldjk2f284z2i46xlp8l6a9jpwcxndwv48raa"; + version = "0.1.4.0"; + sha256 = "0jj7lx44vsvwhkvpxmsf2lc8i0yks6d9c28hqnhrmqp53vamqp23"; libraryHaskellDepends = [ base containers filepath hpc tasty ]; description = "Ingredient for tasty which generates per-test coverage reports"; license = lib.licenses.bsd3; @@ -302856,6 +303153,18 @@ self: { broken = true; }) {}; + "tasty-flaky" = callPackage + ({ mkDerivation, base, retry, tagged, tasty, tasty-hunit }: + mkDerivation { + pname = "tasty-flaky"; + version = "0.1.0.0"; + sha256 = "1p0lvfics2p98jhg46m1gl7lrpq73v1waxplvib77pl5q9ymlk87"; + libraryHaskellDepends = [ base retry tagged tasty ]; + testHaskellDepends = [ base tasty tasty-hunit ]; + description = "Handle flaky Tasty-based tests"; + license = lib.licenses.bsd3; + }) {}; + "tasty-focus" = callPackage ({ mkDerivation, base, tagged, tasty, tasty-expected-failure , tasty-hunit @@ -303525,6 +303834,31 @@ self: { license = lib.licenses.isc; }) {}; + "tasty-sugar_2_2_2_0" = callPackage + ({ mkDerivation, base, containers, directory, filemanip, filepath + , hedgehog, kvitable, logict, microlens, mtl, optparse-applicative + , parallel, pretty-show, prettyprinter, raw-strings-qq, tasty + , tasty-hedgehog, tasty-hunit, text, transformers + }: + mkDerivation { + pname = "tasty-sugar"; + version = "2.2.2.0"; + sha256 = "1ac9ciqlrq25ipqnjssk3288gnpsi6y9ia8s0f3d6dvcv73593rb"; + libraryHaskellDepends = [ + base containers directory filemanip filepath kvitable logict + microlens mtl optparse-applicative parallel prettyprinter tasty + text + ]; + testHaskellDepends = [ + base filepath hedgehog logict pretty-show prettyprinter + raw-strings-qq tasty tasty-hedgehog tasty-hunit text transformers + ]; + doHaddock = false; + description = "Tests defined by Search Using Golden Answer References"; + license = lib.licenses.isc; + hydraPlatforms = lib.platforms.none; + }) {}; + "tasty-tap" = callPackage ({ mkDerivation, base, containers, directory, stm, tasty , tasty-golden, tasty-hunit @@ -304745,14 +305079,14 @@ self: { "templatise" = callPackage ({ mkDerivation, base, bytestring, Cabal-syntax, directory , exceptions, extra, filepath, hspec, http-client, http-conduit - , MissingH, monad-logger, mtl, network-uri, optparse-applicative - , parsec, process, regex-tdfa, tasty, tasty-golden, tasty-hspec - , temporary, text, time + , monad-logger, mtl, network-uri, optparse-applicative, parsec + , process, regex-tdfa, tasty, tasty-golden, tasty-hspec, temporary + , text, time }: mkDerivation { pname = "templatise"; - version = "0.1.6.0"; - sha256 = "07dp87h0hn77ccg8acnfpki1yvxx4h1h6nqdjfxwc0kwji1svzia"; + version = "0.1.7.0"; + sha256 = "127gi12sisi3xpqp8wp0bl8vvxdbgdy3cw9mvcg7qqzmkhz914x2"; isLibrary = false; isExecutable = true; enableSeparateDataOutput = true; @@ -304763,9 +305097,9 @@ self: { ]; executableHaskellDepends = [ base optparse-applicative ]; testHaskellDepends = [ - base bytestring Cabal-syntax directory filepath hspec MissingH - monad-logger mtl network-uri optparse-applicative process tasty - tasty-golden tasty-hspec temporary text time + base bytestring Cabal-syntax directory filepath hspec monad-logger + mtl network-uri optparse-applicative process tasty tasty-golden + tasty-hspec temporary text time ]; doHaddock = false; description = "You can use template.hs to create a new Haskell GitHub repository."; @@ -305331,8 +305665,8 @@ self: { ({ mkDerivation, base, mtl, QuickCheck, random, random-shuffle }: mkDerivation { pname = "tensort"; - version = "1.0.1.2"; - sha256 = "1hg647gjx24g38vnnkg61i9i42dinf27j3rr80wqm6wrkl7jzxvd"; + version = "1.0.1.3"; + sha256 = "0xl99n3d2v202j0jc8vydzjkyshnlym9fkzdgn2p9sfbqq652y29"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ base mtl random random-shuffle ]; @@ -305777,8 +306111,8 @@ self: { }: mkDerivation { pname = "tesla"; - version = "0.7.4.0"; - sha256 = "0zzybsb711x2bxbj99j507b6x7jhmxlhl690w9zzxzyk87pahkjv"; + version = "0.7.5.0"; + sha256 = "0vrims4lx6kg9rfq9d1v35vlj51lgpv3a4gdd7i8dk99sqqa9dyw"; libraryHaskellDepends = [ aeson base base64-bytestring bytestring casing containers cryptonite exceptions finite-typelits generic-deriving http-client @@ -306586,15 +306920,15 @@ self: { license = lib.licenses.gpl2Only; }) {}; - "texmath_0_12_8_9" = callPackage + "texmath_0_12_8_11" = callPackage ({ mkDerivation, base, bytestring, containers, directory, filepath , mtl, pandoc-types, parsec, pretty-show, split, syb, tagged, tasty , tasty-golden, text, typst-symbols, xml }: mkDerivation { pname = "texmath"; - version = "0.12.8.9"; - sha256 = "0qm68ib9immfykf5p7jkk3l8h4ifss8ys7k8ppzaaygagc4s8zpw"; + version = "0.12.8.11"; + sha256 = "0yyxr5bdl1shsp3ir9d9a2hwah3cz6p3pvak27k4fvk1idisds7z"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -306617,10 +306951,8 @@ self: { }: mkDerivation { pname = "texrunner"; - version = "0.0.1.3"; - sha256 = "0lck7b6gw217jabgz2sa3r32i7yxm35hx32jn0s86dbckc2xqili"; - revision = "1"; - editedCabalFile = "1z719yygpzr8lsdvyldq1dca7lffll4wlbv7mkm7phyks6zfdn1m"; + version = "0.0.2"; + sha256 = "1y6nixdinki8iq2nwwppx5kh24w0kap0x7n3kjhmvbrqjpy03pmv"; libraryHaskellDepends = [ attoparsec base bytestring directory filepath io-streams mtl process semigroups temporary @@ -306798,8 +307130,8 @@ self: { }: mkDerivation { pname = "text-builder-dev"; - version = "0.3.4.4"; - sha256 = "13n6dp385xhm7f533lr4nivhgwai2pdslz7b3ywq7m0dv249p6l9"; + version = "0.3.5"; + sha256 = "1mg503a73jl5bpjp7npqadq1lj0sfc1krpqw1s4zybfn70n49vah"; libraryHaskellDepends = [ base bytestring deferred-folds isomorphism-class QuickCheck quickcheck-instances split text time transformers @@ -307246,6 +307578,22 @@ self: { license = lib.licenses.bsd3; }) {}; + "text-metrics_0_3_3" = callPackage + ({ mkDerivation, base, containers, criterion, deepseq, hspec + , primitive, QuickCheck, text, vector, weigh + }: + mkDerivation { + pname = "text-metrics"; + version = "0.3.3"; + sha256 = "0gl5xxagdgs32m5xh58zlgwnysg0i19m31gg2lpm58x9d1bal81k"; + libraryHaskellDepends = [ base containers primitive text vector ]; + testHaskellDepends = [ base hspec QuickCheck text ]; + benchmarkHaskellDepends = [ base criterion deepseq text weigh ]; + description = "Calculate various string metrics efficiently"; + license = lib.licenses.bsd3; + hydraPlatforms = lib.platforms.none; + }) {}; + "text-normal" = callPackage ({ mkDerivation, base, deepseq, hspec, QuickCheck , quickcheck-instances, text, text-icu @@ -313838,12 +314186,12 @@ self: { mainProgram = "Benchmark"; }) {}; - "transformers_0_6_1_1" = callPackage + "transformers_0_6_1_2" = callPackage ({ mkDerivation, base }: mkDerivation { pname = "transformers"; - version = "0.6.1.1"; - sha256 = "09fpjawkixgm3xpas89wkpkn1jfpxz035crnp97if2hh1y759ll1"; + version = "0.6.1.2"; + sha256 = "1db1gr4dkz1gi5q3fvqlv83qg5r5x89cmk8y9affa3n433xmrn1z"; libraryHaskellDepends = [ base ]; description = "Concrete functor and monad transformers"; license = lib.licenses.bsd3; @@ -314766,8 +315114,8 @@ self: { ({ mkDerivation, base, containers, doctest, mtl }: mkDerivation { pname = "tree-traversals"; - version = "0.1.2.0"; - sha256 = "1l31l43dv7gkv35qfh7vf6v9ar864s4kilki2nwniipdfbyrmjwd"; + version = "0.1.3.0"; + sha256 = "0dbdqf7rrv3x4vsinxfhzf9bv28pndxsmjramw5m67ipqyw9hcxs"; libraryHaskellDepends = [ base containers ]; testHaskellDepends = [ base containers doctest mtl ]; description = "Functions and newtype wrappers for traversing Trees"; @@ -316911,6 +317259,27 @@ self: { license = lib.licenses.bsd3; }) {}; + "twobitreader" = callPackage + ({ mkDerivation, base, bytestring, directory, mmap + , optparse-applicative, primitive, unordered-containers, zlib + }: + mkDerivation { + pname = "twobitreader"; + version = "1.0"; + sha256 = "1ri51q8jfmbkcpbd84mdnvgc168fcz56rkj9xzrd87g2sp1b7850"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + base bytestring mmap primitive unordered-containers + ]; + executableHaskellDepends = [ + base bytestring directory optparse-applicative zlib + ]; + description = "reader for the 2bit file format"; + license = lib.licenses.bsd3; + mainProgram = "twobit"; + }) {}; + "tx" = callPackage ({ mkDerivation, base, bytestring, cereal, safecopy, stm , transformers @@ -318105,27 +318474,6 @@ self: { }) {}; "typed-process" = callPackage - ({ mkDerivation, async, base, base64-bytestring, bytestring, hspec - , hspec-discover, process, stm, temporary, transformers - , unliftio-core - }: - mkDerivation { - pname = "typed-process"; - version = "0.2.11.1"; - sha256 = "0j21v5ijnxkpwn9hng6achjypr1hnpfxkmjfvqssq6ynj6hdvifm"; - libraryHaskellDepends = [ - async base bytestring process stm transformers unliftio-core - ]; - testHaskellDepends = [ - async base base64-bytestring bytestring hspec process stm temporary - transformers unliftio-core - ]; - testToolDepends = [ hspec-discover ]; - description = "Run external processes, with strong typing of streams"; - license = lib.licenses.mit; - }) {}; - - "typed-process_0_2_12_0" = callPackage ({ mkDerivation, async, base, base64-bytestring, bytestring, hspec , hspec-discover, process, stm, temporary, transformers , unliftio-core @@ -318144,7 +318492,6 @@ self: { testToolDepends = [ hspec-discover ]; description = "Run external processes, with strong typing of streams"; license = lib.licenses.mit; - hydraPlatforms = lib.platforms.none; }) {}; "typed-process-effectful" = callPackage @@ -318167,6 +318514,23 @@ self: { broken = true; }) {}; + "typed-range" = callPackage + ({ mkDerivation, base, Cabal, free, optics-core, parsec, QuickCheck + , random, test-framework, test-framework-quickcheck2 + }: + mkDerivation { + pname = "typed-range"; + version = "0.1.0.1"; + sha256 = "154khj9y9d8q11q3q3n6scfb9ilcnibmfz5vkwnqjq3sagnb2m3z"; + libraryHaskellDepends = [ base free optics-core parsec ]; + testHaskellDepends = [ + base Cabal free optics-core parsec QuickCheck random test-framework + test-framework-quickcheck2 + ]; + description = "An efficient and versatile typed range library"; + license = lib.licenses.mit; + }) {}; + "typed-session" = callPackage ({ mkDerivation, base, containers, fused-effects , fused-effects-random, io-classes, io-sim, random @@ -318174,8 +318538,8 @@ self: { }: mkDerivation { pname = "typed-session"; - version = "0.2.0.1"; - sha256 = "1xi0ys8hhqa2jkdwm0a6r92lwcl4lqcnvi61yqci9vc41rpcazhj"; + version = "0.3.0.1"; + sha256 = "1qaas8lp1yyvj2rg8hgfj1hwbnk8z6mav008ajqv6zzmqbdnk8x6"; libraryHaskellDepends = [ base containers io-classes template-haskell typed-session-state-algorithm @@ -318196,8 +318560,8 @@ self: { }: mkDerivation { pname = "typed-session-state-algorithm"; - version = "0.4.2.1"; - sha256 = "0gzzqg0jcnlbm0v4zmbjl379qzwmb93hg1ph8ibp55zxr98chk4z"; + version = "0.5.0.0"; + sha256 = "0mi40ab1xnz4al9f787ydwaz8y8qjq4i0x2sij08jv2i5l7dlr0x"; libraryHaskellDepends = [ base containers fused-effects megaparsec parser-combinators prettyprinter @@ -318443,12 +318807,13 @@ self: { }) {}; "typelits-printf" = callPackage - ({ mkDerivation, base, symbols, text }: + ({ mkDerivation, base, hspec, text }: mkDerivation { pname = "typelits-printf"; - version = "0.2.0.0"; - sha256 = "1a2ahf8imbk8zff2i7cfag2irax8qdd4r6vb00hil34i67p980ij"; - libraryHaskellDepends = [ base symbols text ]; + version = "0.3.0.0"; + sha256 = "1m02plqcqfd2bxfwdkdyc4dvimlga691jiqcswyd05lrs7p2dyid"; + libraryHaskellDepends = [ base text ]; + testHaskellDepends = [ base hspec ]; description = "Type-safe printf from parsing GHC TypeLits Symbol"; license = lib.licenses.bsd3; hydraPlatforms = lib.platforms.none; @@ -318571,8 +318936,8 @@ self: { }: mkDerivation { pname = "typesafe-precure"; - version = "0.11.0.1"; - sha256 = "15zyjckgyk30v2753pfrvnvqhfdrpv39mc7vbfv66igcg7r9scm1"; + version = "0.11.1.1"; + sha256 = "0zg4wwp5asnzz0n2yhrqb825dldr57m1j6w0l3sdxsi4jmibs4bj"; libraryHaskellDepends = [ aeson aeson-pretty autoexporter base bytestring dlist template-haskell text th-data-compat th-strict-compat transformers @@ -318785,7 +319150,7 @@ self: { license = lib.licenses.bsd3; }) {}; - "typst_0_5_0_5" = callPackage + "typst_0_6" = callPackage ({ mkDerivation, aeson, array, base, bytestring, cassava , containers, directory, filepath, mtl, ordered-containers, parsec , pretty, pretty-show, regex-tdfa, scientific, tasty, tasty-golden @@ -318793,8 +319158,8 @@ self: { }: mkDerivation { pname = "typst"; - version = "0.5.0.5"; - sha256 = "0515z5hi4w89h5dd7bl54zq28k5jzr4r3xnz4k6q2cnahx3b9pa9"; + version = "0.6"; + sha256 = "092pdx7qkrvxb0gz316aylgayzlkc3scw8dj5jkf4riq8gc3h7x1"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -319672,6 +320037,20 @@ self: { broken = true; }) {}; + "unbound-generics-unify" = callPackage + ({ mkDerivation, base, containers, transformers, unbound-generics + }: + mkDerivation { + pname = "unbound-generics-unify"; + version = "0.1.1"; + sha256 = "1khf5n7c57d92mh5hqw2ahnwzs8bijw529aq768kd8kki0qhrxc9"; + libraryHaskellDepends = [ + base containers transformers unbound-generics + ]; + description = "Unification based on unbound-generics"; + license = lib.licenses.bsd3; + }) {}; + "unbound-kind-generics" = callPackage ({ mkDerivation, base, kind-generics, kind-generics-th , unbound-generics @@ -319835,8 +320214,8 @@ self: { }: mkDerivation { pname = "uncertain"; - version = "0.4.0.0"; - sha256 = "1v7q6ajyqx3m06w2iy6dxkbfk6f3878zmii892k4m5a0hzi82x0c"; + version = "0.4.0.1"; + sha256 = "16c7x256p4ymmj80yzd7wvgiapysxzpil81vbydwh1vcxijyxjw3"; libraryHaskellDepends = [ ad base base-compat containers free mwc-random primitive transformers @@ -319847,6 +320226,30 @@ self: { broken = true; }) {}; + "unclogging" = callPackage + ({ mkDerivation, aeson, async, base, bytestring, chronos + , colourista, fused-effects, kan-extensions, tasty, tasty-hunit + , template-haskell, text, unliftio + }: + mkDerivation { + pname = "unclogging"; + version = "0.1.0.2"; + sha256 = "1w38pifsff5c2p22afnnw6c6n5qxivyvbdciy5z0d46q7nxqgysr"; + isLibrary = true; + isExecutable = true; + libraryHaskellDepends = [ + aeson async base bytestring chronos colourista fused-effects + kan-extensions template-haskell text unliftio + ]; + executableHaskellDepends = [ aeson async base unliftio ]; + testHaskellDepends = [ + aeson base fused-effects tasty tasty-hunit unliftio + ]; + description = "a library which implements easy, concurrent and pretty logging"; + license = lib.licenses.agpl3Plus; + mainProgram = "unclogging"; + }) {}; + "unconstrained" = callPackage ({ mkDerivation }: mkDerivation { @@ -320711,8 +321114,8 @@ self: { pname = "union"; version = "0.1.2"; sha256 = "1i4fvlwkw1wx64a6l8342aqfqsdq7fqa4p24g3i5gn5704lxrsb3"; - revision = "8"; - editedCabalFile = "0rm4nm47arflmbqngzq9ajri8f43wgplzrk9qfvjm6ag12vnjrl5"; + revision = "9"; + editedCabalFile = "11h6qk4gnnlprrgi9cnpcbklwqnjsvk97h9gbp7ka4ib78xgxr84"; libraryHaskellDepends = [ base deepseq hashable profunctors tagged vinyl ]; @@ -321597,19 +322000,6 @@ self: { }) {}; "unix-bytestring" = callPackage - ({ mkDerivation, base, bytestring }: - mkDerivation { - pname = "unix-bytestring"; - version = "0.4.0.1"; - sha256 = "013if0qmbm491hjc4ha455whw3gwxwpws351cjhpalz8a6yh479j"; - revision = "1"; - editedCabalFile = "00qlidmxjap1y6m51m06m7xnmid3yrs8iki1rqmwp2pjx0lfwsxd"; - libraryHaskellDepends = [ base bytestring ]; - description = "Unix/Posix-specific functions for ByteStrings"; - license = lib.licenses.bsd3; - }) {}; - - "unix-bytestring_0_4_0_2" = callPackage ({ mkDerivation, base, bytestring }: mkDerivation { pname = "unix-bytestring"; @@ -321618,7 +322008,6 @@ self: { libraryHaskellDepends = [ base bytestring ]; description = "Unix/Posix-specific functions for ByteStrings"; license = lib.licenses.bsd3; - hydraPlatforms = lib.platforms.none; }) {}; "unix-compat" = callPackage @@ -322044,6 +322433,8 @@ self: { pname = "unlit"; version = "0.4.0.0"; sha256 = "05am6mngvwj3a4mnwf1x3wbb2fvh3lj9jc5cvbmi269zhkjcv7j8"; + revision = "2"; + editedCabalFile = "0nqvrb9mjv77nx3gky576lf5ah1iwn1sjwwpy9a9za6pvz8dzjvv"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ base directory text ]; @@ -323696,8 +324087,8 @@ self: { }: mkDerivation { pname = "utxorpc"; - version = "0.0.9.0"; - sha256 = "1n86awygbq0gf9bl35hhsx0wxwnyk63ydxkz6i93dbbp22lfnmgc"; + version = "0.0.10.0"; + sha256 = "0y1v4a8shg05mphcly4n77qf8a3jp43girc9kf3302p8sjgx2zv2"; libraryHaskellDepends = [ base proto-lens proto-lens-protobuf-types proto-lens-runtime ]; @@ -324716,8 +325107,8 @@ self: { ({ mkDerivation, base, containers, validity }: mkDerivation { pname = "validity-containers"; - version = "0.5.0.4"; - sha256 = "1qw5p60dr54d2wh49y6x33hbks4d74m8pr5zygblzk0y70warqld"; + version = "0.5.0.5"; + sha256 = "0bvvfvbi98p16n9xmyfvb9qypp3r3kwqdqrni6fd19cjmvyg9g2p"; libraryHaskellDepends = [ base containers validity ]; description = "Validity instances for containers"; license = lib.licenses.mit; @@ -330340,7 +330731,7 @@ self: { maintainers = [ lib.maintainers.alexfmpe ]; }) {}; - "warp_3_4_1" = callPackage + "warp_3_4_2" = callPackage ({ mkDerivation, array, auto-update, base, bsb-http-chunked , bytestring, case-insensitive, containers, crypton-x509, directory , gauge, ghc-prim, hashable, hspec, hspec-discover, http-client @@ -330350,10 +330741,8 @@ self: { }: mkDerivation { pname = "warp"; - version = "3.4.1"; - sha256 = "0f4cs9qb3cpagryijzw46r5y5bd2srvb4b3phffydj5aim253jfp"; - revision = "1"; - editedCabalFile = "08jsdv1858cdmsraf489zmv4y0zpd47fr0qnwqd27acjnavpcwf7"; + version = "3.4.2"; + sha256 = "0b7f5darsa7n2bwlnj46xrgwbrb46yl62qyrcq84hvdpq2sfnxdl"; libraryHaskellDepends = [ array auto-update base bsb-http-chunked bytestring case-insensitive containers crypton-x509 ghc-prim hashable http-date http-types @@ -330482,8 +330871,8 @@ self: { }: mkDerivation { pname = "warp-tls"; - version = "3.4.6"; - sha256 = "0m5k2n7sdyb1g1r6ddwv2k75jgrhxwcgn3dbj42d1kjwvpiq03j8"; + version = "3.4.7"; + sha256 = "0lc8abjqs7j52qnfsaljjngxxzxja6d3bk4q796ahcikk10id1cf"; libraryHaskellDepends = [ base bytestring data-default-class network recv streaming-commons tls tls-session-manager unliftio wai warp @@ -331273,8 +331662,8 @@ self: { }: mkDerivation { pname = "web3"; - version = "1.0.0.0"; - sha256 = "0bnamwvdxl3i1p8bflnhaxxpn0bqcnf174gwplqjkxdc9pzfhiig"; + version = "1.0.1.0"; + sha256 = "09l820lmgyvfpiqc57qx1kc355lxjalb4ijbk4dv0qi8px9pasvz"; libraryHaskellDepends = [ base web3-ethereum web3-polkadot web3-provider ]; @@ -331289,8 +331678,8 @@ self: { }: mkDerivation { pname = "web3-bignum"; - version = "1.0.0.0"; - sha256 = "140qv8y6b63by81z0k5by8vqr7x0gc106a67r35qbhdfmbhv71n0"; + version = "1.0.1.0"; + sha256 = "1h0r9sw9i7p9k91rl461nx1hss8s1s8i9iwilmp2dy0k4f50rzps"; libraryHaskellDepends = [ base cereal memory memory-hexstring scale wide-word ]; @@ -331329,30 +331718,30 @@ self: { }) {}; "web3-ethereum" = callPackage - ({ mkDerivation, aeson, base, bytestring, data-default, exceptions - , generics-sop, hspec, hspec-contrib, hspec-discover - , hspec-expectations, jsonrpc-tinyclient, machines, memory - , memory-hexstring, microlens, microlens-aeson, mtl, OneTuple - , relapse, tagged, template-haskell, text, transformers, vinyl - , web3-crypto, web3-solidity + ({ mkDerivation, aeson, aeson-casing, base, bytestring + , data-default, exceptions, generics-sop, hspec, hspec-contrib + , hspec-discover, hspec-expectations, jsonrpc-tinyclient, machines + , memory, memory-hexstring, microlens, microlens-aeson, mtl + , OneTuple, relapse, tagged, template-haskell, text, transformers + , vinyl, web3-crypto, web3-solidity }: mkDerivation { pname = "web3-ethereum"; - version = "1.0.0.0"; - sha256 = "1vsvxhl6w6hjiv6b61sn8f2bnj6p55b4qyvblrfpk60k7pqq774c"; + version = "1.0.1.0"; + sha256 = "1cd69g5wp7faq9hz1kvwp15y3v0wc3h5cpq0vbdbbaq8q7xg09yy"; libraryHaskellDepends = [ - aeson base bytestring data-default exceptions generics-sop + aeson aeson-casing base bytestring data-default exceptions + generics-sop jsonrpc-tinyclient machines memory memory-hexstring + microlens microlens-aeson mtl OneTuple relapse tagged + template-haskell text transformers vinyl web3-crypto web3-solidity + ]; + testHaskellDepends = [ + aeson aeson-casing base bytestring data-default exceptions + generics-sop hspec hspec-contrib hspec-discover hspec-expectations jsonrpc-tinyclient machines memory memory-hexstring microlens microlens-aeson mtl OneTuple relapse tagged template-haskell text transformers vinyl web3-crypto web3-solidity ]; - testHaskellDepends = [ - aeson base bytestring data-default exceptions generics-sop hspec - hspec-contrib hspec-discover hspec-expectations jsonrpc-tinyclient - machines memory memory-hexstring microlens microlens-aeson mtl - OneTuple relapse tagged template-haskell text transformers vinyl - web3-crypto web3-solidity - ]; testToolDepends = [ hspec-discover ]; description = "Ethereum support for Haskell Web3 library"; license = lib.licenses.asl20; @@ -331379,29 +331768,29 @@ self: { }) {}; "web3-polkadot" = callPackage - ({ mkDerivation, aeson, animalcase, base, base58-bytestring - , bytestring, containers, cryptonite, generics-sop, hspec - , hspec-contrib, hspec-discover, hspec-expectations - , hspec-expectations-json, jsonrpc-tinyclient, memory - , memory-hexstring, microlens, microlens-mtl, microlens-th, mtl - , parsec, scale, text, web3-bignum, web3-crypto + ({ mkDerivation, aeson, base, base58-bytestring, bytestring, cases + , containers, crypton, generics-sop, hspec, hspec-contrib + , hspec-discover, hspec-expectations, hspec-expectations-json + , jsonrpc-tinyclient, memory, memory-hexstring, microlens + , microlens-mtl, microlens-th, mtl, parsec, scale, text + , web3-bignum, web3-crypto }: mkDerivation { pname = "web3-polkadot"; - version = "1.0.0.0"; - sha256 = "0sx9lj7px6m5ag4bk4imllh4bmy7kfgkfy1zb9hqjkdmjwn2i2w5"; + version = "1.0.1.0"; + sha256 = "13bqv3npvqd93dqk7bxaqqfrzrn0q2ndsnlsc4awx0x5vssw0hdj"; libraryHaskellDepends = [ - aeson animalcase base base58-bytestring bytestring containers - cryptonite generics-sop jsonrpc-tinyclient memory memory-hexstring - microlens microlens-mtl microlens-th mtl parsec scale text - web3-bignum web3-crypto + aeson base base58-bytestring bytestring cases containers crypton + generics-sop jsonrpc-tinyclient memory memory-hexstring microlens + microlens-mtl microlens-th mtl parsec scale text web3-bignum + web3-crypto ]; testHaskellDepends = [ - aeson animalcase base base58-bytestring bytestring containers - cryptonite generics-sop hspec hspec-contrib hspec-discover - hspec-expectations hspec-expectations-json jsonrpc-tinyclient - memory memory-hexstring microlens microlens-mtl microlens-th mtl - parsec scale text web3-bignum web3-crypto + aeson base base58-bytestring bytestring cases containers crypton + generics-sop hspec hspec-contrib hspec-discover hspec-expectations + hspec-expectations-json jsonrpc-tinyclient memory memory-hexstring + microlens microlens-mtl microlens-th mtl parsec scale text + web3-bignum web3-crypto ]; testToolDepends = [ hspec-discover ]; description = "Polkadot support for Haskell Web3 library"; @@ -331415,8 +331804,8 @@ self: { }: mkDerivation { pname = "web3-provider"; - version = "1.0.0.0"; - sha256 = "03c892xj7yxwbb4r1vpqzwgsf4fyk9389rqivpr6bwklnx9230ic"; + version = "1.0.1.0"; + sha256 = "1nmqsdcxh4cgdw0bpfaf9d64cnlwgg7qms66dfd3givwfb5bsb0d"; libraryHaskellDepends = [ async base data-default exceptions http-client jsonrpc-tinyclient mtl network text transformers websockets @@ -331434,8 +331823,8 @@ self: { }: mkDerivation { pname = "web3-solidity"; - version = "1.0.0.0"; - sha256 = "1n5jf9vdxps8sxcaa3k2a4m3qn5w3kphvvn7f4jy0dh0zkr7i5nm"; + version = "1.0.1.0"; + sha256 = "1gy7w0cqxk2nzd5p1cncwv60ldm2g81ydyfmj0640h2h0v4d8r9k"; libraryHaskellDepends = [ aeson base basement bytestring cereal data-default generics-sop memory memory-hexstring microlens OneTuple parsec tagged @@ -332858,7 +333247,7 @@ self: { mainProgram = "quickstart"; }) {}; - "what4_1_6" = callPackage + "what4_1_6_2" = callPackage ({ mkDerivation, async, attoparsec, base, bifunctors, bimap , BoundedChan, bv-sized, bytestring, concurrent-extra, config-value , containers, contravariant, deepseq, deriving-compat, directory @@ -332874,8 +333263,8 @@ self: { }: mkDerivation { pname = "what4"; - version = "1.6"; - sha256 = "123p9h1fajwf5brv9qbs9kx7w7wwrl6md0arpjsj7klrz14qnn5j"; + version = "1.6.2"; + sha256 = "1qvlm4ib40f0y3gcxljx6vrsx8wcqsgnky2231a7y3wr121r2ffz"; isLibrary = true; isExecutable = true; enableSeparateDataOutput = true; @@ -332959,6 +333348,8 @@ self: { pname = "which"; version = "0.2.0.2"; sha256 = "08w398rm86slizy3fqb1rfd926zycajfnzx0sa1awrnbh2kjfx6m"; + revision = "1"; + editedCabalFile = "1nr7bjggjallp1kxaq2675mqa35w5h228agxkkmw8y4kssikp7wg"; libraryHaskellDepends = [ base shelly template-haskell text ]; description = "Determine the full path to an executable"; license = lib.licenses.bsd3; @@ -333211,8 +333602,8 @@ self: { }: mkDerivation { pname = "wikimusic-api-spec"; - version = "1.2.0.0"; - sha256 = "11jfj3z3b47hc3dfm7zfxxdgspzm0yisc0ihrplnjb9rrc0vva9b"; + version = "1.2.1.2"; + sha256 = "12b44xwav5m4vkm8lvsza7p50dg05x9d062xcgswp14p9myb4g6i"; libraryHaskellDepends = [ aeson base bytestring directory filepath keys mtl openapi3 relude servant servant-openapi3 servant-rate-limit servant-server text @@ -333298,8 +333689,8 @@ self: { }: mkDerivation { pname = "wild-bind"; - version = "0.1.2.9"; - sha256 = "1jnknyf3lwc0bk50llpqh3mpvn78h36f6h359z9sbwacxpsr8526"; + version = "0.1.2.10"; + sha256 = "1dav43i4cz0dag0qqm6cmisbkazp9jf0qaczsh3p5542rzla4bkg"; libraryHaskellDepends = [ base containers semigroups text transformers ]; @@ -333319,8 +333710,8 @@ self: { }: mkDerivation { pname = "wild-bind-indicator"; - version = "1.0.0.1"; - sha256 = "0r9850zk2gmx492palbam6nl5ym9ml5lpgx0c1jyvpbn3caqgxas"; + version = "1.0.0.2"; + sha256 = "0bkwzn7b7j9npxzcdng53zmrlgzc6z072yr3prn6yq8pxrqr1wfz"; enableSeparateDataOutput = true; libraryHaskellDepends = [ async base containers gi-gdk gi-glib gi-gtk text transformers @@ -333337,8 +333728,8 @@ self: { }: mkDerivation { pname = "wild-bind-task-x11"; - version = "0.2.0.3"; - sha256 = "1agrwh4sgajyqs655p5ppz2vamp6xf5h5sckqb83zzjvn8i293dk"; + version = "0.2.0.4"; + sha256 = "0yv8w5sfcxjkhb4i5lnnpq89sd0dnbbq2jgcp5sazmvf465v7wls"; libraryHaskellDepends = [ base text transformers wild-bind wild-bind-indicator wild-bind-x11 ]; @@ -333355,8 +333746,8 @@ self: { }: mkDerivation { pname = "wild-bind-x11"; - version = "0.2.0.15"; - sha256 = "14yxm16cqmmrx6sag8xjnwzwhcyqbmpx0vhslny2r0b5bmnjn2dn"; + version = "0.2.0.16"; + sha256 = "183rrdpqg0hkikwgckk415x1i98k8la19p2lgjzcihikj7xm6h26"; libraryHaskellDepends = [ base containers fold-debounce mtl semigroups stm text transformers wild-bind X11 @@ -333873,8 +334264,8 @@ self: { pname = "wizards"; version = "1.0.3"; sha256 = "1clvbd1ckhvy29qrbmpkn7bya7300fq6znnps23nn3nxyrxhsr85"; - revision = "2"; - editedCabalFile = "0bnqz6slm3hr98ihhlkmivcd12bda6lf0j7l6dfdz30fl4xqpijl"; + revision = "3"; + editedCabalFile = "0ra3vbxiasm7277zyxpvqpij2nf4lgc1rsv91b00cpp3bs4rhxyb"; libraryHaskellDepends = [ base containers control-monad-free haskeline mtl transformers ]; @@ -336596,6 +336987,8 @@ self: { pname = "xls"; version = "0.1.3"; sha256 = "1qjkmcy41yj5izcj24jjwj1jvlg4cfg4g96zgc3jv4rfyr1n1892"; + revision = "1"; + editedCabalFile = "05xjv2l4i39fi4mhcr7w1wkl0a3lc7n40mnh3fq645hfik63nd62"; isLibrary = true; isExecutable = true; libraryHaskellDepends = [ @@ -342337,6 +342730,29 @@ self: { broken = true; }) {}; + "yggdrasil-schema" = callPackage + ({ mkDerivation, aeson, async, base, bytestring, containers + , directory, filepath, hspec, keys, mtl, neat-interpolation, optics + , optparse-applicative, QuickCheck, random, relude, sqlite-simple + , tasty, tasty-hspec, text, time, uuid + }: + mkDerivation { + pname = "yggdrasil-schema"; + version = "1.0.0.5"; + sha256 = "0d83cymxcx9n9fcaqybcfmv074zs0sgm7a99jzc1qp6kz2jqqjwy"; + libraryHaskellDepends = [ + aeson async base bytestring containers directory filepath keys mtl + neat-interpolation optics optparse-applicative random relude + sqlite-simple text time uuid + ]; + testHaskellDepends = [ + aeson async base bytestring containers directory filepath hspec + keys mtl neat-interpolation optics optparse-applicative QuickCheck + random relude sqlite-simple tasty tasty-hspec text time uuid + ]; + license = lib.licenses.lgpl3Only; + }) {}; + "yhccore" = callPackage ({ mkDerivation, base, containers, mtl, pretty, uniplate }: mkDerivation { From d0882a7937c97067b788bef3b6e9e32c29635485 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 6 Oct 2024 07:30:37 +0100 Subject: [PATCH 0123/1574] libdeflate: 1.21 -> 1.22 Changes: https://github.com/ebiggers/libdeflate/compare/v1.21...v1.22 --- pkgs/development/libraries/libdeflate/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/libdeflate/default.nix b/pkgs/development/libraries/libdeflate/default.nix index 5f62f8b70647..56589f8cf8df 100644 --- a/pkgs/development/libraries/libdeflate/default.nix +++ b/pkgs/development/libraries/libdeflate/default.nix @@ -9,13 +9,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "libdeflate"; - version = "1.21"; + version = "1.22"; src = fetchFromGitHub { owner = "ebiggers"; repo = "libdeflate"; rev = "v${finalAttrs.version}"; - sha256 = "sha256-JsPvftpl9drmhlNdqorr92q7dnYzXpIIO8prMPPGHFk="; + hash = "sha256-KpKY0A1cRV9XR1WrE15Eewf2fDWwIFGjQm/fFCnBDrg="; }; cmakeFlags = lib.optionals stdenv.hostPlatform.isStatic [ "-DLIBDEFLATE_BUILD_SHARED_LIB=OFF" ]; From adc685078e82d9eff2d5e0cdb994313f6ae37654 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Sat, 5 Oct 2024 08:53:06 +0000 Subject: [PATCH 0124/1574] cmake: 3.29.6 -> 3.30.4 --- pkgs/by-name/cm/cmake/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/cm/cmake/package.nix b/pkgs/by-name/cm/cmake/package.nix index 82563e56c2b0..985b07cfb8a6 100644 --- a/pkgs/by-name/cm/cmake/package.nix +++ b/pkgs/by-name/cm/cmake/package.nix @@ -48,11 +48,11 @@ stdenv.mkDerivation (finalAttrs: { + lib.optionalString isMinimalBuild "-minimal" + lib.optionalString cursesUI "-cursesUI" + lib.optionalString qt5UI "-qt5UI"; - version = "3.29.6"; + version = "3.30.4"; src = fetchurl { url = "https://cmake.org/files/v${lib.versions.majorMinor finalAttrs.version}/cmake-${finalAttrs.version}.tar.gz"; - hash = "sha256-E5ExMAO4PUjiqxFai1JaVX942MFURhi0jR2QGEoQ8K8="; + hash = "sha256-x1nJcnTx56qq/LHw0mH53pvzpdbst+LfYWMkpG/nBLI="; }; patches = [ From b3238d53569ec9ca2217f488b6782d79e9d85e4a Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Sun, 6 Oct 2024 19:12:30 +0530 Subject: [PATCH 0125/1574] cmake-minimal: fix patch on darwin --- .../005-remove-systemconfiguration-dep.diff | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/cm/cmake/005-remove-systemconfiguration-dep.diff b/pkgs/by-name/cm/cmake/005-remove-systemconfiguration-dep.diff index 16bcbbd02fda..742b80c4f9d1 100644 --- a/pkgs/by-name/cm/cmake/005-remove-systemconfiguration-dep.diff +++ b/pkgs/by-name/cm/cmake/005-remove-systemconfiguration-dep.diff @@ -1,7 +1,8 @@ -diff -Naur cmake-3.28.2/Utilities/cmcurl/CMakeLists.txt cmake-3.28.2-new/Utilities/cmcurl/CMakeLists.txt ---- cmake-3.28.2/Utilities/cmcurl/CMakeLists.txt 2024-01-29 23:01:32.000000000 +0300 -+++ cmake-3.28.2-new/Utilities/cmcurl/CMakeLists.txt 2024-02-16 13:09:40.805479195 +0300 -@@ -470,13 +470,6 @@ +diff --git a/Utilities/cmcurl/CMakeLists.txt b/Utilities/cmcurl/CMakeLists.txt +index b766aee425..ad50e64ce6 100644 +--- a/Utilities/cmcurl/CMakeLists.txt ++++ b/Utilities/cmcurl/CMakeLists.txt +@@ -466,13 +466,6 @@ if(ENABLE_IPV6 AND NOT WIN32) if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT ENABLE_ARES) set(use_core_foundation_and_core_services ON) @@ -14,18 +15,19 @@ diff -Naur cmake-3.28.2/Utilities/cmcurl/CMakeLists.txt cmake-3.28.2-new/Utiliti - list(APPEND CURL_LIBS "-framework SystemConfiguration") endif() endif() - -diff -Naur cmake-3.28.2/Utilities/cmcurl/lib/curl_setup.h cmake-3.28.2-new/Utilities/cmcurl/lib/curl_setup.h ---- cmake-3.28.2/Utilities/cmcurl/lib/curl_setup.h 2024-01-29 23:01:32.000000000 +0300 -+++ cmake-3.28.2-new/Utilities/cmcurl/lib/curl_setup.h 2024-02-16 13:10:38.822445566 +0300 -@@ -255,12 +255,6 @@ + if(ENABLE_IPV6) +diff --git a/Utilities/cmcurl/lib/curl_setup.h b/Utilities/cmcurl/lib/curl_setup.h +index f7ba7e92a5..e4663cbf36 100644 +--- a/Utilities/cmcurl/lib/curl_setup.h ++++ b/Utilities/cmcurl/lib/curl_setup.h +@@ -316,12 +316,6 @@ * performing this task will result in a synthesized IPv6 address. */ #if defined(__APPLE__) && !defined(USE_ARES) -#include -#define USE_RESOLVE_ON_IPS 1 -# if TARGET_OS_MAC && !(defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE) && \ -- defined(ENABLE_IPV6) +- defined(USE_IPV6) -# define CURL_MACOS_CALL_COPYPROXIES 1 -# endif #endif From 0dfbe6f19cb6a6a586d66057a95e262dc72487c2 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 6 Oct 2024 15:04:32 +0100 Subject: [PATCH 0126/1574] sparrow: pin JDK 23 --- pkgs/top-level/all-packages.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e233cc3ce06e..85de3ddc6418 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12444,7 +12444,7 @@ with pkgs; sparrow-unwrapped = callPackage ../applications/blockchains/sparrow { openimajgrabber = callPackage ../applications/blockchains/sparrow/openimajgrabber.nix {}; - openjdk = jdk22.override { enableJavaFX = true; }; + openjdk = jdk23.override { enableJavaFX = true; }; }; sparrow = callPackage ../applications/blockchains/sparrow/fhsenv.nix { }; From 5709115ac9231cab456a11d13a70f0e768c640e2 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 22 Sep 2024 22:52:46 -0400 Subject: [PATCH 0127/1574] memstream: cross-compilation fixes - Use `$(CC)` to pick up the prefixed compiler automatically; and - Only run check phase when the builder can execute host binaries. --- pkgs/development/libraries/memstream/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/memstream/default.nix b/pkgs/development/libraries/memstream/default.nix index 90505a56a931..7877718e6d35 100644 --- a/pkgs/development/libraries/memstream/default.nix +++ b/pkgs/development/libraries/memstream/default.nix @@ -9,13 +9,18 @@ stdenv.mkDerivation rec { sha256 = "0kvdb897g7nyviaz72arbqijk2g2wa61cmi3l5yh48rzr49r3a3a"; }; + postPatch = '' + substituteInPlace Makefile \ + --replace-fail 'cc' '$(CC)' + ''; + dontConfigure = true; postBuild = '' $AR rcs libmemstream.a memstream.o ''; - doCheck = true; + doCheck = stdenv.buildPlatform.canExecute stdenv.hostPlatform; checkPhase = '' runHook preCheck From 38d39e6d6e94294cca62bbfc05d5bab36c36a795 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 30 Aug 2024 21:48:43 -0400 Subject: [PATCH 0128/1574] librsvg: link libobjc on Darwin independent of CPU architecture aarch64-darwin now also needs to link libobjc explicitly when using the new Darwin SDKs. --- pkgs/development/libraries/librsvg/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/libraries/librsvg/default.nix b/pkgs/development/libraries/librsvg/default.nix index 5024f36ff248..3d7a8bf8e5ba 100644 --- a/pkgs/development/libraries/librsvg/default.nix +++ b/pkgs/development/libraries/librsvg/default.nix @@ -113,11 +113,8 @@ stdenv.mkDerivation (finalAttrs: { ${lib.optionalString (stdenv.hostPlatform.emulatorAvailable buildPackages) (stdenv.hostPlatform.emulator buildPackages)} ${lib.getDev gdk-pixbuf}/bin/gdk-pixbuf-query-loaders ''; - # librsvg only links Foundation, but it also requiers libobjc. The Framework.tbd in the 11.0 SDK - # reexports libobjc, but the one in the 10.12 SDK does not, so link it manually. - env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) { - NIX_LDFLAGS = "-lobjc"; - }; + # librsvg only links Foundation, but it also requiers libobjc. + env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { NIX_LDFLAGS = "-lobjc"; }; preConfigure = '' PKG_CONFIG_VAPIGEN_VAPIGEN="$(type -p vapigen)" From ba7af302dc9a9f27f56178de10efbf0d75df8c4a Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 30 Sep 2024 09:00:26 -0400 Subject: [PATCH 0129/1574] =?UTF-8?q?man-db:=20fix=20test=20failure=20when?= =?UTF-8?q?=20using=20Darwin=E2=80=99s=20libiconv?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit man-db makes assumptions about libiconv that are not true for all libiconv implementations, which causes the test to go into an infinite loop because it never makes the progress it expects to make. --- pkgs/tools/misc/man-db/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/misc/man-db/default.nix b/pkgs/tools/misc/man-db/default.nix index e88a189854f6..268d24df00fe 100644 --- a/pkgs/tools/misc/man-db/default.nix +++ b/pkgs/tools/misc/man-db/default.nix @@ -47,6 +47,11 @@ stdenv.mkDerivation rec { # Add mandb locations for the above echo "MANDB_MAP /nix/var/nix/profiles/default/share/man /var/cache/man/nixpkgs" >> src/man_db.conf.in + '' + lib.optionalString stdenv.hostPlatform.isDarwin '' + # This test fails on Darwin. man-db expects libiconv to skip over the invalid character in the source data, but + # Darwin’s libiconv returns EILSEQ without skipping it. This causes the `manconv` to go into an infinite loop + # because it keeps trying to convert the invalid character. + sed -i '/manconv-odd-combinations/d' src/tests/Makefile.am ''; configureFlags = [ From 646d4d5a2d448615d518b5ba5ff85de275a7d7ed Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 7 Oct 2024 08:11:30 -0400 Subject: [PATCH 0130/1574] gst_all_1.gstreamer: only try to link libdw if it is available --- pkgs/development/libraries/gstreamer/core/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/gstreamer/core/default.nix b/pkgs/development/libraries/gstreamer/core/default.nix index 7eba093ab94b..934d919cbbc4 100644 --- a/pkgs/development/libraries/gstreamer/core/default.nix +++ b/pkgs/development/libraries/gstreamer/core/default.nix @@ -28,6 +28,9 @@ , enableDocumentation ? stdenv.hostPlatform == stdenv.buildPlatform, hotdoc }: +let + hasElfutils = lib.meta.availableOn stdenv.hostPlatform elfutils; +in stdenv.mkDerivation (finalAttrs: { pname = "gstreamer"; version = "1.24.3"; @@ -76,7 +79,7 @@ stdenv.mkDerivation (finalAttrs: { bash-completion ] ++ lib.optionals stdenv.hostPlatform.isLinux [ libcap - ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform elfutils) [ + ] ++ lib.optionals hasElfutils [ elfutils ] ++ lib.optionals withLibunwind [ libunwind @@ -95,7 +98,7 @@ stdenv.mkDerivation (finalAttrs: { (lib.mesonEnable "introspection" withIntrospection) (lib.mesonEnable "doc" enableDocumentation) (lib.mesonEnable "libunwind" withLibunwind) - (lib.mesonEnable "libdw" withLibunwind) + (lib.mesonEnable "libdw" (withLibunwind && hasElfutils)) ]; postPatch = '' From bc23fc41e477654dc25e6faa8dea7a26105aa15e Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Mon, 7 Oct 2024 15:35:50 +0200 Subject: [PATCH 0131/1574] pdi: fix HDF5 version detection Allow for 3 and 4 digit version string. HDF5 likes to skip between them. --- pkgs/by-name/pd/pdi/package.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/pd/pdi/package.nix b/pkgs/by-name/pd/pdi/package.nix index 7159af6a03ae..519b72594a10 100644 --- a/pkgs/by-name/pd/pdi/package.nix +++ b/pkgs/by-name/pd/pdi/package.nix @@ -45,7 +45,7 @@ stdenv.mkDerivation rec { # Patch it to make it match a 4 number-long version. postPatch = '' substituteInPlace plugins/decl_hdf5/cmake/FindHDF5.cmake \ - --replace-fail '"H5_VERSION[ \t]+\"([0-9]+\\.[0-9]+\\.[0-9]+)' '"H5_VERSION[ \t]+\"([0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+)' + --replace-fail '"H5_VERSION[ \t]+\"([0-9]+\\.[0-9]+\\.[0-9]+)' '"H5_VERSION[ \t]+\"([0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)*)' ''; nativeBuildInputs = [ From 8b30d996bfbdae6f93ab1d250c818d2b2e9e8bf3 Mon Sep 17 00:00:00 2001 From: Florian Brandes Date: Mon, 7 Oct 2024 20:04:08 +0200 Subject: [PATCH 0132/1574] python312Packages.dnspython: 2.6.1 -> 2.7.0 Signed-off-by: Florian Brandes --- pkgs/development/python-modules/dnspython/default.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/dnspython/default.nix b/pkgs/development/python-modules/dnspython/default.nix index d1d0d61398de..fa2a2565e916 100644 --- a/pkgs/development/python-modules/dnspython/default.nix +++ b/pkgs/development/python-modules/dnspython/default.nix @@ -21,14 +21,14 @@ buildPythonPackage rec { pname = "dnspython"; - version = "2.6.1"; + version = "2.7.0"; format = "pyproject"; - disabled = pythonOlder "3.8"; + disabled = pythonOlder "3.9"; src = fetchPypi { inherit pname version; - hash = "sha256-6PD5wjp7fLmd7WTmw6bz5wHXj1DFXgArg53qciXP98w="; + hash = "sha256-zpxDLtoNyRz2GKXO3xpOFCZRGWu80sgOie1akH5c+vE="; }; nativeBuildInputs = [ hatchling ]; From 57c2e5683de7cd80ce44702b56fb22c614407a7e Mon Sep 17 00:00:00 2001 From: Yueh-Shun Li Date: Tue, 10 Sep 2024 23:15:40 +0800 Subject: [PATCH 0133/1574] buildPython hooks: format with shfmt --- .../python/hooks/conda-install-hook.sh | 10 +++---- .../python/hooks/conda-unpack-hook.sh | 2 +- .../python/hooks/egg-unpack-hook.sh | 4 +-- .../python/hooks/pip-build-hook.sh | 26 +++++++++---------- .../python/hooks/pypa-install-hook.sh | 4 +-- .../python/hooks/pytest-check-hook.sh | 16 ++++++------ .../python/hooks/python-imports-check-hook.sh | 4 +-- .../python/hooks/python-namespaces-hook.sh | 3 +-- .../hooks/python-recompile-bytecode-hook.sh | 2 +- .../python/hooks/python-relax-deps-hook.sh | 2 +- .../hooks/python-remove-bin-bytecode-hook.sh | 6 ++--- .../interpreters/python/hooks/sphinx-hook.sh | 10 +++---- .../python/hooks/venv-shell-hook.sh | 12 ++++----- .../python/hooks/wheel-unpack-hook.sh | 4 +-- 14 files changed, 52 insertions(+), 53 deletions(-) diff --git a/pkgs/development/interpreters/python/hooks/conda-install-hook.sh b/pkgs/development/interpreters/python/hooks/conda-install-hook.sh index af9ed60a038d..437ca46ff97c 100644 --- a/pkgs/development/interpreters/python/hooks/conda-install-hook.sh +++ b/pkgs/development/interpreters/python/hooks/conda-install-hook.sh @@ -1,7 +1,7 @@ # Setup hook to use in case a conda binary package is installed echo "Sourcing conda install hook" -condaInstallPhase(){ +condaInstallPhase() { echo "Executing condaInstallPhase" runHook preInstall @@ -10,11 +10,11 @@ condaInstallPhase(){ # or multiple top level directories. siteDir=@pythonSitePackages@ if [ -e ./site-packages ]; then - mkdir -p $out/$siteDir - cp -r ./site-packages/* $out/$siteDir + mkdir -p $out/$siteDir + cp -r ./site-packages/* $out/$siteDir else - cp -r . $out - rm $out/env-vars + cp -r . $out + rm $out/env-vars fi runHook postInstall diff --git a/pkgs/development/interpreters/python/hooks/conda-unpack-hook.sh b/pkgs/development/interpreters/python/hooks/conda-unpack-hook.sh index 6204c13b7221..b9d13fe1ee10 100644 --- a/pkgs/development/interpreters/python/hooks/conda-unpack-hook.sh +++ b/pkgs/development/interpreters/python/hooks/conda-unpack-hook.sh @@ -1,7 +1,7 @@ # Setup hook to use in case a conda binary package is fetched echo "Sourcing conda unpack hook" -condaUnpackPhase(){ +condaUnpackPhase() { echo "Executing condaUnpackPhase" runHook preUnpack diff --git a/pkgs/development/interpreters/python/hooks/egg-unpack-hook.sh b/pkgs/development/interpreters/python/hooks/egg-unpack-hook.sh index c8ed3dee83ba..25d099bfc5ef 100644 --- a/pkgs/development/interpreters/python/hooks/egg-unpack-hook.sh +++ b/pkgs/development/interpreters/python/hooks/egg-unpack-hook.sh @@ -1,13 +1,13 @@ # Setup hook to use in case an egg is fetched echo "Sourcing egg setup hook" -eggUnpackPhase(){ +eggUnpackPhase() { echo "Executing eggUnpackPhase" runHook preUnpack cp "$src" "$(stripHash "$src")" -# runHook postUnpack # Calls find...? + # runHook postUnpack # Calls find...? echo "Finished executing eggUnpackPhase" } diff --git a/pkgs/development/interpreters/python/hooks/pip-build-hook.sh b/pkgs/development/interpreters/python/hooks/pip-build-hook.sh index 9de4c7d1dd0d..3d70de729f2d 100644 --- a/pkgs/development/interpreters/python/hooks/pip-build-hook.sh +++ b/pkgs/development/interpreters/python/hooks/pip-build-hook.sh @@ -10,13 +10,13 @@ pipBuildPhase() { mkdir -p dist echo "Creating a wheel..." @pythonInterpreter@ -m pip wheel \ - --verbose \ - --no-index \ - --no-deps \ - --no-clean \ - --no-build-isolation \ - --wheel-dir dist \ - $pipBuildFlags . + --verbose \ + --no-index \ + --no-deps \ + --no-clean \ + --no-build-isolation \ + --wheel-dir dist \ + $pipBuildFlags . echo "Finished creating a wheel..." runHook postBuild @@ -29,12 +29,12 @@ pipShellHook() { # Long-term setup.py should be dropped. if [ -e pyproject.toml ]; then - tmp_path=$(mktemp -d) - export PATH="$tmp_path/bin:$PATH" - export PYTHONPATH="$tmp_path/@pythonSitePackages@:$PYTHONPATH" - mkdir -p "$tmp_path/@pythonSitePackages@" - @pythonInterpreter@ -m pip install -e . --prefix "$tmp_path" \ - --no-build-isolation >&2 + tmp_path=$(mktemp -d) + export PATH="$tmp_path/bin:$PATH" + export PYTHONPATH="$tmp_path/@pythonSitePackages@:$PYTHONPATH" + mkdir -p "$tmp_path/@pythonSitePackages@" + @pythonInterpreter@ -m pip install -e . --prefix "$tmp_path" \ + --no-build-isolation >&2 fi runHook postShellHook diff --git a/pkgs/development/interpreters/python/hooks/pypa-install-hook.sh b/pkgs/development/interpreters/python/hooks/pypa-install-hook.sh index 2d925742daa7..f6d60be35d21 100644 --- a/pkgs/development/interpreters/python/hooks/pypa-install-hook.sh +++ b/pkgs/development/interpreters/python/hooks/pypa-install-hook.sh @@ -5,14 +5,14 @@ pypaInstallPhase() { echo "Executing pypaInstallPhase" runHook preInstall - pushd dist > /dev/null + pushd dist >/dev/null for wheel in *.whl; do @pythonInterpreter@ -m installer --prefix "$out" "$wheel" echo "Successfully installed $wheel" done - popd > /dev/null + popd >/dev/null export PYTHONPATH="$out/@pythonSitePackages@:$PYTHONPATH" diff --git a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh index a9e82674c5f8..fd61fd14043d 100644 --- a/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh +++ b/pkgs/development/interpreters/python/hooks/pytest-check-hook.sh @@ -18,11 +18,11 @@ function _concatSep { echo "$result" } -function _pytestComputeDisabledTestsString () { +function _pytestComputeDisabledTestsString() { declare -a tests local tests=($1) local prefix="not " - prefixed=( "${tests[@]/#/$prefix}" ) + prefixed=("${tests[@]/#/$prefix}") result=$(_concatSep "and" prefixed) echo "$result" } @@ -35,7 +35,7 @@ function pytestCheckPhase() { args=" -m pytest" if [ -n "$disabledTests" ]; then disabledTestsString=$(_pytestComputeDisabledTestsString "${disabledTests[@]}") - args+=" -k \""$disabledTestsString"\"" + args+=" -k \""$disabledTestsString"\"" fi if [ -n "${disabledTestPaths-}" ]; then @@ -43,11 +43,11 @@ function pytestCheckPhase() { fi for path in ${disabledTestPaths[@]}; do - if [ ! -e "$path" ]; then - echo "Disabled tests path \"$path\" does not exist. Aborting" - exit 1 - fi - args+=" --ignore=\"$path\"" + if [ ! -e "$path" ]; then + echo "Disabled tests path \"$path\" does not exist. Aborting" + exit 1 + fi + args+=" --ignore=\"$path\"" done args+=" ${pytestFlagsArray[@]}" eval "@pythonCheckInterpreter@ $args" diff --git a/pkgs/development/interpreters/python/hooks/python-imports-check-hook.sh b/pkgs/development/interpreters/python/hooks/python-imports-check-hook.sh index f4ef271ac1b2..591060aca6d0 100644 --- a/pkgs/development/interpreters/python/hooks/python-imports-check-hook.sh +++ b/pkgs/development/interpreters/python/hooks/python-imports-check-hook.sh @@ -1,7 +1,7 @@ # Setup hook for checking whether Python imports succeed echo "Sourcing python-imports-check-hook.sh" -pythonImportsCheckPhase () { +pythonImportsCheckPhase() { echo "Executing pythonImportsCheckPhase" if [ -n "$pythonImportsCheck" ]; then @@ -12,7 +12,7 @@ pythonImportsCheckPhase () { pythonImportsCheckOutput=$python fi export PYTHONPATH="$pythonImportsCheckOutput/@pythonSitePackages@:$PYTHONPATH" - ( cd $pythonImportsCheckOutput && eval "@pythonCheckInterpreter@ -c 'import os; import importlib; list(map(lambda mod: importlib.import_module(mod), os.environ[\"pythonImportsCheck\"].split()))'" ) + (cd $pythonImportsCheckOutput && @pythonCheckInterpreter@ -c 'import os; import importlib; list(map(lambda mod: importlib.import_module(mod), os.environ["pythonImportsCheck"].split()))') fi } diff --git a/pkgs/development/interpreters/python/hooks/python-namespaces-hook.sh b/pkgs/development/interpreters/python/hooks/python-namespaces-hook.sh index 37479d9d4111..5c5b840e05c3 100644 --- a/pkgs/development/interpreters/python/hooks/python-namespaces-hook.sh +++ b/pkgs/development/interpreters/python/hooks/python-namespaces-hook.sh @@ -8,7 +8,7 @@ pythonNamespacesHook() { echo "Enforcing PEP420 namespace: ${namespace}" # split namespace into segments. "azure.mgmt" -> "azure mgmt" - IFS='.' read -ra pathSegments <<< $namespace + IFS='.' read -ra pathSegments <<<$namespace constructedPath=$out/@pythonSitePackages@ # Need to remove the __init__.py at each namespace level @@ -49,4 +49,3 @@ pythonNamespacesHook() { if [ -z "${dontUsePythonNamespacesHook-}" -a -n "${pythonNamespaces-}" ]; then postFixupHooks+=(pythonNamespacesHook) fi - diff --git a/pkgs/development/interpreters/python/hooks/python-recompile-bytecode-hook.sh b/pkgs/development/interpreters/python/hooks/python-recompile-bytecode-hook.sh index 7ac8c2d5cc72..b64a44b650b3 100644 --- a/pkgs/development/interpreters/python/hooks/python-recompile-bytecode-hook.sh +++ b/pkgs/development/interpreters/python/hooks/python-recompile-bytecode-hook.sh @@ -6,7 +6,7 @@ echo "Sourcing python-recompile-bytecode-hook.sh" # Note this effectively duplicates `python-remove-bin-bytecode`, but long-term # this hook should be removed again. -pythonRecompileBytecodePhase () { +pythonRecompileBytecodePhase() { # TODO: consider other outputs than $out items="$(find "$out" -name "@bytecodeName@")" diff --git a/pkgs/development/interpreters/python/hooks/python-relax-deps-hook.sh b/pkgs/development/interpreters/python/hooks/python-relax-deps-hook.sh index 7fd1b52a04bf..7da5c0b0ac27 100644 --- a/pkgs/development/interpreters/python/hooks/python-relax-deps-hook.sh +++ b/pkgs/development/interpreters/python/hooks/python-relax-deps-hook.sh @@ -89,7 +89,7 @@ pythonRelaxDepsHook() { _pythonRelaxDeps $metadata_file _pythonRemoveDeps $metadata_file - if (( "${NIX_DEBUG:-0}" >= 1 )); then + if (("${NIX_DEBUG:-0}" >= 1)); then echo "pythonRelaxDepsHook: resulting METADATA for '$wheel':" cat $metadata_file fi diff --git a/pkgs/development/interpreters/python/hooks/python-remove-bin-bytecode-hook.sh b/pkgs/development/interpreters/python/hooks/python-remove-bin-bytecode-hook.sh index d67c0c557353..7e49251306e8 100644 --- a/pkgs/development/interpreters/python/hooks/python-remove-bin-bytecode-hook.sh +++ b/pkgs/development/interpreters/python/hooks/python-remove-bin-bytecode-hook.sh @@ -5,10 +5,10 @@ echo "Sourcing python-remove-bin-bytecode-hook.sh" # It may happen there are executables with a .py extension for which # bytecode is generated. This hook removes that bytecode. -pythonRemoveBinBytecodePhase () { +pythonRemoveBinBytecodePhase() { if [ -d "$out/bin" ]; then - rm -rf "$out/bin/__pycache__" # Python 3 - find "$out/bin" -type f -name "*.pyc" -delete # Python 2 + rm -rf "$out/bin/__pycache__" # Python 3 + find "$out/bin" -type f -name "*.pyc" -delete # Python 2 fi } diff --git a/pkgs/development/interpreters/python/hooks/sphinx-hook.sh b/pkgs/development/interpreters/python/hooks/sphinx-hook.sh index 0f32a6ec0e82..6825b5f4db04 100644 --- a/pkgs/development/interpreters/python/hooks/sphinx-hook.sh +++ b/pkgs/development/interpreters/python/hooks/sphinx-hook.sh @@ -9,15 +9,15 @@ buildSphinxPhase() { local __sphinxRoot="" runHook preBuildSphinx - if [[ -n "${sphinxRoot:-}" ]] ; then # explicit root - if ! [[ -f "${sphinxRoot}/conf.py" ]] ; then + if [[ -n "${sphinxRoot:-}" ]]; then # explicit root + if ! [[ -f "${sphinxRoot}/conf.py" ]]; then echo 2>&1 "$sphinxRoot/conf.py: no such file" exit 1 fi __sphinxRoot=$sphinxRoot else - for candidate in doc docs doc/source docs/source ; do - if [[ -f "$candidate/conf.py" ]] ; then + for candidate in doc docs doc/source docs/source; do + if [[ -f "$candidate/conf.py" ]]; then echo "Sphinx documentation found in $candidate" __sphinxRoot=$candidate break @@ -25,7 +25,7 @@ buildSphinxPhase() { done fi - if [[ -z "${__sphinxRoot}" ]] ; then + if [[ -z "${__sphinxRoot}" ]]; then echo 2>&1 "Sphinx documentation not found, use 'sphinxRoot' variable" exit 1 fi diff --git a/pkgs/development/interpreters/python/hooks/venv-shell-hook.sh b/pkgs/development/interpreters/python/hooks/venv-shell-hook.sh index 1fcc0bbd4b13..958bfe98ee69 100644 --- a/pkgs/development/interpreters/python/hooks/venv-shell-hook.sh +++ b/pkgs/development/interpreters/python/hooks/venv-shell-hook.sh @@ -3,14 +3,14 @@ venvShellHook() { runHook preShellHook if [ -d "${venvDir}" ]; then - echo "Skipping venv creation, '${venvDir}' already exists" - source "${venvDir}/bin/activate" + echo "Skipping venv creation, '${venvDir}' already exists" + source "${venvDir}/bin/activate" else - echo "Creating new venv environment in path: '${venvDir}'" - @pythonInterpreter@ -m venv "${venvDir}" + echo "Creating new venv environment in path: '${venvDir}'" + @pythonInterpreter@ -m venv "${venvDir}" - source "${venvDir}/bin/activate" - runHook postVenvCreation + source "${venvDir}/bin/activate" + runHook postVenvCreation fi runHook postShellHook diff --git a/pkgs/development/interpreters/python/hooks/wheel-unpack-hook.sh b/pkgs/development/interpreters/python/hooks/wheel-unpack-hook.sh index fca808a933ba..d15ec0412c25 100644 --- a/pkgs/development/interpreters/python/hooks/wheel-unpack-hook.sh +++ b/pkgs/development/interpreters/python/hooks/wheel-unpack-hook.sh @@ -1,14 +1,14 @@ # Setup hook to use in case a wheel is fetched echo "Sourcing wheel setup hook" -wheelUnpackPhase(){ +wheelUnpackPhase() { echo "Executing wheelUnpackPhase" runHook preUnpack mkdir -p dist cp "$src" "dist/$(stripHash "$src")" -# runHook postUnpack # Calls find...? + # runHook postUnpack # Calls find...? echo "Finished executing wheelUnpackPhase" } From 4bd389541ef50a26a7ae54d137e3a99b5f33c101 Mon Sep 17 00:00:00 2001 From: Dennis Gosnell Date: Tue, 8 Oct 2024 12:24:05 +0900 Subject: [PATCH 0134/1574] haskellPackages.cloudy: add myself as maintainer --- .../haskell-modules/configuration-hackage2nix/main.yaml | 1 + pkgs/development/haskell-modules/hackage-packages.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 15bb0c421782..e2747bd701fc 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -207,6 +207,7 @@ package-maintainers: bdesham: - pinboard-notes-backup cdepillabout: + - cloudy - password - password-instances - pretty-simple diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index 9dfd9f18197a..671688ca80da 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -68350,6 +68350,7 @@ self: { description = "CLI tool to easily spin up and control compute instances in various cloud environments"; license = lib.licenses.bsd3; mainProgram = "cloudy"; + maintainers = [ lib.maintainers.cdepillabout ]; }) {}; "cloudyfs" = callPackage From 81a10eaf1b90a7f3eb60412b72252e2a553f2c56 Mon Sep 17 00:00:00 2001 From: Dennis Gosnell Date: Tue, 8 Oct 2024 12:36:48 +0900 Subject: [PATCH 0135/1574] haskellPackages.cloudy: generate optparse-applicative completions --- .../haskell-modules/configuration-nix.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 6400e5246aea..8c9af3380c08 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -1117,6 +1117,22 @@ self: super: builtins.intersectAttrs super { (dontCheckIf (!pkgs.postgresql.doCheck)) ]; + cloudy = + pkgs.lib.pipe + super.cloudy + [ + # The code-path that generates the optparse-applicative completions uses + # the HOME directory, so that must be set in order to generate completions. + # https://github.com/cdepillabout/cloudy/issues/10 + ( overrideCabal (oldAttrs: { + postInstall = '' + export HOME=$TMPDIR + '' + (oldAttrs.postInstall or ""); + }) + ) + (self.generateOptparseApplicativeCompletions ["cloudy"]) + ]; + # Wants running postgresql database accessible over ip, so postgresqlTestHook # won't work (or would need to patch test suite). domaindriven-core = dontCheck super.domaindriven-core; From 8f41b75149f6f6d19f8fa50a6707c281d197d480 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 13 Sep 2024 15:53:08 -0400 Subject: [PATCH 0136/1574] python3Packages.elastic-transport: disable async httpbin test The async httbin test requires network access. --- pkgs/development/python-modules/elastic-transport/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/elastic-transport/default.nix b/pkgs/development/python-modules/elastic-transport/default.nix index 4f569fc29a53..566fae721cdd 100644 --- a/pkgs/development/python-modules/elastic-transport/default.nix +++ b/pkgs/development/python-modules/elastic-transport/default.nix @@ -77,6 +77,7 @@ buildPythonPackage rec { "test_debug_logging_no_body" "test_httpbin" "test_sniffed_nodes_added_to_pool" + "test_async_transport_httpbin" ]; meta = with lib; { From 4552414df11c4d1ceec30ba3a6b590ddc61382dc Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:15:41 +0200 Subject: [PATCH 0137/1574] microsoft-security-utilities-secret-masker: init at 1.0.0b3 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- .../default.nix | 35 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/development/python-modules/microsoft-security-utilities-secret-masker/default.nix diff --git a/pkgs/development/python-modules/microsoft-security-utilities-secret-masker/default.nix b/pkgs/development/python-modules/microsoft-security-utilities-secret-masker/default.nix new file mode 100644 index 000000000000..ef2012371dd3 --- /dev/null +++ b/pkgs/development/python-modules/microsoft-security-utilities-secret-masker/default.nix @@ -0,0 +1,35 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + setuptools, + wheel, +}: + +buildPythonPackage rec { + pname = "microsoft-security-utilities-secret-masker"; + version = "1.0.0b3"; + pyproject = true; + + src = fetchPypi { + pname = "microsoft_security_utilities_secret_masker"; + inherit version; + hash = "sha256-0EVIIwxno70stGCyjnH+bKwWj0jwbXapadnKR732c0M="; + }; + + build-system = [ + setuptools + wheel + ]; + + pythonImportsCheck = [ + "microsoft_security_utilities_secret_masker" + ]; + + meta = { + description = "A tool for detecting and masking secrets"; + homepage = "https://pypi.org/project/microsoft-security-utilities-secret-masker/"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 7ad8f58a3be3..81e8cfd5d835 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -7890,6 +7890,8 @@ self: super: with self; { microsoft-kiota-serialization-text = callPackage ../development/python-modules/microsoft-kiota-serialization-text { }; + microsoft-security-utilities-secret-masker = callPackage ../development/python-modules/microsoft-security-utilities-secret-masker { }; + midea-beautiful-air = callPackage ../development/python-modules/midea-beautiful-air { }; midiutil = callPackage ../development/python-modules/midiutil { }; From bf480e41d2f872c641b6743b0da009c0dfc7d081 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:30:45 +0200 Subject: [PATCH 0138/1574] azure-cli: 2.64.0 -> 2.65.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/package.nix | 4 ++-- pkgs/by-name/az/azure-cli/python-packages.nix | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/package.nix b/pkgs/by-name/az/azure-cli/package.nix index d9bfd888dd7b..f81ddf69c130 100644 --- a/pkgs/by-name/az/azure-cli/package.nix +++ b/pkgs/by-name/az/azure-cli/package.nix @@ -21,14 +21,14 @@ }: let - version = "2.64.0"; + version = "2.65.0"; src = fetchFromGitHub { name = "azure-cli-${version}-src"; owner = "Azure"; repo = "azure-cli"; rev = "azure-cli-${version}"; - hash = "sha256-1FnrUvRpAkZ0nAxen3seam2S49tBkK5N37ZD99OkvB0="; + hash = "sha256-IeiAB0AI6KNpXwx2Iv55LBARcwemakbblFlbfLheuGE="; }; # put packages that needs to be overridden in the py package scope diff --git a/pkgs/by-name/az/azure-cli/python-packages.nix b/pkgs/by-name/az/azure-cli/python-packages.nix index 5bde74450419..9b2185bbb22c 100644 --- a/pkgs/by-name/az/azure-cli/python-packages.nix +++ b/pkgs/by-name/az/azure-cli/python-packages.nix @@ -54,6 +54,7 @@ let humanfriendly jmespath knack + microsoft-security-utilities-secret-masker msal-extensions msal msrestazure From 0fdffb806c9ffc54dd77889fe205715328ee040e Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:32:25 +0200 Subject: [PATCH 0139/1574] azure-cli-extensions.alertsmanagement: 0.2.3 -> 1.0.0b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 9f80146842de..e4927a459b52 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -80,9 +80,9 @@ }; alertsmanagement = mkAzExtension rec { pname = "alertsmanagement"; - version = "0.2.3"; + version = "1.0.0b1"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/alertsmanagement-${version}-py3-none-any.whl"; - sha256 = "b45a5752924ab1205ff5862f03a4a465eccb4dd8e79900023498d674aa68665b"; + sha256 = "e1e15aeff1ab9b25fb820b914e602ce84a7d00e5382eb07d413f1492d90b09d1"; description = "Microsoft Azure Command-Line Tools AlertsManagementClient Extension"; }; amg = mkAzExtension rec { From d9e74eef0dd418eb2470fe7218b7e93cef065193 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:34:38 +0200 Subject: [PATCH 0140/1574] azure-cli-extensions.baremetal-infrastructure: 3.0.0b1 -> 3.0.0b2 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index e4927a459b52..c1236b154266 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -164,9 +164,9 @@ }; baremetal-infrastructure = mkAzExtension rec { pname = "baremetal-infrastructure"; - version = "3.0.0b1"; + version = "3.0.0b2"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/baremetal_infrastructure-${version}-py3-none-any.whl"; - sha256 = "83ff3e4540f522a5f3578a923155715160e90a15a8d919a2e5569c08f1295a2f"; + sha256 = "0e5843e295a27058262e945febc43179ce173ac27ebcfe4456b466b7acb9c220"; description = "Microsoft Azure Command-Line Tools BaremetalInfrastructure Extension"; }; bastion = mkAzExtension rec { From ae98dba2ab29111af7c7766c9c09ade19d6a7af8 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:35:13 +0200 Subject: [PATCH 0141/1574] azure-cli-extensions.durabletask: init at 1.0.0.b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index c1236b154266..d15b8be0ca2c 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -386,6 +386,13 @@ sha256 = "1c4bb8216e509c2f08fa75c45930ec377768326f30cb9ab125842aa9352c6e2e"; description = "Microsoft Azure Command-Line Tools DnsResolverManagementClient Extension"; }; + durabletask = mkAzExtension rec { + pname = "durabletask"; + version = "1.0.0b1"; + url = "https://azcliprod.blob.core.windows.net/cli-extensions/durabletask-${version}-py3-none-any.whl"; + sha256 = "d7a929b294928df79d8312fbf6af72c5d928e304c4a7b37daf3ff772667dfb25"; + description = "Microsoft Azure Command-Line Tools Durabletask Extension"; + }; dynatrace = mkAzExtension rec { pname = "dynatrace"; version = "0.1.0"; From eb14449e8f394edc7f9a57e376fa73592b843afa Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:36:02 +0200 Subject: [PATCH 0142/1574] azure-cli-extensions.log-analytics: 0.2.2 -> 1.0.0b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index d15b8be0ca2c..35e18835cd71 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -619,9 +619,9 @@ }; log-analytics = mkAzExtension rec { pname = "log-analytics"; - version = "0.2.2"; - url = "https://azurecliprod.blob.core.windows.net/cli-extensions/log_analytics-${version}-py2.py3-none-any.whl"; - sha256 = "c04c42a26d50db82d14f76e209184b18d4cce17b458817ac607e3ff975641eb2"; + version = "1.0.0b1"; + url = "https://azcliprod.blob.core.windows.net/cli-extensions/log_analytics-${version}-py2.py3-none-any.whl"; + sha256 = "ccd36a8ca6979c549db7d7fd78009907e9e7bc2b09437885dbdd8b107cb15b66"; description = "Support for Azure Log Analytics query capabilities"; }; log-analytics-solution = mkAzExtension rec { From 20fa917956c60c9dc7e9e88905760ac9f5bfbc50 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:36:49 +0200 Subject: [PATCH 0143/1574] azure-cli-extensions.microsoft-fabric: init at 1.0.0b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 35e18835cd71..6d8aa70fc1bb 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -680,6 +680,13 @@ sha256 = "062ad026d9eaf791b5928c4fb793148d40c6c297cee32f175cd3a155eb24d93f"; description = "Microsoft Azure Command-Line Tools Mdp Extension"; }; + microsoft-fabric = mkAzExtension rec { + pname = "microsoft-fabric"; + version = "1.0.0b1"; + url = "https://azcliprod.blob.core.windows.net/cli-extensions/microsoft_fabric-${version}-py3-none-any.whl"; + sha256 = "8ba450a5a3daafa8b9b6b6e9ee8224f468fd972332e905000f2acc7ff00cd9bb"; + description = "Microsoft Azure Command-Line Tools Microsoft Fabric Extension"; + }; mixed-reality = mkAzExtension rec { pname = "mixed-reality"; version = "0.0.5"; From 2b2b2254aa26c2b5b26d72363bdb7b44a54b9945 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:37:41 +0200 Subject: [PATCH 0144/1574] azure-cli-extensions.monitor-pipeline-group: init at 1.0.0b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 6d8aa70fc1bb..31db9007d68c 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -708,6 +708,13 @@ sha256 = "3151a341845d053a4be45d9b7c04e1e15b88503ab6b110163a12b9aee6fd3cd9"; description = "Microsoft Azure Command-Line Tools MonitorClient Extension"; }; + monitor-pipeline-group = mkAzExtension rec { + pname = "monitor-pipeline-group"; + version = "1.0.0b1"; + url = "https://azcliprod.blob.core.windows.net/cli-extensions/monitor_pipeline_group-${version}-py3-none-any.whl"; + sha256 = "cf31f9e3fa9458716f0c3d1c15698ef79b707c5bd7d146773d2b2afe42e64c29"; + description = "Microsoft Azure Command-Line Tools MonitorPipelineGroup Extension"; + }; network-analytics = mkAzExtension rec { pname = "network-analytics"; version = "1.0.0b1"; From 04f2f61a53bd83529b7cefe151951f7902addfff Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:38:51 +0200 Subject: [PATCH 0145/1574] azure-cli-extensions.multicloud-connector: init at 1.0.0b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 31db9007d68c..ad8f1d7b4e86 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -715,6 +715,13 @@ sha256 = "cf31f9e3fa9458716f0c3d1c15698ef79b707c5bd7d146773d2b2afe42e64c29"; description = "Microsoft Azure Command-Line Tools MonitorPipelineGroup Extension"; }; + multicloud-connector = mkAzExtension rec { + pname = "multicloud-connector"; + version = "1.0.0b1"; + url = "https://azcliprod.blob.core.windows.net/cli-extensions/multicloud_connector-${version}-py3-none-any.whl"; + sha256 = "ad84350162ae877287f8a151920b3c4bdc6375dd419dd6101c2702db606a5d19"; + description = "Microsoft Azure Command-Line Tools MulticloudConnector Extension"; + }; network-analytics = mkAzExtension rec { pname = "network-analytics"; version = "1.0.0b1"; From a0b604cc4d5fe16ba1a88134ca9ee5e20473a6da Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:39:49 +0200 Subject: [PATCH 0146/1574] azure-cli-extensions.terraform: init at 1.0.0b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index ad8f1d7b4e86..eb7889e2f788 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -1016,6 +1016,13 @@ sha256 = "5dde97f8fb12eaa258530f68ec2cae00a957f30479835e9f5ed057940312741a"; description = "Microsoft Azure Command-Line Tools Support Extension"; }; + terraform = mkAzExtension rec { + pname = "terraform"; + version = "1.0.0b1"; + url = "https://azcliprod.blob.core.windows.net/cli-extensions/terraform-${version}-py3-none-any.whl"; + sha256 = "80fde2b896b707fd83f83821809682079bd3bb032aa9cb04ba0d2595b3673f27"; + description = "Microsoft Azure Command-Line Tools Terraform Extension"; + }; timeseriesinsights = mkAzExtension rec { pname = "timeseriesinsights"; version = "1.0.0b1"; From 0f67dc7e4ff5a3062d31da014895f11897399573 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:41:03 +0200 Subject: [PATCH 0147/1574] azure-cli-extensions.virtual-network-tap: 0.1.0 -> 1.0.0b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index eb7889e2f788..69cec991e5b0 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -1053,9 +1053,9 @@ }; virtual-network-tap = mkAzExtension rec { pname = "virtual-network-tap"; - version = "0.1.0"; - url = "https://azurecliprod.blob.core.windows.net/cli-extensions/virtual_network_tap-${version}-py2.py3-none-any.whl"; - sha256 = "7e3f634f8eb701cf6fef504159785bc90e6f5bd2482e459469dd9ab30601aa35"; + version = "1.0.0b1"; + url = "https://azcliprod.blob.core.windows.net/cli-extensions/virtual_network_tap-${version}-py2.py3-none-any.whl"; + sha256 = "ee5f6dcfc09fc09e0c3bbd386b4d3bc6cc1f8a3dde8ed550804f43ed4c3cb7ba"; description = "Manage virtual network taps (VTAP)"; }; virtual-wan = mkAzExtension rec { From 2b365b3fda41b528bced944d747d82b1f16b9acd Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:08 +0200 Subject: [PATCH 0148/1574] azure-cli-extensions.virtual-wan: 1.0.0 -> 1.0.1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 69cec991e5b0..fc0f3296ea8b 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -1060,9 +1060,9 @@ }; virtual-wan = mkAzExtension rec { pname = "virtual-wan"; - version = "1.0.0"; + version = "1.0.1"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/virtual_wan-${version}-py2.py3-none-any.whl"; - sha256 = "0ef7b4bf9ffd0aa1ad5c50e15a343276636bcfe0296e52d2ee5f0b75ce70633d"; + sha256 = "2db6c253d43862d06a4525073d67b61f1d34b7c8832162bd3b0bfffd24b9ada6"; description = "Manage virtual WAN, hubs, VPN gateways and VPN sites"; }; vmware = mkAzExtension rec { From 31ad874f20cea674a9a26047fa8530833689e8bf Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:38 +0200 Subject: [PATCH 0149/1574] azure-cli-extensions.aks-preview: 8.0.0b1 -> 9.0.0b6 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index fc0f3296ea8b..1f9cf7540c06 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -59,9 +59,9 @@ }; aks-preview = mkAzExtension rec { pname = "aks-preview"; - version = "8.0.0b1"; + version = "9.0.0b6"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/aks_preview-${version}-py2.py3-none-any.whl"; - sha256 = "500a670e0f4cd8ef9399a0928fbcef6440a68cdc2978c62db911d1585f351b75"; + sha256 = "36a215d3a2fdb54b8a977ecab330c3f73c32746368c977364e11fd5cb8e089a4"; description = "Provides a preview for upcoming AKS features"; }; akshybrid = mkAzExtension rec { From 55daed0ff98e37344380edc76ab5d299e2285c09 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:39 +0200 Subject: [PATCH 0150/1574] azure-cli-extensions.amg: 2.2.0 -> 2.4.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 1f9cf7540c06..45adc874ed38 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -87,9 +87,9 @@ }; amg = mkAzExtension rec { pname = "amg"; - version = "2.2.0"; + version = "2.4.0"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/amg-${version}-py3-none-any.whl"; - sha256 = "8d832463a35329e61840bce5fe2c3ba214f8e800cc38140fe58dc2bf13ffeb90"; + sha256 = "624ca8c847ce93ecc839ee428115d09b263c4ece7c52da0abef38893645111d6"; description = "Microsoft Azure Command-Line Tools Azure Managed Grafana Extension"; }; amlfs = mkAzExtension rec { From 381ac8f5f3e21f22e07ac6aaf430548724c868a6 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:39 +0200 Subject: [PATCH 0151/1574] azure-cli-extensions.azurelargeinstance: 1.0.0b3 -> 1.0.0b4 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 45adc874ed38..822b0245bd90 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -150,9 +150,9 @@ }; azurelargeinstance = mkAzExtension rec { pname = "azurelargeinstance"; - version = "1.0.0b3"; + version = "1.0.0b4"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/azurelargeinstance-${version}-py3-none-any.whl"; - sha256 = "093a2fa900e3df53f8bf15b335156058333efe0eff9584a11db4bac0bccc7b1d"; + sha256 = "6fee478bd919922a0532573fdea3b5422925d374ba6649ea015d4d33941e819a"; description = "Microsoft Azure Command-Line Tools Azurelargeinstance Extension"; }; azurestackhci = mkAzExtension rec { From 49a25fb766d60b24b0cd7a1855f7fb4593d6b337 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:39 +0200 Subject: [PATCH 0152/1574] azure-cli-extensions.bastion: 1.1.0 -> 1.3.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 822b0245bd90..2264225f8704 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -171,9 +171,9 @@ }; bastion = mkAzExtension rec { pname = "bastion"; - version = "1.1.0"; + version = "1.3.0"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/bastion-${version}-py3-none-any.whl"; - sha256 = "d90bc404d2f9d22435a2bd34bd1fd6094d71d6f1719763c72ee6e4835ec8a99d"; + sha256 = "151ab25d4dcde10b46c4693cefdaf1d0d5841e15cfe3ec64c089aaaf55e6c8c0"; description = "Microsoft Azure Command-Line Tools Bastion Extension"; }; billing-benefits = mkAzExtension rec { From ea726bb97778a197f05d1137e861a905a7bbdd52 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:40 +0200 Subject: [PATCH 0153/1574] azure-cli-extensions.connectedvmware: 1.1.1 -> 1.2.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 2264225f8704..2ce54269005f 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -234,9 +234,9 @@ }; connectedvmware = mkAzExtension rec { pname = "connectedvmware"; - version = "1.1.1"; + version = "1.2.0"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/connectedvmware-${version}-py2.py3-none-any.whl"; - sha256 = "28ef4a31c805d52aa16e749ec1382591b3089e970d8741deaf401a86c4e5e6ad"; + sha256 = "b731a821c609aae8bfab7e0470b342b9179e7e0c65482f4a432a60d87a4c395f"; description = "Microsoft Azure Command-Line Tools Connectedvmware Extension"; }; connection-monitor-preview = mkAzExtension rec { From 204181167aed4853848aa17a4ee610c4d031402f Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:40 +0200 Subject: [PATCH 0154/1574] azure-cli-extensions.costmanagement: 0.3.0 -> 1.0.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 2ce54269005f..c41cc4ffa61e 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -255,9 +255,9 @@ }; costmanagement = mkAzExtension rec { pname = "costmanagement"; - version = "0.3.0"; + version = "1.0.0"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/costmanagement-${version}-py3-none-any.whl"; - sha256 = "5661a2082ecca000b0c764dc92585e2aa601ccd5eeeb296397533cf4da814cf6"; + sha256 = "6e5e053d05bad6ad6305bd024f51e355e60fde8bb6a03350dfd81c25437d2e45"; description = "Microsoft Azure Command-Line Tools CostManagementClient Extension"; }; csvmware = mkAzExtension rec { From 6911ffff92be9c832cf4124c4916206b82b78ee7 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:40 +0200 Subject: [PATCH 0155/1574] azure-cli-extensions.databricks: 1.0.0 -> 1.0.1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index c41cc4ffa61e..bf3924347612 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -290,9 +290,9 @@ }; databricks = mkAzExtension rec { pname = "databricks"; - version = "1.0.0"; + version = "1.0.1"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/databricks-${version}-py3-none-any.whl"; - sha256 = "a23ded367e80240eea828a3234801d4d989539ae4a5ecf246bfc6acb054a2544"; + sha256 = "55165d7435cd7a0dc87587e82fc202d792a5f28c9c44398655b0a4770d038c30"; description = "Microsoft Azure Command-Line Tools DatabricksClient Extension"; }; datadog = mkAzExtension rec { From c573227cd382297472c33ce43fde7d221a4ff445 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:40 +0200 Subject: [PATCH 0156/1574] azure-cli-extensions.datamigration: 1.0.0b1 -> 1.0.0b2 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index bf3924347612..2780c0abc128 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -311,9 +311,9 @@ }; datamigration = mkAzExtension rec { pname = "datamigration"; - version = "1.0.0b1"; + version = "1.0.0b2"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/datamigration-${version}-py3-none-any.whl"; - sha256 = "9d1ac8c7046e23387696561747be2e8f62e879a4a305f8b20ccd19460a29db0d"; + sha256 = "8901b5664a95e665781698bc02ee94b4297c82ac9fdfab99dd4f13bac1c0923e"; description = "Microsoft Azure Command-Line Tools DataMigrationManagementClient Extension"; }; dataprotection = mkAzExtension rec { From dc4ca76f506ee0784b744f32b639ee53c5358241 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:41 +0200 Subject: [PATCH 0157/1574] azure-cli-extensions.elastic: 1.0.0b2 -> 1.0.0b3 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 2780c0abc128..0069fa01eef1 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -416,9 +416,9 @@ }; elastic = mkAzExtension rec { pname = "elastic"; - version = "1.0.0b2"; + version = "1.0.0b3"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/elastic-${version}-py3-none-any.whl"; - sha256 = "1d99dbcc10b99185b4cd9b64a8835d80b424226e5cf5d40b3e3ae1d435532657"; + sha256 = "2f3ae430d3c34dd4007c8c5a8374963568cc23558872464242811cc5a26e2de7"; description = "Microsoft Azure Command-Line Tools MicrosoftElastic Extension"; }; elastic-san = mkAzExtension rec { From b1a12ff6f42523ccf2eaf63254cc7ea65f45a4ff Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:41 +0200 Subject: [PATCH 0158/1574] azure-cli-extensions.fleet: 1.2.1 -> 1.4.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 0069fa01eef1..ae442a516818 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -451,9 +451,9 @@ }; fleet = mkAzExtension rec { pname = "fleet"; - version = "1.2.1"; + version = "1.4.0"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/fleet-${version}-py3-none-any.whl"; - sha256 = "d7e3525249c0c4e5ae0988500e36847b4363d734f7b16e7a0f9a9e54623081ae"; + sha256 = "1d83a9000c879ff1a9a2bff2ea23183ab61e342713dfedb662345593b1658438"; description = "Microsoft Azure Command-Line Tools Fleet Extension"; }; fluid-relay = mkAzExtension rec { From 104f42e2aed047c5ad590a3c59901309d774304d Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:41 +0200 Subject: [PATCH 0159/1574] azure-cli-extensions.import-export: 0.1.1 -> 1.0.0b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index ae442a516818..8809257f4c33 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -563,9 +563,9 @@ }; import-export = mkAzExtension rec { pname = "import-export"; - version = "0.1.1"; - url = "https://azurecliprod.blob.core.windows.net/cli-extensions/import_export-${version}-py3-none-any.whl"; - sha256 = "0680948362e12138c9582e68e471533482749bd660bfe3c8c2a4d856e90927b0"; + version = "1.0.0b1"; + url = "https://azcliprod.blob.core.windows.net/cli-extensions/import_export-${version}-py3-none-any.whl"; + sha256 = "c4e36f1003031a67615a45cd12592bf5c11c54b7bd957f6c2af90efcb5c517b2"; description = "Microsoft Azure Command-Line Tools StorageImportExport Extension"; }; informatica = mkAzExtension rec { From eab3e7186ecf9d3bc35a5161deb6c13486832d34 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:42 +0200 Subject: [PATCH 0160/1574] azure-cli-extensions.internet-analyzer: 0.1.0rc6 -> 1.0.0b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 8809257f4c33..a36c6d10bd95 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -584,9 +584,9 @@ }; internet-analyzer = mkAzExtension rec { pname = "internet-analyzer"; - version = "0.1.0rc6"; + version = "1.0.0b1"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/internet_analyzer-${version}-py2.py3-none-any.whl"; - sha256 = "0708d9f598d1618d138eebcf18354d97c7b3a2c90570959df077e04d419d32c3"; + sha256 = "4564881a7c90bacfd881c629a4182398007c886d099ea88db97e1ff10053a5c4"; description = "Microsoft Azure Command-Line Tools Internet Analyzer Extension"; }; ip-group = mkAzExtension rec { From faa6e55232e2bf06013072513a456a3ed820030f Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:42 +0200 Subject: [PATCH 0161/1574] azure-cli-extensions.k8s-runtime: 1.0.3 -> 1.0.4 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index a36c6d10bd95..c025160afbad 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -605,9 +605,9 @@ }; k8s-runtime = mkAzExtension rec { pname = "k8s-runtime"; - version = "1.0.3"; + version = "1.0.4"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/k8s_runtime-${version}-py3-none-any.whl"; - sha256 = "133dd153979c74d37aa25956ed8a9aa741c334929848cd67c26f268332759d40"; + sha256 = "aee2d3008d818d78342149e6f1d2c7922abbbe43f323d51e6cd58c73b1c67b3a"; description = "Microsoft Azure Command-Line Tools K8sRuntime Extension"; }; kusto = mkAzExtension rec { From 96344e2bfa446adbb2896dcaec87dbd3874f4a44 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:42 +0200 Subject: [PATCH 0162/1574] azure-cli-extensions.log-analytics-solution: 1.0.0 -> 1.0.1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index c025160afbad..564b400ddde5 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -626,9 +626,9 @@ }; log-analytics-solution = mkAzExtension rec { pname = "log-analytics-solution"; - version = "1.0.0"; + version = "1.0.1"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/log_analytics_solution-${version}-py2.py3-none-any.whl"; - sha256 = "c0a4252da4c29032c4e956b768860529509e88a1ecef7f3a3189cb701a305c6b"; + sha256 = "7e10443de862cd0c19090b0a0dae5e9942e8b48c20e3a9c3305778daa756ea96"; description = "Support for Azure Log Analytics Solution"; }; logic = mkAzExtension rec { From 670c535a2d84d3472665b3fd8dc35fe00a6dcd96 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:42 +0200 Subject: [PATCH 0163/1574] azure-cli-extensions.networkcloud: 2.0.0b2 -> 2.0.0b4 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 564b400ddde5..76f0330021af 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -731,10 +731,10 @@ }; networkcloud = mkAzExtension rec { pname = "networkcloud"; - version = "2.0.0b2"; + version = "2.0.0b4"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/networkcloud-${version}-py3-none-any.whl"; - sha256 = "28c43560516e254ab60708c0ac8cf868795ce76e4aa9da1548584b22331af467"; - description = "Support for Azure Operator Nexus network cloud commands based on 2023-10-01-preview API version"; + sha256 = "06707a008405739a5639230f3fd094031084a69f867648503aed4039d118ad9f"; + description = "Support for Azure Operator Nexus network cloud commands based on 2024-07-01 API version"; }; new-relic = mkAzExtension rec { pname = "new-relic"; From 0d776e9138e6c9245ef8e03ef348e550a1ad9a58 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:43 +0200 Subject: [PATCH 0164/1574] azure-cli-extensions.nginx: 2.0.0b5 -> 2.0.0b6 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 76f0330021af..37353311c580 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -752,9 +752,9 @@ }; nginx = mkAzExtension rec { pname = "nginx"; - version = "2.0.0b5"; + version = "2.0.0b6"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/nginx-${version}-py2.py3-none-any.whl"; - sha256 = "92e0b817bb863173da129abd3c326e058df3afce0fbb9851e6ff8ccea3c04773"; + sha256 = "d94f77c12ce6945c823f7efa84238e398b5aec878156bbdf3112f0def1eb8960"; description = "Microsoft Azure Command-Line Tools Nginx Extension"; }; notification-hub = mkAzExtension rec { From b2d25a15a41b29c0e0a52c9a7e7c67497284028b Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:43 +0200 Subject: [PATCH 0165/1574] azure-cli-extensions.peering: 0.2.1 -> 1.0.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 37353311c580..2dd1fdddda53 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -801,9 +801,9 @@ }; peering = mkAzExtension rec { pname = "peering"; - version = "0.2.1"; + version = "1.0.0"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/peering-${version}-py3-none-any.whl"; - sha256 = "b068c12b47f17304af51431a2ae975339b7d4601a180e83916efae73d7c42600"; + sha256 = "fe4e3ba85c1f65966a059291e46ebeb7c956f28da2b15b541b0492765b623992"; description = "Microsoft Azure Command-Line Tools PeeringManagementClient Extension"; }; portal = mkAzExtension rec { From 0fb3dae51e4baa144354557b738353b12647592f Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:43 +0200 Subject: [PATCH 0166/1574] azure-cli-extensions.redisenterprise: 1.0.0 -> 1.2.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 2dd1fdddda53..4f590e83c0ef 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -850,9 +850,9 @@ }; redisenterprise = mkAzExtension rec { pname = "redisenterprise"; - version = "1.0.0"; + version = "1.2.0"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/redisenterprise-${version}-py3-none-any.whl"; - sha256 = "e43737fefbb1205970254f369b0f0c33fbfd5b82d64eb2025228eb3a07bed3e7"; + sha256 = "6e776d464afaaf66456d7b8e6d36ab1a12f19054617479ea8f13633d3a49ffac"; description = "Microsoft Azure Command-Line Tools RedisEnterprise Extension"; }; reservation = mkAzExtension rec { From 001066ee9cca296ef7c38a063d68551268b039ed Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:44 +0200 Subject: [PATCH 0167/1574] azure-cli-extensions.spring: 1.25.0 -> 1.25.1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 4f590e83c0ef..9990ba981fc2 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -927,9 +927,9 @@ }; spring = mkAzExtension rec { pname = "spring"; - version = "1.25.0"; + version = "1.25.1"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/spring-${version}-py3-none-any.whl"; - sha256 = "2b9cf4ae2fd52b5f644bfefba69ed5e574404597e3cab0e3a9b8e44e7b03363f"; + sha256 = "9eb8a6f2f77b19c9f9809526bb701076590ddb35f6b2ec431ce318b96cc40733"; description = "Microsoft Azure Command-Line Tools spring Extension"; }; spring-cloud = mkAzExtension rec { From 98886e06a36c7f16c166dfe3e9812c735a403791 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:44 +0200 Subject: [PATCH 0168/1574] azure-cli-extensions.stack-hci-vm: 1.1.20 -> 1.3.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 9990ba981fc2..cd17675ec424 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -948,9 +948,9 @@ }; stack-hci-vm = mkAzExtension rec { pname = "stack-hci-vm"; - version = "1.1.20"; + version = "1.3.0"; url = "https://hciarcvmsstorage.z13.web.core.windows.net/cli-extensions/stack_hci_vm-${version}-py3-none-any.whl"; - sha256 = "7de544b8058ab11d9713b551db65aeaec6b8e5832cdadbbf26ccb7a4a282db6b"; + sha256 = "19553e50d59cafcc19166be7e91be43c725f7abae1d8338914f8e6043853fc09"; description = "Microsoft Azure Command-Line Tools Stack-HCi-VM Extension"; }; standbypool = mkAzExtension rec { From 9c8159a0fff46c1b96adb7df837d4090d3b3d07d Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:44 +0200 Subject: [PATCH 0169/1574] azure-cli-extensions.storage-blob-preview: 0.7.2 -> 1.0.0b1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index cd17675ec424..98a93cdfb7b0 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -976,9 +976,9 @@ }; storage-blob-preview = mkAzExtension rec { pname = "storage-blob-preview"; - version = "0.7.2"; + version = "1.0.0b1"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/storage_blob_preview-${version}-py2.py3-none-any.whl"; - sha256 = "002b7779f4c6531fdb714f77bcea5d3d96007a7ff5b86869f8e56aad98298b23"; + sha256 = "1ffe451e41657c8f28a22abee387371d11cedd80d2e52cfcbed0adac0a917b41"; description = "Microsoft Azure Command-Line Tools Storage-blob-preview Extension"; }; storage-mover = mkAzExtension rec { From 6995a60d4107dcac93462d2fb5c1a4450484f403 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:44 +0200 Subject: [PATCH 0170/1574] azure-cli-extensions.storagesync: 1.0.0 -> 1.0.1 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 98a93cdfb7b0..494fe2f09867 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -990,9 +990,9 @@ }; storagesync = mkAzExtension rec { pname = "storagesync"; - version = "1.0.0"; + version = "1.0.1"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/storagesync-${version}-py2.py3-none-any.whl"; - sha256 = "1f6997e186199058e60d8fdc020c407d4f92d8e78286189c1887e57a371b43c1"; + sha256 = "7f2ba91a7a44741f4384b44ba7cea73a8a03b5d385b43404cb4951dd2ea5dc5a"; description = "Microsoft Azure Command-Line Tools MicrosoftStorageSync Extension"; }; stream-analytics = mkAzExtension rec { From ca4f272ed4bd3f415c0d4883dd833ff364555d46 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:45 +0200 Subject: [PATCH 0171/1574] azure-cli-extensions.virtual-network-manager: 1.2.0 -> 1.3.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 494fe2f09867..821689917f45 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -1046,9 +1046,9 @@ }; virtual-network-manager = mkAzExtension rec { pname = "virtual-network-manager"; - version = "1.2.0"; + version = "1.3.0"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/virtual_network_manager-${version}-py3-none-any.whl"; - sha256 = "7f9f239fd7904645beacc2b738dd4660fb36779966e9b2331c43826e37564793"; + sha256 = "f16f992f98fd03c01dcef8a40f9b84de2367ff9e8850b48663a9bb1cb55b7bd4"; description = "Microsoft Azure Command-Line Tools NetworkManagementClient Extension"; }; virtual-network-tap = mkAzExtension rec { From 0085947b51a9f4d453750ea348271641010622a5 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:45 +0200 Subject: [PATCH 0172/1574] azure-cli-extensions.vmware: 7.0.0 -> 7.1.0 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 821689917f45..348105f2ed14 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -1067,9 +1067,9 @@ }; vmware = mkAzExtension rec { pname = "vmware"; - version = "7.0.0"; + version = "7.1.0"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/vmware-${version}-py2.py3-none-any.whl"; - sha256 = "e0fadce4fc02996443a8e1673d19ebd24383c584ca89bd396ce963e85865ac0d"; + sha256 = "53dc8b1d803cd784e668c4d4d630dec20390406af46266df0860f548a5c21f9d"; description = "Azure VMware Solution commands"; }; webapp = mkAzExtension rec { From 4d30e3caa053bbdb925c3f39382b252344dbf0c4 Mon Sep 17 00:00:00 2001 From: Paul Meyer <49727155+katexochen@users.noreply.github.com> Date: Tue, 8 Oct 2024 08:42:45 +0200 Subject: [PATCH 0173/1574] azure-cli-extensions.workloads: 1.1.0b2 -> 1.1.0b3 Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com> --- pkgs/by-name/az/azure-cli/extensions-generated.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/az/azure-cli/extensions-generated.nix b/pkgs/by-name/az/azure-cli/extensions-generated.nix index 348105f2ed14..9dbfdb00dc95 100644 --- a/pkgs/by-name/az/azure-cli/extensions-generated.nix +++ b/pkgs/by-name/az/azure-cli/extensions-generated.nix @@ -1081,9 +1081,9 @@ }; workloads = mkAzExtension rec { pname = "workloads"; - version = "1.1.0b2"; + version = "1.1.0b3"; url = "https://azcliprod.blob.core.windows.net/cli-extensions/workloads-${version}-py3-none-any.whl"; - sha256 = "716ec3db6d1d637da3d0255e83406aed3acd26b83405bbcadc4d30e1110beea3"; + sha256 = "a7373b2d3766c43b3caeafc0eddbb492429750b62c78f767760b9b0b42363206"; description = "Microsoft Azure Command-Line Tools Workloads Extension"; }; From 66f78a930360b52e5d3ac6db9112eea3fcfbbc32 Mon Sep 17 00:00:00 2001 From: Jared Baur Date: Tue, 8 Oct 2024 08:54:48 -0700 Subject: [PATCH 0174/1574] systemd: 256.6 -> 256.7 --- pkgs/os-specific/linux/systemd/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/linux/systemd/default.nix b/pkgs/os-specific/linux/systemd/default.nix index 4b1d408c19bc..0ca9a67d6418 100644 --- a/pkgs/os-specific/linux/systemd/default.nix +++ b/pkgs/os-specific/linux/systemd/default.nix @@ -184,7 +184,7 @@ assert withBootloader -> withEfi; let wantCurl = withRemote || withImportd; wantGcrypt = withResolved || withImportd; - version = "256.6"; + version = "256.7"; # Use the command below to update `releaseTimestamp` on every (major) version # change. More details in the commentary at mesonFlags. @@ -202,7 +202,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "systemd"; repo = "systemd"; rev = "v${version}"; - hash = "sha256-HQ8kO7Y23RZJnT9XaiclVSSNRW/ApA0D5QbMHQkN5FM="; + hash = "sha256-x214fOhEWLoiexRrN4lGx4Pqx2+jYN94w9GzntVRcZ4="; }; # On major changes, or when otherwise required, you *must* : From cbabc6874d1bfd0d8851318787771606e6cb271a Mon Sep 17 00:00:00 2001 From: Gavin John Date: Tue, 8 Oct 2024 10:15:42 -0700 Subject: [PATCH 0175/1574] srcOnly: Fix bug introduced by rewrite --- pkgs/build-support/src-only/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/build-support/src-only/default.nix b/pkgs/build-support/src-only/default.nix index 86fdda489077..d43bada43794 100644 --- a/pkgs/build-support/src-only/default.nix +++ b/pkgs/build-support/src-only/default.nix @@ -45,6 +45,8 @@ let // { name = "${name}-source"; + outputs = [ "out" ]; + phases = [ "unpackPhase" "patchPhase" From d0b808a4a33e01d005db50629db611729d3cef59 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:05:51 +0300 Subject: [PATCH 0176/1574] glslang: 14.3.0 -> 15.0.0 Diff: https://github.com/KhronosGroup/glslang/compare/14.3.0...15.0.0 --- pkgs/development/compilers/glslang/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/glslang/default.nix b/pkgs/development/compilers/glslang/default.nix index 5c39c5d5c1f0..e54d8711e65b 100644 --- a/pkgs/development/compilers/glslang/default.nix +++ b/pkgs/development/compilers/glslang/default.nix @@ -9,13 +9,13 @@ }: stdenv.mkDerivation rec { pname = "glslang"; - version = "14.3.0"; + version = "15.0.0"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "glslang"; rev = version; - hash = "sha256-slKBFq6NyWHQmJq/YR3LmbGnHyZgRg0hej90tZDOGzA="; + hash = "sha256-QXNecJ6SDeWpRjzHRTdPJHob1H3q2HZmWuL2zBt2Tlw="; }; outputs = [ "bin" "out" "dev" ]; From b03d75a91d7430995d35c4967dc33087e9c4f753 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:05:54 +0300 Subject: [PATCH 0177/1574] vulkan-headers: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/KhronosGroup/Vulkan-Headers/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 --- pkgs/development/libraries/vulkan-headers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/vulkan-headers/default.nix b/pkgs/development/libraries/vulkan-headers/default.nix index 647fac3bb552..d48dc790424a 100644 --- a/pkgs/development/libraries/vulkan-headers/default.nix +++ b/pkgs/development/libraries/vulkan-headers/default.nix @@ -1,7 +1,7 @@ { lib, stdenv, fetchFromGitHub, cmake, ninja }: stdenv.mkDerivation rec { pname = "vulkan-headers"; - version = "1.3.290.0"; + version = "1.3.296.0"; # Adding `ninja` here to enable Ninja backend. Otherwise on gcc-14 or # later the build fails as: @@ -15,7 +15,7 @@ stdenv.mkDerivation rec { owner = "KhronosGroup"; repo = "Vulkan-Headers"; rev = "vulkan-sdk-${version}"; - hash = "sha256-goxA3Wg3u5hNCz54tWMJnFaS0JGVjphy14Ng/sAK/EM="; + hash = "sha256-u/40rOQyYbQza0aYbechLdKhYM1DgoMKkxauW2zZ/w0="; }; passthru.updateScript = ./update.sh; From 5130e124c32eb28e117947590aabf9c1f1729fa9 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:05:57 +0300 Subject: [PATCH 0178/1574] vulkan-loader: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/KhronosGroup/Vulkan-Loader/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 --- pkgs/development/libraries/vulkan-loader/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/vulkan-loader/default.nix b/pkgs/development/libraries/vulkan-loader/default.nix index 3c002d197ff5..0b94d331b40f 100644 --- a/pkgs/development/libraries/vulkan-loader/default.nix +++ b/pkgs/development/libraries/vulkan-loader/default.nix @@ -4,13 +4,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "vulkan-loader"; - version = "1.3.290.0"; + version = "1.3.296.0"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "Vulkan-Loader"; rev = "vulkan-sdk-${finalAttrs.version}"; - hash = "sha256-z26xvp7bKaOQAXF+/Sk24Syuw3N9QXc6sk2vlQwceJ8="; + hash = "sha256-6GHZUiYL3gDWN61SaLiD/3xXSoQb1rx6U5eu1cl8ZwM="; }; patches = [ ./fix-pkgconfig.patch ] From 810f4a8c308bda5faba5f8f63d8aff56fbd94fbd Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:06:01 +0300 Subject: [PATCH 0179/1574] vulkan-validation-layers: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/KhronosGroup/Vulkan-ValidationLayers/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 --- pkgs/development/tools/vulkan-validation-layers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/vulkan-validation-layers/default.nix b/pkgs/development/tools/vulkan-validation-layers/default.nix index c5331ea2475f..ccf00646f57f 100644 --- a/pkgs/development/tools/vulkan-validation-layers/default.nix +++ b/pkgs/development/tools/vulkan-validation-layers/default.nix @@ -24,13 +24,13 @@ let in stdenv.mkDerivation rec { pname = "vulkan-validation-layers"; - version = "1.3.290.0"; + version = "1.3.296.0"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "Vulkan-ValidationLayers"; rev = "vulkan-sdk-${version}"; - hash = "sha256-FMzQpc7mwZGib544w0Dx6LeGi64cercm5oUW45raasc="; + hash = "sha256-H5AG+PXM3IdCfDqHMdaunRUWRm8QgdS6ZbZLMaOOALk="; }; strictDeps = true; From 6ab2027f6a57069f64f7438ef60f0441295acd1c Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:06:04 +0300 Subject: [PATCH 0180/1574] vulkan-tools: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/KhronosGroup/Vulkan-Tools/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 --- pkgs/tools/graphics/vulkan-tools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/graphics/vulkan-tools/default.nix b/pkgs/tools/graphics/vulkan-tools/default.nix index c21ece529459..2779e5c6231c 100644 --- a/pkgs/tools/graphics/vulkan-tools/default.nix +++ b/pkgs/tools/graphics/vulkan-tools/default.nix @@ -25,13 +25,13 @@ stdenv.mkDerivation rec { pname = "vulkan-tools"; - version = "1.3.290.0"; + version = "1.3.296.0"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "Vulkan-Tools"; rev = "vulkan-sdk-${version}"; - hash = "sha256-8xuE4OTwtH8ckCKDU7oo0WI7/R4Ox53+j+F+ZuKysKI="; + hash = "sha256-+24IVmmcxuPaT/vYRYZ4yluHS/uKfWiVa7yIvzsdTuQ="; }; nativeBuildInputs = [ From 46dcb46fbc90f96c58e651105ae5f2d6499bdd0f Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:06:07 +0300 Subject: [PATCH 0181/1574] vulkan-tools-lunarg: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/LunarG/VulkanTools/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 --- pkgs/tools/graphics/vulkan-tools-lunarg/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/graphics/vulkan-tools-lunarg/default.nix b/pkgs/tools/graphics/vulkan-tools-lunarg/default.nix index bef94286ac80..1d031d20c1bb 100644 --- a/pkgs/tools/graphics/vulkan-tools-lunarg/default.nix +++ b/pkgs/tools/graphics/vulkan-tools-lunarg/default.nix @@ -26,13 +26,13 @@ stdenv.mkDerivation rec { pname = "vulkan-tools-lunarg"; - version = "1.3.290.0"; + version = "1.3.296.0"; src = fetchFromGitHub { owner = "LunarG"; repo = "VulkanTools"; rev = "vulkan-sdk-${version}"; - hash = "sha256-APJRiO5xNHml3k9goFQKwmxb3BXDN7tmvcs/oNCVU58="; + hash = "sha256-RaL7sqy5Rc8syPoM3SedZ6UilV9JUAA96JZh5/gIfPU="; }; nativeBuildInputs = [ cmake python3 jq which pkg-config libsForQt5.qt5.wrapQtAppsHook ]; From 47ed9b9577eaec120147aa43586fa1a28f48ba62 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:06:10 +0300 Subject: [PATCH 0182/1574] vulkan-extension-layer: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/KhronosGroup/Vulkan-ExtensionLayer/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 --- pkgs/tools/graphics/vulkan-extension-layer/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/graphics/vulkan-extension-layer/default.nix b/pkgs/tools/graphics/vulkan-extension-layer/default.nix index b428672fe9fe..268353985889 100644 --- a/pkgs/tools/graphics/vulkan-extension-layer/default.nix +++ b/pkgs/tools/graphics/vulkan-extension-layer/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "vulkan-extension-layer"; - version = "1.3.290.0"; + version = "1.3.296.0"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "Vulkan-ExtensionLayer"; rev = "vulkan-sdk-${version}"; - hash = "sha256-Cz4C8HoyP768H9ZI7Ys9oX3/qEEhz6vfkdKXoVfodT0="; + hash = "sha256-pBpHYxJq36FrHsvpaMJvX0IKTvAh0R86qR7/vn6EBCw="; }; nativeBuildInputs = [ cmake pkg-config jq ]; From 369d5b9ad4d975c23d70f476e212f66246a695c0 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:06:13 +0300 Subject: [PATCH 0183/1574] vulkan-utility-libraries: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/KhronosGroup/Vulkan-Utility-Libraries/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 --- .../libraries/vulkan-utility-libraries/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/vulkan-utility-libraries/default.nix b/pkgs/development/libraries/vulkan-utility-libraries/default.nix index 060f609c8566..4c31f09958de 100644 --- a/pkgs/development/libraries/vulkan-utility-libraries/default.nix +++ b/pkgs/development/libraries/vulkan-utility-libraries/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "vulkan-utility-libraries"; - version = "1.3.290.0"; + version = "1.3.296.0"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "Vulkan-Utility-Libraries"; rev = "vulkan-sdk-${finalAttrs.version}"; - hash = "sha256-dzX2xePUkjL4G+IMwPCUgFs1iKsqwZScQQBDt5toUzc="; + hash = "sha256-WDRDpUOZN/akUA6gsJMlC2GKolVt3g1NerKqe7aLhek="; }; nativeBuildInputs = [ cmake python3 ]; From 7301c569e0d635d28299a8559bb1c326fd9e6535 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:06:15 +0300 Subject: [PATCH 0184/1574] vulkan-volk: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/zeux/volk/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 --- pkgs/by-name/vu/vulkan-volk/package.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/vu/vulkan-volk/package.nix b/pkgs/by-name/vu/vulkan-volk/package.nix index 378e32cd01a2..53f8b8b802d6 100644 --- a/pkgs/by-name/vu/vulkan-volk/package.nix +++ b/pkgs/by-name/vu/vulkan-volk/package.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "volk"; - version = "1.3.290.0"; + version = "1.3.296.0"; src = fetchFromGitHub { owner = "zeux"; repo = "volk"; rev = "vulkan-sdk-${finalAttrs.version}"; - hash = "sha256-SbTBwS4mJETrXRT7QMJX9F8ukcZmzz8+1atVbB/fid4="; + hash = "sha256-faLszfOeFo5eAzwvnrAUDVAPCVt/F9xRUFGxC9TA8E8="; }; nativeBuildInputs = [ cmake ]; From 30de3661d885fa485192f0b46de88344d00d5070 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:06:18 +0300 Subject: [PATCH 0185/1574] spirv-headers: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/KhronosGroup/SPIRV-Headers/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 --- pkgs/development/libraries/spirv-headers/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/spirv-headers/default.nix b/pkgs/development/libraries/spirv-headers/default.nix index 8326a71041da..837967827f31 100644 --- a/pkgs/development/libraries/spirv-headers/default.nix +++ b/pkgs/development/libraries/spirv-headers/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "spirv-headers"; - version = "1.3.290.0"; + version = "1.3.296.0"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "SPIRV-Headers"; rev = "vulkan-sdk-${version}"; - hash = "sha256-c9ruBCnf9PNJz030bfRhHwyqju6T8YCRx+efKCEYgSo="; + hash = "sha256-o1yRTvP7a+XVwendTKBJKNnelVGWLD0gH258GGeUDhQ="; }; nativeBuildInputs = [ cmake ]; From 90a6594eba8ad04fd6d781809e78d067425c3bb3 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 20:06:23 +0300 Subject: [PATCH 0186/1574] spirv-cross: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/KhronosGroup/SPIRV-Cross/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 Changelog: https://github.com/KhronosGroup/SPIRV-Cross/releases/tag/1.3.296.0 --- pkgs/tools/graphics/spirv-cross/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/graphics/spirv-cross/default.nix b/pkgs/tools/graphics/spirv-cross/default.nix index ee211e6c0318..7115a09bd8e9 100644 --- a/pkgs/tools/graphics/spirv-cross/default.nix +++ b/pkgs/tools/graphics/spirv-cross/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation (finalAttrs: { pname = "spirv-cross"; - version = "1.3.290.0"; + version = "1.3.296.0"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "SPIRV-Cross"; rev = "vulkan-sdk-${finalAttrs.version}"; - hash = "sha256-h5My9PbPq1l03xpXQQFolNy7G1RhExtTH6qPg7vVF/8="; + hash = "sha256-HKEh/UQzDQEOvJGHQlM6kEYVZrMaUBOcOGjjHWXSPoo="; }; nativeBuildInputs = [ cmake python3 ]; From 8631b597902219f0a429785a6fa96192243f9c65 Mon Sep 17 00:00:00 2001 From: Anthony ROUSSEL Date: Wed, 18 Sep 2024 21:05:29 +0200 Subject: [PATCH 0187/1574] ruby.rubygems: 3.5.16 -> 3.5.21 https://github.com/rubygems/rubygems/releases/tag/v3.5.21 https://github.com/rubygems/rubygems/compare/v3.5.16...v3.5.21 --- .../0004-delete-binstub-lock-file.patch | 36 ------------------- .../interpreters/ruby/rubygems/default.nix | 5 ++- 2 files changed, 2 insertions(+), 39 deletions(-) delete mode 100644 pkgs/development/interpreters/ruby/rubygems/0004-delete-binstub-lock-file.patch diff --git a/pkgs/development/interpreters/ruby/rubygems/0004-delete-binstub-lock-file.patch b/pkgs/development/interpreters/ruby/rubygems/0004-delete-binstub-lock-file.patch deleted file mode 100644 index 91f221e19680..000000000000 --- a/pkgs/development/interpreters/ruby/rubygems/0004-delete-binstub-lock-file.patch +++ /dev/null @@ -1,36 +0,0 @@ -A change introduced in PR https://github.com/rubygems/rubygems/pull/7797 -does not delete the binstub lock files after the binstub file is created. - -This change was introduced in rubygems 3.5.15, -and this version causes Hydra builds to fail, in particular mastodon. - -A resolution is delete these binstub lock files after the binstub file is created -to prevent lock files from ending up in the bin folders of the various derivations -which will cause the build to fail. - ---- -diff --git a/bundler/lib/bundler/rubygems_ext.rb b/bundler/lib/bundler/rubygems_ext.rb -index 503959bba7..603b30e277 100644 ---- a/bundler/lib/bundler/rubygems_ext.rb -+++ b/bundler/lib/bundler/rubygems_ext.rb -@@ -47,6 +47,8 @@ def self.open_file_with_flock(path, &block) - else - File.open(path, flags, &block) - end -+ ensure -+ FileUtils.rm_f(path) if File.exist?(path) - end - end - end -diff --git a/lib/rubygems.rb b/lib/rubygems.rb -index 569041f3d7..bcc95ae85c 100644 ---- a/lib/rubygems.rb -+++ b/lib/rubygems.rb -@@ -796,6 +796,8 @@ def self.open_file_with_flock(path, &block) - else - open_file(path, flags, &block) - end -+ ensure -+ FileUtils.rm_f(path) if File.exist?(path) - end - end diff --git a/pkgs/development/interpreters/ruby/rubygems/default.nix b/pkgs/development/interpreters/ruby/rubygems/default.nix index 9fbfdb59fb07..68e404be0ea8 100644 --- a/pkgs/development/interpreters/ruby/rubygems/default.nix +++ b/pkgs/development/interpreters/ruby/rubygems/default.nix @@ -7,18 +7,17 @@ stdenv.mkDerivation rec { pname = "rubygems"; - version = "3.5.16"; + version = "3.5.21"; src = fetchurl { url = "https://rubygems.org/rubygems/rubygems-${version}.tgz"; - hash = "sha256-f9EN6eXpMzIbYrjxGUJWrmRwO6JUHKuR7DEkSgGNkBI="; + hash = "sha256-lZs+SIaYaXXYXQsCEXeQiD5TuNBRUp326s/mR0XvMWA="; }; patches = [ ./0001-add-post-extract-hook.patch ./0002-binaries-with-env-shebang.patch ./0003-gem-install-default-to-user.patch - ./0004-delete-binstub-lock-file.patch ]; installPhase = '' From 4dd40b15d8b5eac7870930f574669560b0630519 Mon Sep 17 00:00:00 2001 From: Anthony ROUSSEL Date: Wed, 18 Sep 2024 21:06:08 +0200 Subject: [PATCH 0188/1574] bundler: 2.5.16 -> 2.5.21 https://github.com/rubygems/rubygems/releases/tag/bundler-v2.5.21 https://github.com/rubygems/rubygems/compare/bundler-v2.5.16...bundler-v2.5.21 --- pkgs/development/ruby-modules/bundler/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/ruby-modules/bundler/default.nix b/pkgs/development/ruby-modules/bundler/default.nix index c144149da290..0e5c71ba2da7 100644 --- a/pkgs/development/ruby-modules/bundler/default.nix +++ b/pkgs/development/ruby-modules/bundler/default.nix @@ -4,8 +4,8 @@ buildRubyGem rec { inherit ruby; name = "${gemName}-${version}"; gemName = "bundler"; - version = "2.5.16"; - source.sha256 = "sha256-h7oDOPQNWSinmxqwZ4Z6Ns3lgTXQi2MmfvY5eVuVmDo="; + version = "2.5.21"; + source.sha256 = "sha256-ID1kXl9tqmC7+0zMsafUq6gXFnTgC8KHJChHQPjZ7/s="; dontPatchShebangs = true; postFixup = '' From d4232f33f48ecdd65c84e9c5016c769cff95aac6 Mon Sep 17 00:00:00 2001 From: K900 Date: Tue, 8 Oct 2024 22:04:34 +0300 Subject: [PATCH 0189/1574] spirv-tools: 1.3.290.0 -> 1.3.296.0 Diff: https://github.com/KhronosGroup/SPIRV-Tools/compare/vulkan-sdk-1.3.290.0...vulkan-sdk-1.3.296.0 --- pkgs/development/tools/spirv-tools/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/spirv-tools/default.nix b/pkgs/development/tools/spirv-tools/default.nix index 40764df42280..b9d4ba122748 100644 --- a/pkgs/development/tools/spirv-tools/default.nix +++ b/pkgs/development/tools/spirv-tools/default.nix @@ -2,13 +2,13 @@ stdenv.mkDerivation rec { pname = "spirv-tools"; - version = "1.3.290.0"; + version = "1.3.296.0"; src = fetchFromGitHub { owner = "KhronosGroup"; repo = "SPIRV-Tools"; rev = "vulkan-sdk-${version}"; - hash = "sha256-5swjNHeJpsCDkUVBL1uFqAzOPFzCESsYtDfRkno2bN4="; + hash = "sha256-ExseInoB/mMtVUOf0KMrQwDQ5UQdo3Ru7VnGMGPeXrk="; }; # The cmake options are sufficient for turning on static building, but not From b41deedb6242acd17582ae41d4c87defe55cb618 Mon Sep 17 00:00:00 2001 From: Thomas Gerbet Date: Tue, 8 Oct 2024 22:12:22 +0200 Subject: [PATCH 0190/1574] unzip: apply patch for CVE-2021-4217 https://bugs.launchpad.net/ubuntu/+source/unzip/+bug/1957077 --- pkgs/tools/archivers/unzip/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/archivers/unzip/default.nix b/pkgs/tools/archivers/unzip/default.nix index 2b353598a328..50e2261aa7d4 100644 --- a/pkgs/tools/archivers/unzip/default.nix +++ b/pkgs/tools/archivers/unzip/default.nix @@ -63,6 +63,11 @@ stdenv.mkDerivation rec { # Clang 16 makes implicit declarations an error by default for C99 and newer, causing the # configure script to fail to detect errno and the directory libraries on Darwin. ./implicit-declarations-fix.patch + (fetchurl { + name = "CVE-2021-4217.patch"; + url = "https://git.launchpad.net/ubuntu/+source/unzip/plain/debian/patches/CVE-2021-4217.patch?id=94a790fcbb5d6c53cdf5d786bcaa0b8dc10309b6"; + hash = "sha256-YKE4jVNSlrHLbszXNYYRtAQs0ly4AsodEz6tadMIVqE="; + }) ] ++ lib.optional enableNLS (fetchurl { url = "https://gitweb.gentoo.org/repo/gentoo.git/plain/app-arch/unzip/files/unzip-6.0-natspec.patch?id=56bd759df1d0c750a065b8c845e93d5dfa6b549d"; From ff855314546e43536f8b103a0412e6f998ff361c Mon Sep 17 00:00:00 2001 From: Silvan Mosberger Date: Wed, 9 Oct 2024 04:24:46 +0200 Subject: [PATCH 0191/1574] CODEOWNERS: Fix auto-patchelf path After https://github.com/NixOS/nixpkgs/pull/340162 and https://github.com/NixOS/nixpkgs/pull/336261 it started failing: https://github.com/NixOS/nixpkgs/actions/runs/11246996195/job/31269748379 --- .github/CODEOWNERS | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index f84abe7fc4b2..b4233462e699 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -56,7 +56,7 @@ /pkgs/build-support/bintools-wrapper @Ericson2314 /pkgs/build-support/setup-hooks @Ericson2314 /pkgs/build-support/setup-hooks/auto-patchelf.sh @layus -/pkgs/build-support/setup-hooks/auto-patchelf.py @layus +/pkgs/by-name/au/auto-patchelf @layus /pkgs/pkgs-lib @infinisil ## Format generators/serializers /pkgs/pkgs-lib/formats/libconfig @h7x4 From 683f97e3781356b3e8251d0ab5e5906c4cdd4ded Mon Sep 17 00:00:00 2001 From: binarycat Date: Fri, 8 Mar 2024 22:12:51 -0500 Subject: [PATCH 0192/1574] rustPlatform: cargo test is now called with the same environment variables as cargo build this means that cargo dependancies will no longer be built twice. --- pkgs/build-support/rust/hooks/cargo-check-hook.sh | 2 +- pkgs/build-support/rust/hooks/default.nix | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/rust/hooks/cargo-check-hook.sh b/pkgs/build-support/rust/hooks/cargo-check-hook.sh index 07eae85d13ee..965e2b451447 100644 --- a/pkgs/build-support/rust/hooks/cargo-check-hook.sh +++ b/pkgs/build-support/rust/hooks/cargo-check-hook.sh @@ -38,7 +38,7 @@ cargoCheckHook() { concatTo flagsArray cargoTestFlags checkFlags checkFlagsArray echoCmd 'cargoCheckHook flags' "${flagsArray[@]}" - cargo test "${flagsArray[@]}" + @setEnv@ cargo test "${flagsArray[@]}" if [[ -n "${buildAndTestSubdir-}" ]]; then popd diff --git a/pkgs/build-support/rust/hooks/default.nix b/pkgs/build-support/rust/hooks/default.nix index 874f23fe7ed3..01c7ef81cb56 100644 --- a/pkgs/build-support/rust/hooks/default.nix +++ b/pkgs/build-support/rust/hooks/default.nix @@ -31,7 +31,7 @@ name = "cargo-check-hook.sh"; propagatedBuildInputs = [ cargo ]; substitutions = { - inherit (rust.envVars) rustHostPlatformSpec; + inherit (rust.envVars) rustHostPlatformSpec setEnv; }; } ./cargo-check-hook.sh) {}; From a226c17c853f8b537a1bf67448749f37673896c6 Mon Sep 17 00:00:00 2001 From: Colin Date: Wed, 9 Oct 2024 19:42:32 +0000 Subject: [PATCH 0193/1574] alsa-ucm-conf: 1.2.11 -> 1.2.12 --- pkgs/by-name/al/alsa-ucm-conf/package.nix | 30 +++++++++-------------- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/pkgs/by-name/al/alsa-ucm-conf/package.nix b/pkgs/by-name/al/alsa-ucm-conf/package.nix index 6224bafc6c54..462f9d3eea16 100644 --- a/pkgs/by-name/al/alsa-ucm-conf/package.nix +++ b/pkgs/by-name/al/alsa-ucm-conf/package.nix @@ -1,29 +1,19 @@ -{ lib, stdenv, fetchurl, fetchpatch }: +{ + directoryListingUpdater, + fetchurl, + lib, + stdenv, +}: stdenv.mkDerivation rec { pname = "alsa-ucm-conf"; - version = "1.2.11"; + version = "1.2.12"; src = fetchurl { url = "mirror://alsa/lib/alsa-ucm-conf-${version}.tar.bz2"; - hash = "sha256-OHwBzzDioWdte49ysmgc8hmrynDdHsKp4zrdW/P+roE="; + hash = "sha256-Fo58BUm3v4mRCS+iv7kDYx33edxMQ+6PQnf8t3LYwDU="; }; - patches = [ - (fetchpatch { - # TODO: Remove this patch in the next package upgrade - name = "rt1318-fix-one.patch"; - url = "https://github.com/alsa-project/alsa-ucm-conf/commit/7e22b7c214d346bd156131f3e6c6a5900bbf116d.patch"; - hash = "sha256-5X0ANXTSRnC9jkvMLl7lA5TBV3d1nwWE57DP6TwliII="; - }) - (fetchpatch { - # TODO: Remove this patch in the next package upgrade - name = "rt1318-fix-two.patch"; - url = "https://github.com/alsa-project/alsa-ucm-conf/commit/4e0fcc79b7d517a957e12f02ecae5f3c69fa94dc.patch"; - hash = "sha256-cuZPEEqb8+d1Ak2tA+LVEh6gtGt1X+LiAnfFYMIDCXY="; - }) - ]; - dontBuild = true; installPhase = '' @@ -35,6 +25,10 @@ stdenv.mkDerivation rec { runHook postInstall ''; + passthru.updateScript = directoryListingUpdater { + url = "https://www.alsa-project.org/files/pub/lib/"; + }; + meta = with lib; { homepage = "https://www.alsa-project.org/"; description = "ALSA Use Case Manager configuration"; From b0e2c787ba58b6a1f1955b772040e312aeca4139 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 29 Sep 2024 21:54:14 -0400 Subject: [PATCH 0194/1574] moltenvk: use xcbuildHook When using structured attrs, xcbuildHook supports schemes with spaces in their names. --- pkgs/os-specific/darwin/moltenvk/default.nix | 36 +++++++++++--------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/pkgs/os-specific/darwin/moltenvk/default.nix b/pkgs/os-specific/darwin/moltenvk/default.nix index 43ede5f950c5..486a6a9b1f2d 100644 --- a/pkgs/os-specific/darwin/moltenvk/default.nix +++ b/pkgs/os-specific/darwin/moltenvk/default.nix @@ -11,7 +11,7 @@ spirv-headers, spirv-tools, vulkan-headers, - xcbuild, + xcbuildHook, AppKit, Foundation, Metal, @@ -28,6 +28,8 @@ stdenv.mkDerivation (finalAttrs: { pname = "MoltenVK"; version = "1.2.9"; + strictDeps = true; + buildInputs = [ AppKit Foundation @@ -42,7 +44,7 @@ stdenv.mkDerivation (finalAttrs: { vulkan-headers ]; - nativeBuildInputs = [ xcbuild ]; + nativeBuildInputs = [ xcbuildHook ]; outputs = [ "out" @@ -117,25 +119,25 @@ stdenv.mkDerivation (finalAttrs: { "-lspirv-cross-reflect" ]; - buildPhase = '' - runHook preBuild - + preBuild = '' NIX_CFLAGS_COMPILE+=" \ -I$NIX_BUILD_TOP/$sourceRoot/build/include \ -I$NIX_BUILD_TOP/$sourceRoot/Common" - - xcodebuild build \ - SYMROOT=$PWD/Products OBJROOT=$PWD/Intermedates \ - -jobs $NIX_BUILD_CORES \ - -configuration Release \ - -project MoltenVKPackaging.xcodeproj \ - -scheme 'MoltenVK Package (macOS only)' \ - -destination generic/platform=macOS \ - -arch ${stdenv.hostPlatform.darwinArch} - - runHook postBuild ''; + xcbuildFlags = [ + "-configuration" + "Release" + "-project" + "MoltenVKPackaging.xcodeproj" + "-scheme" + "MoltenVK Package (macOS only)" + "-destination" + "generic/platform=macOS" + "-arch" + stdenv.hostPlatform.darwinArch + ]; + postBuild = if enableStatic then '' @@ -187,6 +189,8 @@ stdenv.mkDerivation (finalAttrs: { runHook postInstall ''; + __structuredAttrs = true; + passthru.updateScript = gitUpdater { rev-prefix = "v"; ignoredVersions = ".*-(beta|rc).*"; From 0cabb33e1d57069bfd3b16857d57fb24b09ce4a4 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 29 Sep 2024 21:54:14 -0400 Subject: [PATCH 0195/1574] moltenvk: build with the 14.4 SDK MoltenVK can take advantage of newer Metal features when built with the latest Darwin SDK. --- pkgs/os-specific/darwin/moltenvk/default.nix | 14 ++++---------- pkgs/top-level/darwin-packages.nix | 9 +-------- 2 files changed, 5 insertions(+), 18 deletions(-) diff --git a/pkgs/os-specific/darwin/moltenvk/default.nix b/pkgs/os-specific/darwin/moltenvk/default.nix index 486a6a9b1f2d..808b1b281b69 100644 --- a/pkgs/os-specific/darwin/moltenvk/default.nix +++ b/pkgs/os-specific/darwin/moltenvk/default.nix @@ -3,19 +3,16 @@ stdenv, fetchFromGitHub, gitUpdater, + apple-sdk_14, + darwinMinVersionHook, cereal, libcxx, glslang, - simd, spirv-cross, spirv-headers, spirv-tools, vulkan-headers, xcbuildHook, - AppKit, - Foundation, - Metal, - QuartzCore, enableStatic ? stdenv.hostPlatform.isStatic, # MoltenVK supports using private APIs to implement some Vulkan functionality. # Applications that use private APIs can’t be distributed on the App Store, @@ -31,13 +28,10 @@ stdenv.mkDerivation (finalAttrs: { strictDeps = true; buildInputs = [ - AppKit - Foundation - Metal - QuartzCore + apple-sdk_14 cereal + (darwinMinVersionHook "10.15") glslang - simd spirv-cross spirv-headers spirv-tools diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index f0bdad863e90..eb25ad6a7b53 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -172,14 +172,7 @@ impure-cmds // appleSourcePackages // chooseLibs // { lsusb = callPackage ../os-specific/darwin/lsusb { }; - moltenvk = callPackage ../os-specific/darwin/moltenvk { - stdenv = pkgs.overrideSDK stdenv { - darwinMinVersion = "10.15"; - darwinSdkVersion = "12.3"; - }; - inherit (apple_sdk.frameworks) AppKit Foundation Metal QuartzCore; - inherit (apple_sdk.libs) simd; - }; + moltenvk = callPackage ../os-specific/darwin/moltenvk { }; openwith = callPackage ../os-specific/darwin/openwith { }; From 329fa34d6237e3da654707de0d55195ee25b7c8e Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 6 Oct 2024 19:21:32 -0400 Subject: [PATCH 0196/1574] moltenvk: 1.2.9 -> 1.2.10 https://github.com/KhronosGroup/MoltenVK/releases/tag/v1.2.10 --- pkgs/os-specific/darwin/moltenvk/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/darwin/moltenvk/default.nix b/pkgs/os-specific/darwin/moltenvk/default.nix index 808b1b281b69..af16cc07adf3 100644 --- a/pkgs/os-specific/darwin/moltenvk/default.nix +++ b/pkgs/os-specific/darwin/moltenvk/default.nix @@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: { pname = "MoltenVK"; - version = "1.2.9"; + version = "1.2.10"; strictDeps = true; @@ -50,7 +50,7 @@ stdenv.mkDerivation (finalAttrs: { owner = "KhronosGroup"; repo = "MoltenVK"; rev = "v${finalAttrs.version}"; - hash = "sha256-9k7NMw2M6IqCUQNBekzDaS6VYAOKwPmuCfJkENQ7oiI="; + hash = "sha256-5hc+bnsyc8Am9My2kzsU7fv+1CePCHgxL82Mxz/zJRo="; }; postPatch = '' @@ -91,6 +91,10 @@ stdenv.mkDerivation (finalAttrs: { # Link glslang source because MoltenVK needs non-public headers to build. mkdir -p build/include ln -s "${glslang.src}" "build/include/glslang" + + # MoltenVK should be using SPIRV_CROSS_NAMESPACE instead of hardcoding the namespace. + substituteInPlace MoltenVK/MoltenVK/GPUObjects/MVKDescriptorSet.mm \ + --replace-fail MVK_spirv_cross SPIRV_CROSS_NAMESPACE ''; env.NIX_CFLAGS_COMPILE = toString ( From f9e5f1290d88e94c4004e1d49d418f4f7983c734 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 6 Oct 2024 19:12:56 -0400 Subject: [PATCH 0197/1574] moltenvk: move to pkgs/by-name --- .../moltenvk/default.nix => by-name/mo/moltenvk/package.nix} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename pkgs/{os-specific/darwin/moltenvk/default.nix => by-name/mo/moltenvk/package.nix} (100%) diff --git a/pkgs/os-specific/darwin/moltenvk/default.nix b/pkgs/by-name/mo/moltenvk/package.nix similarity index 100% rename from pkgs/os-specific/darwin/moltenvk/default.nix rename to pkgs/by-name/mo/moltenvk/package.nix From d8906e4851d8a307726a2a10f12b2962dd545a24 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 6 Oct 2024 19:27:33 -0400 Subject: [PATCH 0198/1574] treewide: switch to moltenvk from darwin.moltenvk --- pkgs/applications/emulators/wine/default.nix | 2 +- pkgs/by-name/fa/fastfetch/package.nix | 3 ++- pkgs/top-level/all-packages.nix | 8 ++------ 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/pkgs/applications/emulators/wine/default.nix b/pkgs/applications/emulators/wine/default.nix index 8c8ebdea5878..8f579c35184f 100644 --- a/pkgs/applications/emulators/wine/default.nix +++ b/pkgs/applications/emulators/wine/default.nix @@ -39,7 +39,7 @@ waylandSupport ? false, x11Support ? false, embedInstallers ? false, # The Mono and Gecko MSI installers - moltenvk ? darwin.moltenvk # Allow users to override MoltenVK easily + moltenvk # Allow users to override MoltenVK easily }: let wine-build = build: release: diff --git a/pkgs/by-name/fa/fastfetch/package.nix b/pkgs/by-name/fa/fastfetch/package.nix index 5d1f54b8261e..bed0d66596a7 100644 --- a/pkgs/by-name/fa/fastfetch/package.nix +++ b/pkgs/by-name/fa/fastfetch/package.nix @@ -19,6 +19,7 @@ libsepol, libxcb, makeBinaryWrapper, + moltenvk, nix-update-script, ocl-icd, opencl-headers, @@ -119,7 +120,7 @@ stdenv'.mkDerivation (finalAttrs: { MediaRemote OpenCL SystemConfiguration - darwin.moltenvk + moltenvk ] ); diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b6744b93ea24..09cdaa1ece2f 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2672,7 +2672,6 @@ with pkgs; dolphin-emu = qt6Packages.callPackage ../applications/emulators/dolphin-emu { stdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv; inherit (darwin.apple_sdk_11_0.frameworks) CoreBluetooth ForceFeedback IOBluetooth IOKit OpenGL VideoToolbox; - inherit (darwin) moltenvk; }; dolphin-emu-primehack = qt5.callPackage ../applications/emulators/dolphin-emu/primehack.nix { @@ -23479,9 +23478,8 @@ with pkgs; vulkan-extension-layer = callPackage ../tools/graphics/vulkan-extension-layer { }; vulkan-headers = callPackage ../development/libraries/vulkan-headers { }; - vulkan-loader = callPackage ../development/libraries/vulkan-loader { inherit (darwin) moltenvk; }; + vulkan-loader = callPackage ../development/libraries/vulkan-loader { }; vulkan-tools = callPackage ../tools/graphics/vulkan-tools { - inherit (darwin) moltenvk; inherit (darwin.apple_sdk.frameworks) AppKit Cocoa; }; vulkan-tools-lunarg = callPackage ../tools/graphics/vulkan-tools-lunarg { }; @@ -35148,9 +35146,7 @@ with pkgs; quakespasm = callPackage ../games/quakespasm { inherit (darwin.apple_sdk.frameworks) Cocoa CoreAudio CoreFoundation IOKit OpenGL; }; - vkquake = callPackage ../games/quakespasm/vulkan.nix { - inherit (darwin) moltenvk; - }; + vkquake = callPackage ../games/quakespasm/vulkan.nix { }; ioquake3 = callPackage ../games/quake3/ioquake { }; quake3e = callPackage ../games/quake3/quake3e { }; From 1f0a0ab94d769e66967e098dbb0e589f2ff1d86a Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 6 Oct 2024 17:36:30 -0400 Subject: [PATCH 0199/1574] darwin.moltenvk: add to darwin-aliases.nix --- pkgs/top-level/darwin-aliases.nix | 4 ++++ pkgs/top-level/darwin-packages.nix | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/top-level/darwin-aliases.nix b/pkgs/top-level/darwin-aliases.nix index e64bb256843d..7773977f5b30 100644 --- a/pkgs/top-level/darwin-aliases.nix +++ b/pkgs/top-level/darwin-aliases.nix @@ -66,6 +66,10 @@ mapAliases ({ libauto = throw "'darwin.libauto' has been removed, as it was broken and unmaintained"; # added 2024-05-10 libiconv = pkgs.libiconv; # 2024-03-27 + ### M ### + + moltenvk = pkgs.moltenvk; # 2024-10-06 + ### O ### opencflite = pkgs.opencflite; # added 2024-05-02 diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index eb25ad6a7b53..546d99ae861d 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -172,8 +172,6 @@ impure-cmds // appleSourcePackages // chooseLibs // { lsusb = callPackage ../os-specific/darwin/lsusb { }; - moltenvk = callPackage ../os-specific/darwin/moltenvk { }; - openwith = callPackage ../os-specific/darwin/openwith { }; stubs = pkgs.callPackages ../os-specific/darwin/stubs { }; From 578b04cd1da289b03feb9d3cd7f2b87baf53759b Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 18:27:46 -0400 Subject: [PATCH 0200/1574] qt5.qtbase: build with the 14.4 SDK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per upstream’s supported Darwin versions, built with the 14.4 SDK (corresponding to Xcode 15) and a 10.14 deployment target. To ensure that users of Qt have a compatible SDK and deployment target, propagate the 10.14 SDK and a 10.14 minimum version. Users that need a newer version can opt into using it by adding the SDK package to their build inputs. aarch64-darwin uses 11.0 and 11.3 because those are the oldest supported SDK and deployment target on that platform. Note: upstream actually supports 10.13, but 10.14 was chosen as the minimum and SDK because it ensures that automatic dark mode switching works for x86_64-darwin users. --- .../libraries/qt-5/modules/qtbase.nix | 33 ++++++++++--------- 1 file changed, 18 insertions(+), 15 deletions(-) diff --git a/pkgs/development/libraries/qt-5/modules/qtbase.nix b/pkgs/development/libraries/qt-5/modules/qtbase.nix index 7aef466b7937..0dadaeeaf916 100644 --- a/pkgs/development/libraries/qt-5/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-5/modules/qtbase.nix @@ -4,8 +4,7 @@ , coreutils, bison, flex, gdb, gperf, lndir, perl, pkg-config, python3 , which # darwin support -, libiconv, libobjc, xcbuild, AGL, AppKit, ApplicationServices, AVFoundation, Carbon, Cocoa, CoreAudio, CoreBluetooth -, CoreLocation, CoreServices, DiskArbitration, Foundation, OpenGL, MetalKit, IOKit +, darwinMinVersionHook, apple-sdk, apple-sdk_10_14, apple-sdk_14, xcbuild , dbus, fontconfig, freetype, glib, harfbuzz, icu, libdrm, libX11, libXcomposite , libXcursor, libXext, libXi, libXrender, libinput, libjpeg, libpng , libxcb @@ -38,6 +37,13 @@ let if isLinux then "linux-generic-g++" else throw "Please add a qtPlatformCross entry for ${plat.config}"; + + # Per https://doc.qt.io/qt-5/macos.html#supported-versions: deployment target = 10.13, build SDK = 14.x. + # Note that Qt propagates the 10.14 SDK instead of the 10.13 SDK to make sure that applications linked to Qt + # support automatic dark mode on x86_64-darwin (see: https://developer.apple.com/documentation/appkit/nsappearancecustomization/choosing_a_specific_appearance_for_your_macos_app). + propagatedAppleSDK = if lib.versionOlder (lib.getVersion apple-sdk) "10.14" then apple-sdk_10_14 else apple-sdk; + propagatedMinVersionHook = darwinMinVersionHook "10.13"; + buildAppleSDK = apple-sdk_14; in stdenv.mkDerivation (finalAttrs: ({ @@ -56,10 +62,8 @@ stdenv.mkDerivation (finalAttrs: ({ pcre2 ] ++ ( if stdenv.hostPlatform.isDarwin then [ - # TODO: move to buildInputs, this should not be propagated. - AGL AppKit ApplicationServices AVFoundation Carbon Cocoa CoreAudio CoreBluetooth - CoreLocation CoreServices DiskArbitration Foundation OpenGL - libobjc libiconv MetalKit IOKit + propagatedAppleSDK + propagatedMinVersionHook ] else [ dbus glib udev @@ -80,6 +84,7 @@ stdenv.mkDerivation (finalAttrs: ({ [ libinput ] ++ lib.optional withGtk3 gtk3 ) + ++ lib.optional stdenv.isDarwin buildAppleSDK ++ lib.optional developerBuild gdb ++ lib.optional (cups != null) cups ++ lib.optional (mysqlSupport) libmysqlclient @@ -141,15 +146,13 @@ stdenv.mkDerivation (finalAttrs: ({ patchShebangs ./bin '' + ( if stdenv.hostPlatform.isDarwin then '' - sed -i \ - -e 's|/usr/bin/xcode-select|xcode-select|' \ - -e 's|/usr/bin/xcrun|xcrun|' \ - -e 's|/usr/bin/xcodebuild|xcodebuild|' \ - -e 's|QMAKE_CONF_COMPILER=`getXQMakeConf QMAKE_CXX`|QMAKE_CXX="clang++"\nQMAKE_CONF_COMPILER="clang++"|' \ - ./configure - substituteInPlace ./mkspecs/common/mac.conf \ - --replace "/System/Library/Frameworks/OpenGL.framework/" "${OpenGL}/Library/Frameworks/OpenGL.framework/" \ - --replace "/System/Library/Frameworks/AGL.framework/" "${AGL}/Library/Frameworks/AGL.framework/" + substituteInPlace configure \ + --replace-fail '/usr/bin/xcode-select' '${lib.getBin xcbuild}/bin/xcode-select' \ + --replace-fail '/usr/bin/xcrun' '${lib.getBin xcbuild}/bin/xcrun' \ + --replace-fail '/System/Library/Frameworks/Cocoa.framework' "$SDKROOT/System/Library/Frameworks/Cocoa.framework" + substituteInPlace ./mkspecs/common/mac.conf \ + --replace-fail "/System/Library/Frameworks/OpenGL.framework/" "$SDKROOT/System/Library/Frameworks/OpenGL.framework/" \ + --replace-fail "/System/Library/Frameworks/AGL.framework/" "$SDKROOT/System/Library/Frameworks/AGL.framework/" '' else lib.optionalString libGLSupported '' sed -i mkspecs/common/linux.conf \ -e "/^QMAKE_INCDIR_OPENGL/ s|$|${lib.getDev libGL}/include|" \ From 4bb131ec6b9a2ba58d51973ffb3622b56ed24767 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 18:27:46 -0400 Subject: [PATCH 0201/1574] qt5: build Qt 5 modules with the 14.4 SDK This change ensures all Qt modules build with the latest SDK. --- .../libraries/qt-5/5.15/default.nix | 33 ++--------- .../libraries/qt-5/modules/qtconnectivity.nix | 4 +- .../libraries/qt-5/modules/qtgamepad.nix | 5 +- .../libraries/qt-5/modules/qtpurchasing.nix | 10 +--- .../libraries/qt-5/modules/qtwebengine.nix | 56 +------------------ .../libraries/qt-5/modules/qtwebkit.nix | 4 +- .../libraries/qt-5/modules/qtwebview.nix | 6 +- pkgs/development/libraries/qt-5/qtModule.nix | 6 ++ 8 files changed, 21 insertions(+), 103 deletions(-) diff --git a/pkgs/development/libraries/qt-5/5.15/default.nix b/pkgs/development/libraries/qt-5/5.15/default.nix index 2f57b1c62de4..0827b7f4238b 100644 --- a/pkgs/development/libraries/qt-5/5.15/default.nix +++ b/pkgs/development/libraries/qt-5/5.15/default.nix @@ -250,23 +250,15 @@ let inherit bison cups harfbuzz libGL; withGtk3 = !stdenv.hostPlatform.isDarwin; inherit dconf gtk3; inherit developerBuild decryptSslTraffic; - inherit (darwin.apple_sdk_11_0.frameworks) AGL AppKit ApplicationServices AVFoundation Carbon Cocoa CoreAudio CoreBluetooth - CoreLocation CoreServices DiskArbitration Foundation OpenGL MetalKit IOKit; - libobjc = darwin.apple_sdk_11_0.objc4; - xcbuild = darwin.apple_sdk_11_0.xcodebuild; }; qt3d = callPackage ../modules/qt3d.nix {}; qtcharts = callPackage ../modules/qtcharts.nix {}; - qtconnectivity = callPackage ../modules/qtconnectivity.nix { - inherit (darwin.apple_sdk_11_0.frameworks) IOBluetooth; - }; + qtconnectivity = callPackage ../modules/qtconnectivity.nix { }; qtdatavis3d = callPackage ../modules/qtdatavis3d.nix {}; qtdeclarative = callPackage ../modules/qtdeclarative.nix {}; qtdoc = callPackage ../modules/qtdoc.nix {}; - qtgamepad = callPackage ../modules/qtgamepad.nix { - inherit (darwin.apple_sdk_11_0.frameworks) GameController; - }; + qtgamepad = callPackage ../modules/qtgamepad.nix { }; qtgraphicaleffects = callPackage ../modules/qtgraphicaleffects.nix {}; qtimageformats = callPackage ../modules/qtimageformats.nix {}; qtlocation = callPackage ../modules/qtlocation.nix {}; @@ -278,9 +270,7 @@ let qtnetworkauth = callPackage ../modules/qtnetworkauth.nix {}; qtpim = callPackage ../modules/qtpim.nix {}; qtpositioning = callPackage ../modules/qtpositioning.nix {}; - qtpurchasing = callPackage ../modules/qtpurchasing.nix { - inherit (darwin.apple_sdk_11_0.frameworks) Foundation StoreKit; - }; + qtpurchasing = callPackage ../modules/qtpurchasing.nix { }; qtquick1 = null; qtquick3d = callPackage ../modules/qtquick3d.nix { }; qtquickcontrols = callPackage ../modules/qtquickcontrols.nix {}; @@ -313,24 +303,13 @@ let let stdenv' = if stdenv.cc.isClang then overrideLibcxx llvmPackages_15.stdenv else stdenv; in if stdenv'.hostPlatform.isDarwin then overrideSDK stdenv' "11.0" else stdenv'; inherit (srcs.qtwebengine) version; + inherit (darwin) bootstrap_cmds; python = python3; - inherit (darwin) xnu; - inherit (darwin.apple_sdk_11_0) libpm libunwind; - inherit (darwin.apple_sdk_11_0.libs) sandbox; - inherit (darwin.apple_sdk_11_0.frameworks) ApplicationServices AVFoundation Foundation ForceFeedback GameController AppKit - ImageCaptureCore CoreBluetooth IOBluetooth CoreWLAN Quartz Cocoa LocalAuthentication - MediaPlayer MediaAccessibility SecurityInterface Vision CoreML OpenDirectory Accelerate; - libobjc = darwin.apple_sdk_11_0.objc4; }; qtwebglplugin = callPackage ../modules/qtwebglplugin.nix {}; - qtwebkit = callPackage ../modules/qtwebkit.nix { - inherit (darwin) ICU; - inherit (darwin.apple_sdk_11_0.frameworks) OpenGL; - }; + qtwebkit = callPackage ../modules/qtwebkit.nix { }; qtwebsockets = callPackage ../modules/qtwebsockets.nix {}; - qtwebview = callPackage ../modules/qtwebview.nix { - inherit (darwin.apple_sdk_11_0.frameworks) CoreFoundation WebKit; - }; + qtwebview = callPackage ../modules/qtwebview.nix { }; qtx11extras = callPackage ../modules/qtx11extras.nix {}; qtxmlpatterns = callPackage ../modules/qtxmlpatterns.nix {}; diff --git a/pkgs/development/libraries/qt-5/modules/qtconnectivity.nix b/pkgs/development/libraries/qt-5/modules/qtconnectivity.nix index d61619613eba..77f1fa38c300 100644 --- a/pkgs/development/libraries/qt-5/modules/qtconnectivity.nix +++ b/pkgs/development/libraries/qt-5/modules/qtconnectivity.nix @@ -1,4 +1,4 @@ -{ qtModule, lib, stdenv, qtbase, qtdeclarative, bluez, IOBluetooth }: +{ qtModule, lib, stdenv, qtbase, qtdeclarative, bluez }: qtModule { pname = "qtconnectivity"; @@ -6,8 +6,6 @@ qtModule { propagatedBuildInputs = [ qtbase qtdeclarative - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - IOBluetooth ]; outputs = [ "out" "dev" "bin" ]; } diff --git a/pkgs/development/libraries/qt-5/modules/qtgamepad.nix b/pkgs/development/libraries/qt-5/modules/qtgamepad.nix index c83e41be2af8..09fd6490eeb4 100644 --- a/pkgs/development/libraries/qt-5/modules/qtgamepad.nix +++ b/pkgs/development/libraries/qt-5/modules/qtgamepad.nix @@ -1,9 +1,8 @@ -{ lib, stdenv, qtModule, qtbase, qtdeclarative, GameController, pkg-config }: +{ qtModule, qtbase, qtdeclarative, pkg-config }: qtModule { pname = "qtgamepad"; - propagatedBuildInputs = [ qtbase qtdeclarative ] - ++ lib.optional stdenv.hostPlatform.isDarwin GameController; + propagatedBuildInputs = [ qtbase qtdeclarative ]; nativeBuildInputs = [ pkg-config ]; outputs = [ "out" "dev" "bin" ]; } diff --git a/pkgs/development/libraries/qt-5/modules/qtpurchasing.nix b/pkgs/development/libraries/qt-5/modules/qtpurchasing.nix index 3c1661c7b000..10df01285a4f 100644 --- a/pkgs/development/libraries/qt-5/modules/qtpurchasing.nix +++ b/pkgs/development/libraries/qt-5/modules/qtpurchasing.nix @@ -1,14 +1,6 @@ -{ stdenv -, lib -, qtModule -, qtbase -, qtdeclarative -, StoreKit -, Foundation -}: +{ qtModule, qtbase, qtdeclarative }: qtModule { pname = "qtpurchasing"; propagatedBuildInputs = [ qtbase qtdeclarative ]; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Foundation StoreKit ]; } diff --git a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix index 787c0632ea0c..38ad37fc0364 100644 --- a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix +++ b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix @@ -20,11 +20,7 @@ , systemd , enableProprietaryCodecs ? true , gn -, cctools, libobjc, libpm, libunwind, sandbox, xnu -, ApplicationServices, AVFoundation, Foundation, ForceFeedback, GameController, AppKit -, ImageCaptureCore, CoreBluetooth, IOBluetooth, CoreWLAN, Quartz, Cocoa, LocalAuthentication -, MediaPlayer, MediaAccessibility, SecurityInterface, Vision, CoreML, OpenDirectory, Accelerate -, cups, openbsm, xcbuild, writeScriptBin +, cctools, cups, bootstrap_cmds, xcbuild, writeScriptBin , ffmpeg ? null , lib, stdenv , version ? null @@ -65,7 +61,7 @@ qtModule ({ pkgsBuildBuild.pkg-config (lib.getDev pkgsBuildTarget.targetPackages.qt5.qtquickcontrols) pkg-config-wrapped-without-prefix - ] ++ lib.optional stdenv.hostPlatform.isDarwin xcbuild; + ] ++ lib.optional stdenv.hostPlatform.isDarwin [ bootstrap_cmds xcbuild ]; doCheck = true; outputs = [ "bin" "dev" "out" ]; @@ -158,22 +154,6 @@ qtModule ({ substituteInPlace src/buildtools/config/mac_osx.pri \ --replace 'QMAKE_CLANG_DIR = "/usr"' 'QMAKE_CLANG_DIR = "${stdenv.cc}"' - # Following is required to prevent a build error: - # ninja: error: '/nix/store/z8z04p0ph48w22rqzx7ql67gy8cyvidi-SDKs/MacOSX10.12.sdk/usr/include/mach/exc.defs', needed by 'gen/third_party/crashpad/crashpad/util/mach/excUser.c', missing and no known rule to make it - substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/BUILD.gn \ - --replace '$sysroot/usr' "${xnu}" - - # Apple has some secret stuff they don't share with OpenBSM - substituteInPlace src/3rdparty/chromium/base/mac/mach_port_rendezvous.cc \ - --replace "audit_token_to_pid(request.trailer.msgh_audit)" "request.trailer.msgh_audit.val[5]" - substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/mach/mach_message.cc \ - --replace "audit_token_to_pid(audit_trailer->msgh_audit)" "audit_trailer->msgh_audit.val[5]" - - # ld: warning: directory not found for option '-L/nix/store/...-xcodebuild-0.1.2-pre/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.0.sdk/usr/lib' - # ld: fatal warning(s) induced error (-fatal_warnings) - substituteInPlace src/3rdparty/chromium/build/config/compiler/BUILD.gn \ - --replace "-Wl,-fatal_warnings" "" - # Use system ffmpeg echo "gn_args += use_system_ffmpeg=true" >> src/core/config/mac_osx.pri echo "LIBS += -lavformat -lavcodec -lavutil" >> src/core/core_common.pri @@ -257,40 +237,10 @@ qtModule ({ # FIXME These dependencies shouldn't be needed but can't find a way # around it. Chromium pulls this in while bootstrapping GN. - ++ lib.optionals stdenv.hostPlatform.isDarwin [ - libobjc - cctools - - # frameworks - ApplicationServices - AVFoundation - Foundation - ForceFeedback - GameController - AppKit - ImageCaptureCore - CoreBluetooth - IOBluetooth - CoreWLAN - Quartz - Cocoa - LocalAuthentication - MediaPlayer - MediaAccessibility - SecurityInterface - Vision - CoreML - OpenDirectory - Accelerate - - openbsm - libunwind - ]; + ++ lib.optionals stdenv.hostPlatform.isDarwin [ cctools.libtool ]; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ cups - libpm - sandbox # `sw_vers` is used by `src/3rdparty/chromium/build/config/mac/sdk_info.py` # to get some information about the host platform. diff --git a/pkgs/development/libraries/qt-5/modules/qtwebkit.nix b/pkgs/development/libraries/qt-5/modules/qtwebkit.nix index 3382bca0f982..555635c79522 100644 --- a/pkgs/development/libraries/qt-5/modules/qtwebkit.nix +++ b/pkgs/development/libraries/qt-5/modules/qtwebkit.nix @@ -3,7 +3,6 @@ , fontconfig, libwebp, libxml2, libxslt , sqlite, systemd, glib, gst_all_1, cmake , bison, flex, gdb, gperf, perl, pkg-config, python3, ruby -, ICU, OpenGL }: let @@ -24,8 +23,7 @@ qtModule { pname = "qtwebkit"; propagatedBuildInputs = [ qtbase qtdeclarative qtlocation qtsensors qtwebchannel ] ++ lib.optional stdenv.hostPlatform.isDarwin qtmultimedia; - buildInputs = [ fontconfig libwebp libxml2 libxslt sqlite glib gst_all_1.gstreamer gst_all_1.gst-plugins-base hyphen ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ ICU OpenGL ]; + buildInputs = [ fontconfig libwebp libxml2 libxslt sqlite glib gst_all_1.gstreamer gst_all_1.gst-plugins-base hyphen ]; nativeBuildInputs = [ bison flex gdb gperf perl pkg-config python3 ruby cmake ]; cmakeFlags = [ "-DPORT=Qt" ] diff --git a/pkgs/development/libraries/qt-5/modules/qtwebview.nix b/pkgs/development/libraries/qt-5/modules/qtwebview.nix index 9b1a290ece01..0ff65fa676ca 100644 --- a/pkgs/development/libraries/qt-5/modules/qtwebview.nix +++ b/pkgs/development/libraries/qt-5/modules/qtwebview.nix @@ -1,12 +1,8 @@ -{ lib, stdenv, qtModule, qtdeclarative, qtwebengine, CoreFoundation, WebKit }: +{ lib, stdenv, qtModule, qtdeclarative, qtwebengine }: qtModule { pname = "qtwebview"; propagatedBuildInputs = [ qtdeclarative qtwebengine ]; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ - CoreFoundation - WebKit - ]; outputs = [ "out" "dev" "bin" ]; NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-framework CoreFoundation -framework WebKit"; } diff --git a/pkgs/development/libraries/qt-5/qtModule.nix b/pkgs/development/libraries/qt-5/qtModule.nix index c2e329b1f11f..2bf32e0a153a 100644 --- a/pkgs/development/libraries/qt-5/qtModule.nix +++ b/pkgs/development/libraries/qt-5/qtModule.nix @@ -2,6 +2,7 @@ , stdenv , buildPackages , mkDerivation +, apple-sdk_14 , perl , qmake , patches @@ -23,6 +24,11 @@ mkDerivation (args // { inherit pname version src; patches = (args.patches or []) ++ (patches.${pname} or []); + buildInputs = + args.buildInputs or [ ] + # Per https://doc.qt.io/qt-5/macos.html#supported-versions + ++ lib.optionals stdenv.isDarwin [ apple-sdk_14 ]; + nativeBuildInputs = (args.nativeBuildInputs or []) ++ [ perl qmake From ab80059a1b36a2578471b5df16b6fc32ed95f4fb Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 18:27:46 -0400 Subject: [PATCH 0202/1574] qt5.qtwebengine: drop overrideSDK Qt is using the new Darwin SDK, which no longer requires overrideSDK to change the SDK version or set the deployment target. --- pkgs/development/libraries/qt-5/5.15/default.nix | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/development/libraries/qt-5/5.15/default.nix b/pkgs/development/libraries/qt-5/5.15/default.nix index 0827b7f4238b..240e914241ed 100644 --- a/pkgs/development/libraries/qt-5/5.15/default.nix +++ b/pkgs/development/libraries/qt-5/5.15/default.nix @@ -299,9 +299,7 @@ let # starting with clang 16. Patches are available upstream that can be backported. # Because the first error is non-trivial to fix and suppressing it risks future breakage, # clang is pinned to clang 15. That also makes fixing the second set of errors unnecessary. - stdenv = - let stdenv' = if stdenv.cc.isClang then overrideLibcxx llvmPackages_15.stdenv else stdenv; - in if stdenv'.hostPlatform.isDarwin then overrideSDK stdenv' "11.0" else stdenv'; + stdenv = if stdenv.cc.isClang then overrideLibcxx llvmPackages_15.stdenv else stdenv; inherit (srcs.qtwebengine) version; inherit (darwin) bootstrap_cmds; python = python3; From 61d0e51c9c9ea8c8a7a9fa0a5d21e71ed825bb12 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 24 Sep 2024 08:32:50 -0400 Subject: [PATCH 0203/1574] qt5.qtwebengine: use the 13.3 SDK because the 14.4 SDK does not work While the 14.4 SDK works to build the rest of Qt 5, building Qt WebEngine fails with errors like the following: In file included from gen/base/base_jumbo_37.cc:14: In file included from ./../../3rdparty/chromium/base/mac/mach_port_rendezvous.cc:16: In file included from ../../3rdparty/chromium/base/mac/foundation_util.h:34: In file included from /nix/store/sfdyfscmykycv7nfscn551lyl3gf4n27-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h:39: In file included from /nix/store/sfdyfscmykycv7nfscn551lyl3gf4n27-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Headers/CoreText.h:26: In file included from /nix/store/sfdyfscmykycv7nfscn551lyl3gf4n27-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTFramesetter.h:21: In file included from /nix/store/sfdyfscmykycv7nfscn551lyl3gf4n27-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTTypesetter.h:20: /nix/store/sfdyfscmykycv7nfscn551lyl3gf4n27-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreText.framework/Headers/CTLine.h:138:5: error: unknown type name 'CFAttributedStringRef'; did you mean 'CFMutableStringRef'? CFAttributedStringRef attrString ) CT_AVAILABLE(macos(10.5), ios(3.2), watchos(2.0), tvos(9.0)); ^ /nix/store/sfdyfscmykycv7nfscn551lyl3gf4n27-apple-sdk-14.4/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:500:70: note: 'CFMutableStringRef' declared here typedef struct CF_BRIDGED_MUTABLE_TYPE(NSMutableString) __CFString * CFMutableStringRef; ^ --- pkgs/development/libraries/qt-5/modules/qtwebengine.nix | 5 +++-- pkgs/development/libraries/qt-5/qtModule.nix | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix index 38ad37fc0364..18d9d7459feb 100644 --- a/pkgs/development/libraries/qt-5/modules/qtwebengine.nix +++ b/pkgs/development/libraries/qt-5/modules/qtwebengine.nix @@ -20,7 +20,7 @@ , systemd , enableProprietaryCodecs ? true , gn -, cctools, cups, bootstrap_cmds, xcbuild, writeScriptBin +, apple-sdk_13, cctools, cups, bootstrap_cmds, xcbuild, writeScriptBin , ffmpeg ? null , lib, stdenv , version ? null @@ -51,7 +51,8 @@ let in -qtModule ({ +# Override the SDK because Qt WebEngine doesn’t seem to build using the 14.4 SDK. +(qtModule.override { apple-sdk_for_qt = apple-sdk_13; }) ({ pname = "qtwebengine"; nativeBuildInputs = [ bison flex git gperf ninja pkg-config (python.withPackages(ps: [ ps.html5lib ])) which gn nodejs diff --git a/pkgs/development/libraries/qt-5/qtModule.nix b/pkgs/development/libraries/qt-5/qtModule.nix index 2bf32e0a153a..ee59ee76d9e9 100644 --- a/pkgs/development/libraries/qt-5/qtModule.nix +++ b/pkgs/development/libraries/qt-5/qtModule.nix @@ -3,6 +3,7 @@ , buildPackages , mkDerivation , apple-sdk_14 +, apple-sdk_for_qt ? apple-sdk_14 , perl , qmake , patches @@ -27,7 +28,7 @@ mkDerivation (args // { buildInputs = args.buildInputs or [ ] # Per https://doc.qt.io/qt-5/macos.html#supported-versions - ++ lib.optionals stdenv.isDarwin [ apple-sdk_14 ]; + ++ lib.optionals stdenv.isDarwin [ apple-sdk_for_qt ]; nativeBuildInputs = (args.nativeBuildInputs or []) ++ [ From 830b9fe572fa374c4b7c31aac506003f1d8dfd5c Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 18:41:13 -0400 Subject: [PATCH 0204/1574] qt6.qtbase: build with the 14.4 SDK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Per upstream’s supported Darwin versions, built with the 14.4 SDK (corresponding to Xcode 15) and a 11.0 deployment target. To ensure that users of Qt have a compatible SDK and deployment target, propagate the 11.3 SDK and a 11.0 minimum version. Users that need a newer version can opt into using it by adding the SDK package to their build inputs. --- .../libraries/qt-6/modules/qtbase.nix | 27 ++++++------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/pkgs/development/libraries/qt-6/modules/qtbase.nix b/pkgs/development/libraries/qt-6/modules/qtbase.nix index f9c36c4311e9..c6ba346565b3 100644 --- a/pkgs/development/libraries/qt-6/modules/qtbase.nix +++ b/pkgs/development/libraries/qt-6/modules/qtbase.nix @@ -67,15 +67,10 @@ , unixODBCDrivers # darwin , moveBuildTree +, apple-sdk_11 +, apple-sdk_14 +, darwinMinVersionHook , xcbuild -, AGL -, AVFoundation -, AppKit -, Contacts -, CoreBluetooth -, EventKit -, GSS -, MetalKit # mingw , pkgsBuildBuild # optional dependencies @@ -162,14 +157,8 @@ stdenv.mkDerivation rec { xorg.xcbutilcursor libepoxy ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - AGL - AVFoundation - AppKit - Contacts - CoreBluetooth - EventKit - GSS - MetalKit + apple-sdk_14 + (darwinMinVersionHook "11.0") ] ++ lib.optionals libGLSupported [ libGL ] ++ lib.optionals stdenv.hostPlatform.isMinGW [ @@ -181,9 +170,9 @@ stdenv.mkDerivation rec { at-spi2-core ] ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform libinput) [ libinput - ] ++ lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isx86_64) [ - AppKit - CoreBluetooth + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ + apple-sdk_11 + (darwinMinVersionHook "11.0") ] ++ lib.optional withGtk3 gtk3 ++ lib.optional (libmysqlclient != null && !stdenv.hostPlatform.isMinGW) libmysqlclient From 2573d499bd7cfb3d1d1f52e20c5b8bf49eb5f7d8 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 30 Sep 2024 08:45:53 -0400 Subject: [PATCH 0205/1574] haskellPackages.network: fix build on x86_64-darwin --- pkgs/development/haskell-modules/configuration-darwin.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 6e7f7ef47b87..e931a60ada41 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -300,6 +300,13 @@ self: super: ({ __darwinAllowLocalNetworking = true; }); + # network requires `IP_RECVTOS`, which was added in 10.15. + network = + if lib.versionOlder (lib.getVersion pkgs.apple-sdk) "10.15" then + addBuildDepend pkgs.apple-sdk_10_15 super.network + else + super.network; + foldl = overrideCabal (drv: { postPatch = '' # This comment has been inserted, so the derivation hash changes, forcing From 088dce914530e9f8df086805eb5a935ad2aac811 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 29 Sep 2024 19:11:11 -0400 Subject: [PATCH 0206/1574] python3Packages.materialx: enable MSL support on x86_64-darwin --- .../python-modules/materialx/default.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pkgs/development/python-modules/materialx/default.nix b/pkgs/development/python-modules/materialx/default.nix index 0ebcc212617b..2e7af7b89b1f 100644 --- a/pkgs/development/python-modules/materialx/default.nix +++ b/pkgs/development/python-modules/materialx/default.nix @@ -5,13 +5,14 @@ fetchFromGitHub, cmake, setuptools, - darwin, libX11, libXt, libGL, openimageio, imath, python, + darwinMinVersionHook, + apple-sdk_14, }: buildPythonPackage rec { @@ -37,13 +38,10 @@ buildPythonPackage rec { openimageio imath ] - ++ lib.optionals stdenv.hostPlatform.isDarwin ( - with darwin.apple_sdk.frameworks; - [ - OpenGL - Cocoa - ] - ) + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + apple-sdk_14 + (darwinMinVersionHook "10.15") + ] ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ libX11 libXt @@ -53,9 +51,8 @@ buildPythonPackage rec { cmakeFlags = [ (lib.cmakeBool "MATERIALX_BUILD_OIIO" true) (lib.cmakeBool "MATERIALX_BUILD_PYTHON" true) - # don't build MSL shader back-end on x86_x64-darwin, as it requires a newer SDK with metal support (lib.cmakeBool "MATERIALX_BUILD_GEN_MSL" ( - stdenv.hostPlatform.isLinux || (stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isDarwin) + stdenv.hostPlatform.isLinux || stdenv.hostPlatform.isDarwin )) ]; From bed551533cef8e811bf40858fad45597e8f1c685 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Thu, 19 Sep 2024 22:09:56 -0400 Subject: [PATCH 0207/1574] neovim-unwrapped: update build inputs for new Darwin SDK The Darwin SDK in nixpkgs no longer provides libutil by default due to possible confusion when packages (such as Python) detect `libutil.h` and assume a different platform. Neovim requires it, so include it explicitly on Darwin. --- pkgs/by-name/ne/neovim-unwrapped/package.nix | 5 ++--- pkgs/top-level/all-packages.nix | 1 - 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/ne/neovim-unwrapped/package.nix b/pkgs/by-name/ne/neovim-unwrapped/package.nix index 886444b9442f..cec84b5d60f7 100644 --- a/pkgs/by-name/ne/neovim-unwrapped/package.nix +++ b/pkgs/by-name/ne/neovim-unwrapped/package.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchFromGitHub, removeReferencesTo, cmake, gettext, msgpack-c, libiconv +{ lib, stdenv, fetchFromGitHub, removeReferencesTo, cmake, gettext, msgpack-c, darwin , libuv, lua, pkg-config , unibilium , libvterm-neovim @@ -6,7 +6,6 @@ , fetchurl , buildPackages , treesitter-parsers ? import ./treesitter-parsers.nix { inherit fetchurl; } -, CoreServices , fixDarwinDylibNames , glibcLocales ? null, procps ? null @@ -104,7 +103,7 @@ in { neovimLuaEnv tree-sitter unibilium - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ libiconv CoreServices ] + ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ] ++ lib.optionals finalAttrs.finalPackage.doCheck [ glibcLocales procps ] ; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b6744b93ea24..54c78257eda2 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -33263,7 +33263,6 @@ with pkgs; wrapNeovimUnstable = callPackage ../applications/editors/neovim/wrapper.nix { }; wrapNeovim = neovim-unwrapped: lib.makeOverridable (neovimUtils.legacyWrapper neovim-unwrapped); neovim-unwrapped = callPackage ../by-name/ne/neovim-unwrapped/package.nix { - CoreServices = darwin.apple_sdk.frameworks.CoreServices; lua = if lib.meta.availableOn stdenv.hostPlatform luajit then luajit else lua5_1; }; From 2ab1817d71b577320ac4d80fdb49e74cc2f4eabe Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 31 Aug 2024 23:53:24 -0400 Subject: [PATCH 0208/1574] curl: allow static builds on x86_64-darwin --- pkgs/tools/networking/curl/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix index 567ddcbf7d02..ff2cd75eb869 100644 --- a/pkgs/tools/networking/curl/default.nix +++ b/pkgs/tools/networking/curl/default.nix @@ -228,7 +228,7 @@ stdenv.mkDerivation (finalAttrs: { maintainers = with lib.maintainers; [ lovek323 ]; platforms = lib.platforms.all; # Fails to link against static brotli or gss - broken = stdenv.hostPlatform.isStatic && (brotliSupport || gssSupport || stdenv.hostPlatform.system == "x86_64-darwin"); + broken = stdenv.hostPlatform.isStatic && (brotliSupport || gssSupport); pkgConfigModules = [ "libcurl" ]; mainProgram = "curl"; }; From fbf56c14a808ed3b016d44061489388e3e35dd0d Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 17 Sep 2024 00:27:22 -0400 Subject: [PATCH 0209/1574] curl: link libiconv in static builds on Darwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some of curl’s dependencies require libiconv, but the `configure` script is not including `-liconv` in the linker flags when checking for those dependencies in static builds. That causes the check to fail and prevents curl from building statically on Darwin. --- pkgs/tools/networking/curl/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/tools/networking/curl/default.nix b/pkgs/tools/networking/curl/default.nix index ff2cd75eb869..7f17b9b48752 100644 --- a/pkgs/tools/networking/curl/default.nix +++ b/pkgs/tools/networking/curl/default.nix @@ -82,6 +82,12 @@ stdenv.mkDerivation (finalAttrs: { strictDeps = true; + env = lib.optionalAttrs (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isStatic) { + # Not having this causes curl’s `configure` script to fail with static builds on Darwin because + # some of curl’s propagated inputs need libiconv. + NIX_LDFLAGS = "-liconv"; + }; + nativeBuildInputs = [ pkg-config perl ]; # Zlib and OpenSSL must be propagated because `libcurl.la' contains From c90b0830e54a373327239773df315d9ddc1422ab Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 7 Oct 2024 17:11:21 -0400 Subject: [PATCH 0210/1574] boost-build: drop Darwin compiler substitution MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream defaults to clang on Darwin now instead of GCC. This substitution doesn’t do anything. --- pkgs/development/tools/boost-build/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/development/tools/boost-build/default.nix b/pkgs/development/tools/boost-build/default.nix index fe8f1a4682fe..7a42df152829 100644 --- a/pkgs/development/tools/boost-build/default.nix +++ b/pkgs/development/tools/boost-build/default.nix @@ -36,11 +36,7 @@ stdenv.mkDerivation { patches = useBoost.boostBuildPatches or [] ++ lib.optional (useBoost ? version && lib.versionAtLeast useBoost.version "1.81") ./fix-clang-target.patch; - # Upstream defaults to gcc on darwin, but we use clang. - postPatch = '' - substituteInPlace src/build-system.jam \ - --replace "default-toolset = darwin" "default-toolset = clang-darwin" - '' + lib.optionalString (useBoost ? version && lib.versionAtLeast useBoost.version "1.82") '' + postPatch = lib.optionalString (useBoost ? version && lib.versionAtLeast useBoost.version "1.82") '' patchShebangs --build src/engine/build.sh ''; From 90df0c3ed8794b60e95bb105674dd3f6d7f81972 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 24 May 2024 23:03:52 -0400 Subject: [PATCH 0211/1574] boost-build: fix aarch64 clang cross-compilation --- pkgs/development/tools/boost-build/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/boost-build/default.nix b/pkgs/development/tools/boost-build/default.nix index 7a42df152829..2a82642e778d 100644 --- a/pkgs/development/tools/boost-build/default.nix +++ b/pkgs/development/tools/boost-build/default.nix @@ -36,7 +36,11 @@ stdenv.mkDerivation { patches = useBoost.boostBuildPatches or [] ++ lib.optional (useBoost ? version && lib.versionAtLeast useBoost.version "1.81") ./fix-clang-target.patch; - postPatch = lib.optionalString (useBoost ? version && lib.versionAtLeast useBoost.version "1.82") '' + postPatch = '' + # Upstream uses arm64, but nixpkgs uses aarch64. + substituteInPlace src/tools/clang.jam \ + --replace-fail 'arch = arm64' 'arch = aarch64' + '' + lib.optionalString (useBoost ? version && lib.versionAtLeast useBoost.version "1.82") '' patchShebangs --build src/engine/build.sh ''; From 6bda1a3ef42875b101bc178fc09b85836fb6514f Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 24 May 2024 15:22:01 -0400 Subject: [PATCH 0212/1574] boost: fix Darwin cross-compilation b2 tries to invoke the linker without a prefix, which fails. --- pkgs/development/libraries/boost/generic.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix index 9c6fb3e67203..94ee8c236423 100644 --- a/pkgs/development/libraries/boost/generic.nix +++ b/pkgs/development/libraries/boost/generic.nix @@ -181,6 +181,8 @@ stdenv.mkDerivation { cat << EOF >> user-config.jam using clang-darwin : : ${stdenv.cc.targetPrefix}c++ : "-rpath $out/lib/" + $AR + $RANLIB ; EOF '' From ebd240410fbd0102a75e4fd6983e7209a59b934f Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 13 Sep 2024 23:41:45 -0400 Subject: [PATCH 0213/1574] libpsl: fix Darwin cross-compilation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don’t include Python in libpsl’s build inputs when cross compiling to Darwin. Python does not support cross-compilation to Darwin, which prevents cross-compiling anything that depends on libpsl (such as curl). --- pkgs/development/libraries/libpsl/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libpsl/default.nix b/pkgs/development/libraries/libpsl/default.nix index 1659a55cb4ef..e41369db79f5 100644 --- a/pkgs/development/libraries/libpsl/default.nix +++ b/pkgs/development/libraries/libpsl/default.nix @@ -41,7 +41,9 @@ stdenv.mkDerivation rec { libidn2 libunistring libxslt - ] ++ lib.optional (!stdenv.hostPlatform.isStatic) python3; + ] ++ lib.optional ( + !stdenv.hostPlatform.isStatic && (stdenv.hostPlatform.isDarwin -> stdenv.buildPlatform == stdenv.hostPlatform) + ) python3; propagatedBuildInputs = [ publicsuffix-list From 86412523f5fa23646f82647bd6e2b9f3d72d4863 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 19:24:00 -0400 Subject: [PATCH 0214/1574] dotnetCorePackages.dotnet_{8,9}: ensure build can find the Swift overlay Clang should find the Swift overlay, but clang in nixpkgs does not include any path under `/usr` in its search paths unless that path is added manually as a normal search path (as done here). --- pkgs/development/compilers/dotnet/patch-nupkgs.nix | 1 + pkgs/development/compilers/dotnet/vmr.nix | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/pkgs/development/compilers/dotnet/patch-nupkgs.nix b/pkgs/development/compilers/dotnet/patch-nupkgs.nix index 6885d8df71f3..09fd8342368a 100644 --- a/pkgs/development/compilers/dotnet/patch-nupkgs.nix +++ b/pkgs/development/compilers/dotnet/patch-nupkgs.nix @@ -85,6 +85,7 @@ writeShellScriptBin "patch-nupkgs" ( pushd "$x" sed -i 's: -no_code_signature_warning::g' build/Microsoft.NETCore.Native.targets sed -i 's:Include="-ld_classic"::g' build/Microsoft.NETCore.Native.Unix.targets + sed -i 's:-L/usr/lib/swift:-L$(SDKROOT)/usr/lib/swift:g' build/Microsoft.NETCore.Native.Unix.targets touch .nix-patched-ilcompiler popd done diff --git a/pkgs/development/compilers/dotnet/vmr.nix b/pkgs/development/compilers/dotnet/vmr.nix index 2c95d7d6ee6b..d1385b4c3cac 100644 --- a/pkgs/development/compilers/dotnet/vmr.nix +++ b/pkgs/development/compilers/dotnet/vmr.nix @@ -293,6 +293,15 @@ stdenv.mkDerivation rec { -s \$prev -t elem -n SkipInstallerBuild -v true \ src/runtime/Directory.Build.props + # Make sure .NET uses the Swift overlay for the SDK active in the build environment. + substituteInPlace \ + src/runtime/src/coreclr/nativeaot/BuildIntegration/Microsoft.NETCore.Native.Unix.targets \ + --replace-fail '-L/usr/lib/swift' '-L$(SDKROOT)/usr/lib/swift' + + substituteInPlace \ + src/runtime/src/native/libs/System.Security.Cryptography.Native.Apple/extra_libs.cmake \ + --replace-fail '-L/usr/lib/swift' '-L''${CMAKE_OSX_SYSROOT}/usr/lib/swift' + # stop passing -sdk without a path # stop using xcrun # add -module-cache-path to fix swift errors, see sandboxProfile From ff25858fa013538520a332d8b322931756e7abe5 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 19:09:34 -0400 Subject: [PATCH 0215/1574] xdg-user-dirs: make sure libiconv is linked Because the Darwin SDK automatically propagates libiconv, it is no longer linked automatically (because that would link libiconv to everything whether it wanted it or not). xdg-user-dirs is failing to link not because it assumes libiconv comes with libc but because of a bug in its build system. The `configure` script detects how to link libiconv, but `Makefile.am` does not make use of that to link libiconv when it is needed. --- pkgs/by-name/xd/xdg-user-dirs/package.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/xd/xdg-user-dirs/package.nix b/pkgs/by-name/xd/xdg-user-dirs/package.nix index 98d95290ca1e..f86da5735896 100644 --- a/pkgs/by-name/xd/xdg-user-dirs/package.nix +++ b/pkgs/by-name/xd/xdg-user-dirs/package.nix @@ -1,11 +1,11 @@ { lib, stdenv, + autoreconfHook, fetchurl, libxslt, docbook_xsl, gettext, - libiconv, makeWrapper, }: @@ -18,9 +18,13 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-7G8G10lc26N6cyA5+bXhV4vLKWV2/eDaQO2y9SIg3zw="; }; - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ libiconv ]; + postPatch = '' + substituteInPlace Makefile.am \ + --replace-fail 'libraries = $(LIBINTL)' 'libraries = $(LIBICONV) $(LIBINTL)' + ''; nativeBuildInputs = [ + autoreconfHook makeWrapper libxslt docbook_xsl From 80fdf7d31f47bfdd212c4531272e42e9f0378dbc Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 9 Sep 2024 09:56:23 -0400 Subject: [PATCH 0216/1574] espanso: fix build on Darwin Use the 11.0 SDK with a 10.13 deployment target. --- pkgs/applications/office/espanso/default.nix | 33 +++----------------- pkgs/top-level/all-packages.nix | 4 +-- 2 files changed, 5 insertions(+), 32 deletions(-) diff --git a/pkgs/applications/office/espanso/default.nix b/pkgs/applications/office/espanso/default.nix index 5679c44ca2dc..4e4e27f749fc 100644 --- a/pkgs/applications/office/espanso/default.nix +++ b/pkgs/applications/office/espanso/default.nix @@ -18,17 +18,8 @@ , wxGTK32 , makeWrapper , stdenv -, AppKit -, Cocoa -, Foundation -, IOKit -, Kernel -, AVFoundation -, Carbon -, QTKit -, AVKit -, WebKit -, System +, apple-sdk_11 +, darwinMinVersionHook , waylandSupport ? false , x11Support ? stdenv.hostPlatform.isLinux , testers @@ -83,17 +74,8 @@ rustPlatform.buildRustPackage rec { libnotify libxkbcommon ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - AppKit - Cocoa - Foundation - IOKit - Kernel - AVFoundation - Carbon - QTKit - AVKit - WebKit - System + apple-sdk_11 + (darwinMinVersionHook "10.13") ] ++ lib.optionals waylandSupport [ wl-clipboard ] ++ lib.optionals x11Support [ @@ -148,13 +130,6 @@ rustPlatform.buildRustPackage rec { license = licenses.gpl3Plus; maintainers = with maintainers; [ kimat pyrox0 n8henrie ]; platforms = platforms.unix; - # With apple_sdk_10_12, - # kCFURLVolumeAvailableCapacityForImportantUsageKey - # is undefined. - # With apple_sdk_11_0, there is an issue with - # kColorSyncGenericGrayProfile. - broken = stdenv.hostPlatform.system == "x86_64-darwin"; - longDescription = '' Espanso detects when you type a keyword and replaces it while you're typing. diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b6744b93ea24..60199ae6a8ce 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4855,9 +4855,7 @@ with pkgs; eschalot = callPackage ../tools/security/eschalot { }; - espanso = callPackage ../applications/office/espanso { - inherit (darwin.apple_sdk_11_0.frameworks) AppKit Cocoa Foundation IOKit Kernel AVFoundation Carbon QTKit AVKit WebKit System; - }; + espanso = callPackage ../applications/office/espanso { }; espanso-wayland = espanso.override { x11Support = false; waylandSupport = true; From 7d5f19a3545d88a4d8df9c588451f4fdac65339f Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 25 Sep 2024 21:47:47 -0400 Subject: [PATCH 0217/1574] swift-wrapper: set up Darwin SDK paths for Swift --- pkgs/development/compilers/swift/wrapper/default.nix | 11 +++++++++++ pkgs/development/compilers/swift/wrapper/wrapper.sh | 8 ++++++++ 2 files changed, 19 insertions(+) diff --git a/pkgs/development/compilers/swift/wrapper/default.nix b/pkgs/development/compilers/swift/wrapper/default.nix index 0c7e0f8cbcf8..2bf8ef60ebf3 100644 --- a/pkgs/development/compilers/swift/wrapper/default.nix +++ b/pkgs/development/compilers/swift/wrapper/default.nix @@ -18,6 +18,10 @@ stdenv.mkDerivation (swift._wrapperParams // { swiftStaticModuleSubdir swiftStaticLibSubdir; swiftDriver = lib.optionalString useSwiftDriver "${swift-driver}/bin/swift-driver"; + env.darwinMinVersion = lib.optionalString stdenv.targetPlatform.isDarwin ( + stdenv.targetPlatform.darwinMinVersion + ); + passAsFile = [ "buildCommand" ]; buildCommand = '' mkdir -p $out/bin $out/nix-support @@ -48,6 +52,13 @@ stdenv.mkDerivation (swift._wrapperParams // { ln -s ${swift.lib}/lib $out/lib substituteAll ${./setup-hook.sh} $out/nix-support/setup-hook + + # Propagate any propagated inputs from the unwrapped Swift compiler, if any. + if [ -e "$swift/nix-support" ]; then + for input in "$swift/nix-support/"*propagated*; do + cp "$input" "$out/nix-support/$(basename "$input")" + done + fi ''; passthru = { diff --git a/pkgs/development/compilers/swift/wrapper/wrapper.sh b/pkgs/development/compilers/swift/wrapper/wrapper.sh index 5cd5d8da8819..3079bb182b1a 100644 --- a/pkgs/development/compilers/swift/wrapper/wrapper.sh +++ b/pkgs/development/compilers/swift/wrapper/wrapper.sh @@ -156,6 +156,14 @@ if [ -z "${NIX_CC_WRAPPER_FLAGS_SET_@suffixSalt@:-}" ]; then source $cc_wrapper/nix-support/add-flags.sh fi +# Only add darwin min version flag and set up `DEVELOPER_DIR` if a default darwin min version is set, +# which is a signal that we're targeting darwin. (Copied from add-flags in libc but tailored for Swift). +if [ "@darwinMinVersion@" ]; then + # Make sure the wrapped Swift compiler can find the overlays in the SDK. + NIX_SWIFTFLAGS_COMPILE+=" -I $SDKROOT/usr/lib/swift" + NIX_LDFLAGS_@suffixSalt@+=" -L $SDKROOT/usr/lib/swift" +fi + if [[ "$isCxx" = 1 ]]; then if [[ "$cxxInclude" = 1 ]]; then NIX_CFLAGS_COMPILE_@suffixSalt@+=" $NIX_CXXSTDLIB_COMPILE_@suffixSalt@" From cf0003e56fcf182ad36bacd2bcbe2763969d0be7 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 25 Sep 2024 21:47:47 -0400 Subject: [PATCH 0218/1574] swift: fix build with the new Darwin SDK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Swift’s build makes a few assumptions about how the SDK is set up that are not true anymore with the new SDK. Fix it to find the SDK at `$SDKROOT` and copy additional stubs it needs to bootstrap. --- .../compilers/swift/compiler/default.nix | 23 +++++++++++-------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/pkgs/development/compilers/swift/compiler/default.nix b/pkgs/development/compilers/swift/compiler/default.nix index c74ee850f4a5..1bdbb2d1221d 100644 --- a/pkgs/development/compilers/swift/compiler/default.nix +++ b/pkgs/development/compilers/swift/compiler/default.nix @@ -158,7 +158,9 @@ let # NOTE: @prog@ needs to be filled elsewhere. }; swiftWrapper = runCommand "swift-wrapper.sh" wrapperParams '' - substituteAll '${../wrapper/wrapper.sh}' "$out" + # Make empty to avoid adding the SDK’s modules in the bootstrap wrapper. Otherwise, the SDK conflicts with the + # shims the wrapper tries to build. + darwinMinVersion="" substituteAll '${../wrapper/wrapper.sh}' "$out" ''; makeSwiftcWrapper = writeShellScriptBin "nix-swift-make-swift-wrapper" '' set -euo pipefail @@ -182,8 +184,15 @@ let installPhase = '' mkdir -p $out/lib/swift cp -r \ - "${MacOSX-SDK}/usr/lib/swift/Swift.swiftmodule" \ - "${MacOSX-SDK}/usr/lib/swift/libswiftCore.tbd" \ + "$SDKROOT/usr/lib/swift/Swift.swiftmodule" \ + "$SDKROOT/usr/lib/swift/CoreFoundation.swiftmodule" \ + "$SDKROOT/usr/lib/swift/Dispatch.swiftmodule" \ + "$SDKROOT/usr/lib/swift/ObjectiveC.swiftmodule" \ + "$SDKROOT/usr/lib/swift/libswiftCore.tbd" \ + "$SDKROOT/usr/lib/swift/libswiftCoreFoundation.tbd" \ + "$SDKROOT/usr/lib/swift/libswiftDispatch.tbd" \ + "$SDKROOT/usr/lib/swift/libswiftFoundation.tbd" \ + "$SDKROOT/usr/lib/swift/libswiftObjectiveC.tbd" \ $out/lib/swift/ ''; }; @@ -452,14 +461,10 @@ in stdenv.mkDerivation { buildProject llvm llvm-project/llvm '' + lib.optionalString stdenv.hostPlatform.isDarwin '' - # Add appleSwiftCore to the search paths. We can't simply add it to - # buildInputs, because it is potentially an older stdlib than the one we're - # building. We have to remove it again after the main Swift build, or later - # build steps may fail. (Specific case: Concurrency backdeploy uses the - # Sendable protocol, which appears to not be present in the macOS 11 SDK.) + # Add appleSwiftCore to the search paths. Adding the whole SDK results in build failures. OLD_NIX_SWIFTFLAGS_COMPILE="$NIX_SWIFTFLAGS_COMPILE" OLD_NIX_LDFLAGS="$NIX_LDFLAGS" - export NIX_SWIFTFLAGS_COMPILE+=" -I ${appleSwiftCore}/lib/swift" + export NIX_SWIFTFLAGS_COMPILE=" -I ${appleSwiftCore}/lib/swift" export NIX_LDFLAGS+=" -L ${appleSwiftCore}/lib/swift" '' + '' From 1ad3206aeaa53bf5bcf1d076a797cee16738a03a Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 25 Sep 2024 21:47:47 -0400 Subject: [PATCH 0219/1574] swift: clean up ncurses and libedit references --- .../compilers/swift/compiler/default.nix | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/pkgs/development/compilers/swift/compiler/default.nix b/pkgs/development/compilers/swift/compiler/default.nix index 1bdbb2d1221d..6e90f10cdca1 100644 --- a/pkgs/development/compilers/swift/compiler/default.nix +++ b/pkgs/development/compilers/swift/compiler/default.nix @@ -511,12 +511,6 @@ in stdenv.mkDerivation { # which requires a special signature. # # CMAKE_BUILD_WITH_INSTALL_NAME_DIR ensures we don't use rpath on Darwin. - # - # NOTE: On Darwin, we only want ncurses in the linker search path, because - # headers are part of libsystem. Adding its headers to the search path - # causes strange mixing and errors. Note that libedit propagates ncurses, - # so we add both manually here, instead of relying on setup hooks. - # TODO: Find a better way to prevent this conflict. cmakeFlags=" -GNinja -DLLDB_SWIFTC=$SWIFT_BUILD_ROOT/swift/bin/swiftc @@ -534,11 +528,11 @@ in stdenv.mkDerivation { ${lib.optionalString stdenv.hostPlatform.isDarwin '' -DLLDB_USE_SYSTEM_DEBUGSERVER=ON ''} - -DLibEdit_INCLUDE_DIRS=${libedit.dev}/include - -DLibEdit_LIBRARIES=${libedit}/lib/libedit${stdenv.hostPlatform.extensions.sharedLibrary} - -DCURSES_INCLUDE_DIRS=${if stdenv.hostPlatform.isDarwin then "/var/empty" else ncurses.dev}/include - -DCURSES_LIBRARIES=${ncurses}/lib/libncurses${stdenv.hostPlatform.extensions.sharedLibrary} - -DPANEL_LIBRARIES=${ncurses}/lib/libpanel${stdenv.hostPlatform.extensions.sharedLibrary} + -DLibEdit_INCLUDE_DIRS=${lib.getInclude libedit}/include + -DLibEdit_LIBRARIES=${lib.getLib libedit}/lib/libedit${stdenv.hostPlatform.extensions.sharedLibrary} + -DCURSES_INCLUDE_DIRS=${lib.getInclude ncurses}/include + -DCURSES_LIBRARIES=${lib.getLib ncurses}/lib/libncurses${stdenv.hostPlatform.extensions.sharedLibrary} + -DPANEL_LIBRARIES=${lib.getLib ncurses}/lib/libpanel${stdenv.hostPlatform.extensions.sharedLibrary} "; buildProject lldb llvm-project/lldb From 4d080bdf16341da07fe2e4b0df933afdad9c4db7 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 25 Sep 2024 21:47:47 -0400 Subject: [PATCH 0220/1574] swift: add cctools.libtool as a native build input on Darwin --- pkgs/development/compilers/swift/compiler/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/compilers/swift/compiler/default.nix b/pkgs/development/compilers/swift/compiler/default.nix index 6e90f10cdca1..402cde2850f7 100644 --- a/pkgs/development/compilers/swift/compiler/default.nix +++ b/pkgs/development/compilers/swift/compiler/default.nix @@ -219,6 +219,7 @@ in stdenv.mkDerivation { sigtool # codesign DarwinTools # sw_vers fixDarwinDylibNames + cctools.libtool ]; buildInputs = [ From 083d02ffc42ca477a36379ee20f1ad8a3b023875 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 25 Sep 2024 21:47:47 -0400 Subject: [PATCH 0221/1574] swift: drop libarclite libarclite is needed to support ARC on very old deployment targets (10.10 and older). None of these deployment targets are supported deployment targets in nixpkgs, especially for Swift. This removes the need to package the command-line tools executables. --- pkgs/development/compilers/swift/compiler/default.nix | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pkgs/development/compilers/swift/compiler/default.nix b/pkgs/development/compilers/swift/compiler/default.nix index 402cde2850f7..00dc4de8b6c8 100644 --- a/pkgs/development/compilers/swift/compiler/default.nix +++ b/pkgs/development/compilers/swift/compiler/default.nix @@ -668,12 +668,6 @@ in stdenv.mkDerivation { # just copying the 3 symlinks inside to smaller closures. mkdir $lib/lib/swift/clang cp -P ${clang}/resource-root/* $lib/lib/swift/clang/ - - ${lib.optionalString stdenv.hostPlatform.isDarwin '' - # Install required library for ObjC interop. - # TODO: Is there no source code for this available? - cp -r ${CLTools_Executables}/usr/lib/arc $out/lib/arc - ''} ''; preFixup = lib.optionalString stdenv.hostPlatform.isLinux '' From 7c0c8fd74afa2812dc2131a5450e6160bc31f00d Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 25 Sep 2024 21:47:47 -0400 Subject: [PATCH 0222/1574] swift: build Swift with associated SDK version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Swift releases are associated with particular Darwin SDK versions. They don’t _have_ to use that version, but it makes sense to use that version by default. The deployment target is set to the supported Swift minimum versions. Unlike C and C++, Swift requires you to availability annotations, so propagating a newer SDK should be safe. --- .../compilers/swift/compiler/default.nix | 37 +++++++++++++------ pkgs/development/compilers/swift/default.nix | 2 - 2 files changed, 25 insertions(+), 14 deletions(-) diff --git a/pkgs/development/compilers/swift/compiler/default.nix b/pkgs/development/compilers/swift/compiler/default.nix index 00dc4de8b6c8..cea5a60bb778 100644 --- a/pkgs/development/compilers/swift/compiler/default.nix +++ b/pkgs/development/compilers/swift/compiler/default.nix @@ -35,14 +35,19 @@ , cctools # libtool , sigtool , DarwinTools -, CoreServices -, Foundation -, Combine -, MacOSX-SDK -, CLTools_Executables +, apple-sdk_13 +, darwinMinVersionHook }: let + apple-sdk_swift = apple-sdk_13; # Use the SDK that was available when Swift shipped. + + deploymentVersion = + if lib.versionOlder (targetPlatform.darwinMinVersion or "0") "10.15" then + "10.15" + else + targetPlatform.darwinMinVersion; + python3 = python3Packages.python.withPackages (p: [ p.setuptools ]); # python 3.12 compat. inherit (stdenv) hostPlatform targetPlatform; @@ -181,6 +186,8 @@ let name = "apple-swift-core"; dontUnpack = true; + buildInputs = [ apple-sdk_swift ]; + installPhase = '' mkdir -p $out/lib/swift cp -r \ @@ -232,11 +239,16 @@ in stdenv.mkDerivation { libuuid ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - CoreServices - Foundation - Combine + apple-sdk_swift + (darwinMinVersionHook deploymentVersion) ]; + # Will effectively be `buildInputs` when swift is put in `nativeBuildInputs`. + depsTargetTargetPropagated = lib.optionals stdenv.targetPlatform.isDarwin [ + apple-sdk_swift + (darwinMinVersionHook deploymentVersion) + ]; + # This is a partial reimplementation of our setup hook. Because we reuse # the Swift wrapper for the Swift build itself, we need to do some of the # same preparation. @@ -409,9 +421,6 @@ in stdenv.mkDerivation { mkdir -p ../build cd ../build export SWIFT_BUILD_ROOT="$PWD" - - # Most builds set a target, but LLDB doesn't. Harmless on non-Darwin. - export MACOSX_DEPLOYMENT_TARGET=10.15 ''; # These steps are derived from doing a normal build with. @@ -497,6 +506,7 @@ in stdenv.mkDerivation { -DSWIFT_PATH_TO_STRING_PROCESSING_SOURCE=$SWIFT_SOURCE_ROOT/swift-experimental-string-processing -DSWIFT_INSTALL_COMPONENTS=${lib.concatStringsSep ";" swiftInstallComponents} -DSWIFT_STDLIB_ENABLE_OBJC_INTEROP=${if stdenv.hostPlatform.isDarwin then "ON" else "OFF"} + -DSWIFT_DARWIN_DEPLOYMENT_VERSION_OSX=${deploymentVersion} " buildProject swift @@ -586,7 +596,7 @@ in stdenv.mkDerivation { -DSWIFT_DEST_ROOT=$out -DSWIFT_HOST_VARIANT_SDK=OSX - -DSWIFT_DARWIN_DEPLOYMENT_VERSION_OSX=10.15 + -DSWIFT_DARWIN_DEPLOYMENT_VERSION_OSX=${deploymentVersion} -DSWIFT_DARWIN_DEPLOYMENT_VERSION_IOS=13.0 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_MACCATALYST=13.0 -DSWIFT_DARWIN_DEPLOYMENT_VERSION_TVOS=13.0 @@ -708,6 +718,9 @@ in stdenv.mkDerivation { wrapProgram $out/bin/swift-frontend \ --prefix PATH : ${lib.makeBinPath runtimeDeps} + + # Needs to be propagated by the compiler not by its dev output. + moveToOutput nix-support/propagated-target-target-deps "$out" ''; passthru = { diff --git a/pkgs/development/compilers/swift/default.nix b/pkgs/development/compilers/swift/default.nix index 76db695b08c3..0330df6b3841 100644 --- a/pkgs/development/compilers/swift/default.nix +++ b/pkgs/development/compilers/swift/default.nix @@ -59,8 +59,6 @@ let swift-unwrapped = callPackage ./compiler { inherit (darwin) DarwinTools sigtool; - inherit (apple_sdk) MacOSX-SDK CLTools_Executables; - inherit (apple_sdk.frameworks) CoreServices Foundation Combine; }; swiftNoSwiftDriver = callPackage ./wrapper { From 15331b1c32b7cab75031df0c4325d845c0bdb9f4 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 25 Sep 2024 21:47:47 -0400 Subject: [PATCH 0223/1574] swift: use cctools.libtool directly --- .../compilers/swift/compiler/default.nix | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/pkgs/development/compilers/swift/compiler/default.nix b/pkgs/development/compilers/swift/compiler/default.nix index cea5a60bb778..651c6faa566c 100644 --- a/pkgs/development/compilers/swift/compiler/default.nix +++ b/pkgs/development/compilers/swift/compiler/default.nix @@ -30,7 +30,6 @@ # Darwin-specific , substituteAll , fixDarwinDylibNames -, runCommandLocal , xcbuild , cctools # libtool , sigtool @@ -54,19 +53,6 @@ let sources = callPackage ../sources.nix { }; - # Tools invoked by swift at run-time. - runtimeDeps = lib.optionals stdenv.hostPlatform.isDarwin [ - # libtool is used for static linking. This is part of cctools, but adding - # that as a build input puts an unwrapped linker in PATH, and breaks - # builds. This small derivation exposes just libtool. - # NOTE: The same applies to swift-driver, but that is currently always - # invoked via the old `swift` / `swiftc`. May change in the future. - (runCommandLocal "libtool" { } '' - mkdir -p $out/bin - ln -s ${cctools}/bin/libtool $out/bin/libtool - '') - ]; - # There are apparently multiple naming conventions on Darwin. Swift uses the # xcrun naming convention. See `configure_sdk_darwin` calls in CMake files. swiftOs = if targetPlatform.isDarwin @@ -717,7 +703,7 @@ in stdenv.mkDerivation { done wrapProgram $out/bin/swift-frontend \ - --prefix PATH : ${lib.makeBinPath runtimeDeps} + --prefix PATH : ${lib.makeBinPath [ cctools.libtool ]} # Needs to be propagated by the compiler not by its dev output. moveToOutput nix-support/propagated-target-target-deps "$out" From 5d128a9edc7420154d5f4cf30d8d3ec86a67d70b Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Thu, 5 Sep 2024 19:50:38 -0400 Subject: [PATCH 0224/1574] netbsd.install: fix build with new Darwin SDK To avoid adding headers to the SDK it does not have normally (`libutil.h`), darwin.libutil is not propagated. It must be included as a build input when it is needed by packages. --- pkgs/os-specific/bsd/netbsd/pkgs/install/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/os-specific/bsd/netbsd/pkgs/install/package.nix b/pkgs/os-specific/bsd/netbsd/pkgs/install/package.nix index fa8bb690075f..b179544eaee3 100644 --- a/pkgs/os-specific/bsd/netbsd/pkgs/install/package.nix +++ b/pkgs/os-specific/bsd/netbsd/pkgs/install/package.nix @@ -1,4 +1,5 @@ { + lib, mkDerivation, writeShellScript, mtree, @@ -10,7 +11,8 @@ groff, compatIfNeeded, fts, - + darwin, + stdenv, }: # HACK: to ensure parent directories exist. This emulates GNU @@ -42,7 +44,8 @@ mkDerivation { # fts header is needed. glibc already has this header, but musl doesn't, # so make sure pkgsMusl.netbsd.install still builds in case you want to # remove it! - ++ [ fts ]; + ++ [ fts ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ]; installPhase = '' runHook preInstall From 86c05253a1ce17d312e820af9b66986f7754516b Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 3 Sep 2024 20:08:12 -0400 Subject: [PATCH 0225/1574] python3Packages.skia-pathops: fix build on Darwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The vendored version of skia-pathops needs `libtool` from cctools to build. While it could be found using `xcrun --find libtool`, Skia’s build process doesn’t use that. It tries to run `libtool` directly. --- .../python-modules/skia-pathops/default.nix | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/skia-pathops/default.nix b/pkgs/development/python-modules/skia-pathops/default.nix index 8e27202ad838..308ecd70de06 100644 --- a/pkgs/development/python-modules/skia-pathops/default.nix +++ b/pkgs/development/python-modules/skia-pathops/default.nix @@ -10,6 +10,7 @@ fetchPypi, gn, pytestCheckHook, + cctools, xcodebuild, ApplicationServices, OpenGL, @@ -53,11 +54,16 @@ buildPythonPackage rec { EOF ''; - nativeBuildInputs = [ - cython - ninja - setuptools-scm - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ xcodebuild ]; + nativeBuildInputs = + [ + cython + ninja + setuptools-scm + ] + ++ lib.optionals stdenv.hostPlatform.isDarwin [ + cctools.libtool + xcodebuild + ]; buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ ApplicationServices From 4ebdf0442f00a12b12f989fe86ef25b02c4ae1a3 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 2 Sep 2024 01:36:56 -0400 Subject: [PATCH 0226/1574] libredirect: fix install name on aarch64-darwin The install name should be the full path. This matches x86_64-darwin. --- pkgs/build-support/libredirect/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/libredirect/default.nix b/pkgs/build-support/libredirect/default.nix index 1b8ebcaeacdd..0fe1e04d6aea 100644 --- a/pkgs/build-support/libredirect/default.nix +++ b/pkgs/build-support/libredirect/default.nix @@ -45,6 +45,7 @@ else stdenv.mkDerivation rec { -isystem ${llvmPackages.libclang.lib}/lib/clang/*/include \ -L${llvmPackages.clang.libc}/lib \ -Wl,-install_name,$libName \ + -Wl,-install_name,$out/lib/$libName \ -Wall -std=c99 -O3 -fPIC libredirect.c \ -shared -o "$libName" '' else if stdenv.hostPlatform.isDarwin then '' From 9167e4fbcddedf5738a5441ed7bbd310f01cdbe1 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 2 Sep 2024 01:36:56 -0400 Subject: [PATCH 0227/1574] libredirect: update for new Darwin SDK on aarch64-darwin The location of `libSystem.tbd` depends on the SDK, making it effectively dynamic. It must be located relative to the `SDKROOT` instead of to `clang.libc`. --- pkgs/build-support/libredirect/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/build-support/libredirect/default.nix b/pkgs/build-support/libredirect/default.nix index 0fe1e04d6aea..c30f4c90e2e6 100644 --- a/pkgs/build-support/libredirect/default.nix +++ b/pkgs/build-support/libredirect/default.nix @@ -41,10 +41,9 @@ else stdenv.mkDerivation rec { # like arm64(e). PATH=${bintools-unwrapped}/bin:${llvmPackages.clang-unwrapped}/bin:$PATH \ clang -arch x86_64 -arch arm64 -arch arm64e \ - -isystem ${llvmPackages.clang.libc}/include \ + -isystem "$SDKROOT/usr/include" \ -isystem ${llvmPackages.libclang.lib}/lib/clang/*/include \ - -L${llvmPackages.clang.libc}/lib \ - -Wl,-install_name,$libName \ + "-L$SDKROOT/usr/lib" \ -Wl,-install_name,$out/lib/$libName \ -Wall -std=c99 -O3 -fPIC libredirect.c \ -shared -o "$libName" From ac31fb750578c31122d71ba739421fc8ce1d34d1 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Thu, 29 Aug 2024 21:50:47 -0400 Subject: [PATCH 0228/1574] gcc: remove staging-next workaround --- .../compilers/gcc/common/builder.nix | 51 +++++-------------- 1 file changed, 12 insertions(+), 39 deletions(-) diff --git a/pkgs/development/compilers/gcc/common/builder.nix b/pkgs/development/compilers/gcc/common/builder.nix index 0e89cbd615ce..e7e3891780ce 100644 --- a/pkgs/development/compilers/gcc/common/builder.nix +++ b/pkgs/development/compilers/gcc/common/builder.nix @@ -7,13 +7,6 @@ let forceLibgccToBuildCrtStuff = import ./libgcc-buildstuff.nix { inherit lib stdenv; }; - - # todo(@reckenrode) Remove in staging. This is ugly, but it avoid unwanted rebuilds on Darwin and Linux. - enableDarwinFixesForStagingNext = - version: - stdenv.buildPlatform.isDarwin - && stdenv.buildPlatform.isx86_64 - && lib.versionOlder version "10"; in originalAttrs: (stdenv.mkDerivation (finalAttrs: originalAttrs // { @@ -27,20 +20,11 @@ originalAttrs: (stdenv.mkDerivation (finalAttrs: originalAttrs // { if test "$staticCompiler" = "1"; then EXTRA_LDFLAGS="-static" - ${ - if enableDarwinFixesForStagingNext finalAttrs.version then - '' - elif test "''${NIX_DONT_SET_RPATH-}" != "1"; then - EXTRA_LDFLAGS="-Wl,-rpath,''${!outputLib}/lib" - else - EXTRA_LDFLAGS="" - '' - else - '' - else - EXTRA_LDFLAGS="-Wl,-rpath,''${!outputLib}/lib" - '' - }fi + elif test "''${NIX_DONT_SET_RPATH-}" != "1"; then + EXTRA_LDFLAGS="-Wl,-rpath,''${!outputLib}/lib" + else + EXTRA_LDFLAGS="" + fi # GCC interprets empty paths as ".", which we don't want. if test -z "''${CPATH-}"; then unset CPATH; fi @@ -74,24 +58,13 @@ originalAttrs: (stdenv.mkDerivation (finalAttrs: originalAttrs // { extraLDFlags=("-L/usr/lib64" "-L/usr/lib") libc_libdir="/usr/lib" fi - ${ - if enableDarwinFixesForStagingNext finalAttrs.version then - '' - extraLDFlags=("-L$libc_libdir") - nixDontSetRpathVar=NIX_DONT_SET_RPATH''${post} - if test "''${!nixDontSetRpathVar-}" != "1"; then - extraLDFlags+=("-rpath" "$libc_libdir") - fi - extraLDFlags+=("''${extraLDFlags[@]}") - '' - else - '' - extraLDFlags=("-L$libc_libdir" "-rpath" "$libc_libdir" - "''${extraLDFlags[@]}") - '' -# The strange indentation with the next line is to ensure the string renders the same when the condition is false, -# which is necessary to prevent unwanted rebuilds in staging-next. -} for i in "''${extraLDFlags[@]}"; do + extraLDFlags=("-L$libc_libdir") + nixDontSetRpathVar=NIX_DONT_SET_RPATH''${post} + if test "''${!nixDontSetRpathVar-}" != "1"; then + extraLDFlags+=("-rpath" "$libc_libdir") + fi + extraLDFlags+=("''${extraLDFlags[@]}") + for i in "''${extraLDFlags[@]}"; do declare -g EXTRA_LDFLAGS''${post}+=" -Wl,$i" done done From 0421ee2dd8b823e940659b4ad51fce968d036b20 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 24 Sep 2024 22:30:53 -0400 Subject: [PATCH 0229/1574] wine64Packages.{stable,unstable,staging}: use the 14.4 SDK Wine supports a form of futexes on Darwin when built with the 14.4 SDK and running on 14.4 or later. It will fall back automatically to other primitives when running on older systems. --- pkgs/applications/emulators/wine/base.nix | 12 +++++------- pkgs/top-level/all-packages.nix | 9 --------- 2 files changed, 5 insertions(+), 16 deletions(-) diff --git a/pkgs/applications/emulators/wine/base.nix b/pkgs/applications/emulators/wine/base.nix index cff069a2e75c..7c4ca01acb59 100644 --- a/pkgs/applications/emulators/wine/base.nix +++ b/pkgs/applications/emulators/wine/base.nix @@ -6,7 +6,7 @@ wineRelease, patches, moltenvk, - buildScript ? null, configureFlags ? [], mainProgram ? "wine" + buildScript ? null, configureFlags ? [], mainProgram ? "wine", }: with import ./util.nix { inherit lib; }; @@ -23,12 +23,10 @@ let }; } ./setup-hook-darwin.sh; - darwinFrameworks = lib.optionals stdenv.hostPlatform.isDarwin ( - toBuildInputs pkgArches (pkgs: with pkgs.buildPackages.darwin.apple_sdk.frameworks; [ - CoreServices Foundation ForceFeedback AppKit OpenGL IOKit DiskArbitration PCSC Security - ApplicationServices AudioToolbox CoreAudio AudioUnit CoreMIDI OpenCL Cocoa Carbon - ]) - ); + # Using the 14.4 SDK allows Wine to use `os_sync_wait_on_address` for its futex implementation on Darwin. + # It does an availability check, so older systems will still work. + darwinFrameworks = toBuildInputs pkgArches (pkgs: [ pkgs.apple-sdk_14 ]); + # Building Wine with these flags isn’t supported on Darwin. Using any of them will result in an evaluation failures # because they will put Darwin in `meta.badPlatforms`. darwinUnsupportedFlags = [ diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b6744b93ea24..3769d5446479 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -38187,15 +38187,6 @@ with pkgs; winePackagesFor = wineBuild: lib.makeExtensible (self: with self; { callPackage = newScope self; - stdenv = - if pkgs.stdenv.hostPlatform.isDarwin then - # Match upstream, which builds with the latest SDK and a 10.7 deployment target. - overrideSDK pkgs.stdenv { - darwinMinVersion = "10.7"; - darwinSdkVersion = "11.0"; - } - else - pkgs.stdenv; inherit wineBuild; From 22369efb1ca9f2df5d56097588cfc12a2d2f715f Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 10 Aug 2024 23:12:20 -0400 Subject: [PATCH 0230/1574] maintainers/team-list.nix: add reckenrode to darwin --- maintainers/team-list.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/maintainers/team-list.nix b/maintainers/team-list.nix index 546c944e0c53..5f095fdbce99 100644 --- a/maintainers/team-list.nix +++ b/maintainers/team-list.nix @@ -194,7 +194,10 @@ with lib.maintainers; }; darwin = { - members = [ toonn ]; + members = [ + reckenrode + toonn + ]; githubTeams = [ "darwin-maintainers" ]; scope = "Maintain Darwin compatibility of packages and Darwin-only packages."; shortName = "Darwin"; From 08ad88285dd5f058d8ddc606150f753be7f9f493 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 21 Aug 2024 07:50:34 -0400 Subject: [PATCH 0231/1574] darwin: add bootstrapStdenv Packages propagated by the SDK need to use a stdenv that does not propagate anything. Otherwise, an infinite recursion will result when building those packages. For consistency, all source releases should use the bootstrapStdenv. --- pkgs/top-level/darwin-packages.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index f0bdad863e90..30d5ef83061a 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -20,6 +20,18 @@ let }; aliases = self: super: lib.optionalAttrs config.allowAliases (import ../top-level/darwin-aliases.nix lib self super pkgs); + + mkBootstrapStdenv = + stdenv: + stdenv.override (old: { + extraBuildInputs = map ( + pkg: + if lib.isDerivation pkg && lib.getName pkg == "apple-sdk" then + pkg.override { enableBootstrap = true; } + else + pkg + ) (old.extraBuildInputs or [ ]); + }); in makeScopeWithSplicing' { @@ -133,6 +145,9 @@ impure-cmds // appleSourcePackages // chooseLibs // { bintools = self.binutils-unwrapped; }; + # Removes propagated packages from the stdenv, so those packages can be built without depending upon themselves. + bootstrapStdenv = mkBootstrapStdenv pkgs.stdenv; + # TODO(@connorbaker): See https://github.com/NixOS/nixpkgs/issues/229389. cf-private = self.apple_sdk.frameworks.CoreFoundation; From 40d415f4df5548679dcb47331c83a2d4e7741ae8 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 22 Sep 2024 23:20:16 -0400 Subject: [PATCH 0232/1574] darwin: add darwinMinVersionHook Adding the hook allows the deployment target to be changed without having to mess with the stdenv. The can also be propagated, which is useful for libraries that have a minimum deployment target higher than the default in nixpkgs. In that case, they can propagate the hook to ensure library users are not targeting an unsupported version. --- .../darwin-min-version-hook/setup-hook.sh | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 12 +++++++++ 2 files changed, 38 insertions(+) create mode 100644 pkgs/os-specific/darwin/darwin-min-version-hook/setup-hook.sh diff --git a/pkgs/os-specific/darwin/darwin-min-version-hook/setup-hook.sh b/pkgs/os-specific/darwin/darwin-min-version-hook/setup-hook.sh new file mode 100644 index 000000000000..17a42eb02ef4 --- /dev/null +++ b/pkgs/os-specific/darwin/darwin-min-version-hook/setup-hook.sh @@ -0,0 +1,26 @@ +local role_post +getHostRole + +# Compare the requested deployment target to the existing one. The deployment target has to be a version number, +# and this hook tries to do the right thing with deployment targets set outside of it, so it has to parse +# the version numbers for the comparison manually. + +local darwinMinVersion=@deploymentTarget@ +local darwinMinVersionVar=@darwinMinVersionVariable@${role_post} + +local currentDeploymentTargetArr +IFS=. read -a currentDeploymentTargetArr <<< "${!darwinMinVersionVar-0.0.0}" + +local darwinMinVersionArr +IFS=. read -a darwinMinVersionArr <<< "$darwinMinVersion" + +local currentDeploymentTarget +currentDeploymentTarget=$(printf "%02d%02d%02d" "${currentDeploymentTargetArr[0]-0}" "${currentDeploymentTargetArr[1]-0}" "${currentDeploymentTargetArr[2]-0}") + +darwinMinVersion=$(printf "%02d%02d%02d" "${darwinMinVersionArr[0]-0}" "${darwinMinVersionArr[1]-0}" "${darwinMinVersionArr[2]-0}") + +if [ "$darwinMinVersion" -gt "$currentDeploymentTarget" ]; then + export "$darwinMinVersionVar"=@deploymentTarget@ +fi + +unset -v role_post currentDeploymentTarget currentDeploymentTargetArr darwinMinVersion darwinMinVersionArr darwinMinVersionVar diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index b6744b93ea24..fd4ca3df70c7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23740,6 +23740,18 @@ with pkgs; plumed = callPackage ../development/libraries/science/chemistry/plumed { }; + ### DEVELOPMENT / LIBRARIES / DARWIN SDKS + + darwinMinVersionHook = + deploymentTarget: + makeSetupHook { + name = "darwin-deployment-target-hook-${deploymentTarget}"; + substitutions = { + darwinMinVersionVariable = lib.escapeShellArg stdenv.hostPlatform.darwinMinVersionVariable; + deploymentTarget = lib.escapeShellArg deploymentTarget; + }; + } ../os-specific/darwin/darwin-min-version-hook/setup-hook.sh; + ### DEVELOPMENT / LIBRARIES / AGDA agdaPackages = callPackage ./agda-packages.nix { From 5721c4fa47f6aa99c039bbceab40392d5110794e Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 30 Sep 2024 09:12:53 -0400 Subject: [PATCH 0233/1574] darwin: add libSystem The new Darwin SDK pattern relies on an effectively empty, stub libc implementation. The actual libSystem to be linked is located dynamically based on the active SDK for the target. Independent build, host, and target SDKs are all supported by Darwin. The stub libSystem contains empty `include` and `lib` folders to avoid warnings from wrappers that add those paths unconditionally, which can turn into errors when a package is building with warnings-as-errors. While it would be nice if a fallback libc could be provided, SDK headers are not compatible between framework versions. Providing a fallback risks mixing headers from different frameworks, which can result in hard to diagnose errors involving semicolons or other punctuation. --- pkgs/os-specific/darwin/libSystem/default.nix | 13 +++++++++++++ pkgs/top-level/darwin-packages.nix | 2 ++ 2 files changed, 15 insertions(+) create mode 100644 pkgs/os-specific/darwin/libSystem/default.nix diff --git a/pkgs/os-specific/darwin/libSystem/default.nix b/pkgs/os-specific/darwin/libSystem/default.nix new file mode 100644 index 000000000000..1dea8e846fdf --- /dev/null +++ b/pkgs/os-specific/darwin/libSystem/default.nix @@ -0,0 +1,13 @@ +{ stdenvNoCC }: + +# Darwin dynamically determines the `libSystem` to use based on the SDK found at `DEVELOPER_DIR`. +# By default, this will be `apple-sdk` or one of the versioned variants. +stdenvNoCC.mkDerivation { + pname = "libSystem"; + version = "B"; + + # Silence linker warnings due a missing `lib` (which is added by cc-wrapper). + buildCommand = '' + mkdir -p "$out/include" "$out/lib" + ''; +} diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index 30d5ef83061a..0d3cf4033efa 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -148,6 +148,8 @@ impure-cmds // appleSourcePackages // chooseLibs // { # Removes propagated packages from the stdenv, so those packages can be built without depending upon themselves. bootstrapStdenv = mkBootstrapStdenv pkgs.stdenv; + libSystem = callPackage ../os-specific/darwin/libSystem { }; + # TODO(@connorbaker): See https://github.com/NixOS/nixpkgs/issues/229389. cf-private = self.apple_sdk.frameworks.CoreFoundation; From 121149836ef2c33bb62abd323eb95780ac7d59a2 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 2 Sep 2024 19:27:03 -0400 Subject: [PATCH 0234/1574] darwin: add xcodeProjectCheckHook This hook is used by source releases that build with Meson to assert that the Xcode project has not changed since the previous release. This is meant to be a check to force those updating source release packages to make sure they have incorporated any changes that were made to the Xcode project into the Meson build. --- .../xcode-project-check-hook/setup-hook.sh | 55 +++++++++++++++++++ pkgs/top-level/darwin-packages.nix | 5 ++ 2 files changed, 60 insertions(+) create mode 100644 pkgs/os-specific/darwin/xcode-project-check-hook/setup-hook.sh diff --git a/pkgs/os-specific/darwin/xcode-project-check-hook/setup-hook.sh b/pkgs/os-specific/darwin/xcode-project-check-hook/setup-hook.sh new file mode 100644 index 000000000000..a39c50adbeae --- /dev/null +++ b/pkgs/os-specific/darwin/xcode-project-check-hook/setup-hook.sh @@ -0,0 +1,55 @@ +# Verify that the Xcode project has not changed unexpectedly. This is only useful for source releases that are +# being built with other build systems (e.g., Meson) instead of xcbuild. + +verifyXcodeProjectHash() { + printHashInstructions() { + echo '1. Set xcodeHash to an empty string: `xcodeHash = "";`' + echo '2. Build the derivation and wait for it to fail with a hash mismatch' + echo '3. Copy the "got: sha256-..." value back into the xcodeHash field' + echo ' You should have: xcodeHash = "sha256-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX=";' + } + + if [ -z "${xcodeHash-}" ]; then + echo "error: xcodeHash missing" + echo + echo "To fix the issue:" + printHashInstructions + exit 1 + fi + + if [ -z "${xcodeProject-}" ]; then + echo "error: xcodeProject missing" + echo + echo "To fix the issue: Set xcodeProject to the name of the project" + exit 1 + fi + + local xcodeHashArr + readarray -t -d - xcodeHashArr < <(printf "$xcodeHash") + + local hashType=${xcodeHashArr[0]} + local expectedHash=${xcodeHashArr[1]} + + if [ -z "$hashType" ] || [ -z "$expectedHash" ]; then + echo "error: xcodeHash is in invalid format" + echo + echo "To fix the issue:" + printHashInstructions + exit 1 + fi + + local hash + hash=$(openssl "$hashType" -binary "$sourceRoot/$xcodeProject/project.pbxproj" | base64) + + if [ "$hash" != "$expectedHash" ]; then + echo "error: hash mismatch in $xcodeProject/project.pbxproj" + echo " specified: $xcodeHash" + echo " got: $hashType-$hash" + echo + echo 'Upstream Xcode project has changed. Update `meson.build` with any changes, then update `xcodeHash`.' + printHashInstructions + exit 1 + fi +} + +postUnpackHooks+=(verifyXcodeProjectHash) diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index 0d3cf4033efa..c47cc3e565e7 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -242,6 +242,11 @@ impure-cmds // appleSourcePackages // chooseLibs // { setupHook = null; }); + xcodeProjectCheckHook = pkgs.makeSetupHook { + name = "xcode-project-check-hook"; + propagatedBuildInputs = [ pkgs.pkgsBuildHost.openssl ]; + } ../os-specific/darwin/xcode-project-check-hook/setup-hook.sh; + # Formerly the CF attribute. Use this is you need the open source release. swift-corelibs-foundation = callPackage ../os-specific/darwin/swift-corelibs/corefoundation.nix { }; From 42a6b873a601f5069a9cd7c153c200534e41bd23 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 21 Sep 2024 08:34:44 -0400 Subject: [PATCH 0235/1574] hello: make sure libiconv is linked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Because the Darwin SDK automatically propagates libiconv, it is no longer linked automatically (because that would link libiconv to everything whether it wanted it or not). hello is failing to link not because it assumes libiconv comes with libc but because of a bug in its build system. The `configure` script detects how to link libiconv, but `Makefile.am` does not make use of that to link libiconv when it is needed. Unfortunately, patching `Makefile.am` can’t be done because using `autoreconfHook` will update some gettext stuff with an incompatible version, causing an error when building. --- pkgs/by-name/he/hello/package.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/by-name/he/hello/package.nix b/pkgs/by-name/he/hello/package.nix index 659899bd5f9b..d56423eea6cf 100644 --- a/pkgs/by-name/he/hello/package.nix +++ b/pkgs/by-name/he/hello/package.nix @@ -17,6 +17,13 @@ stdenv.mkDerivation (finalAttrs: { hash = "sha256-jZkUKv2SV28wsM18tCqNxoCZmLxdYH2Idh9RLibH2yA="; }; + # The GNU Hello `configure` script detects how to link libiconv but fails to actually make use of that. + # Unfortunately, this cannot be a patch to `Makefile.am` because `autoreconfHook` causes a gettext + # infrastructure mismatch error when trying to build `hello`. + env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { + NIX_LDFLAGS = "-liconv"; + }; + doCheck = true; doInstallCheck = true; From 4ad6c7f19d682a8e26930e94f1e5f01428753909 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 18:41:13 -0400 Subject: [PATCH 0236/1574] qt6: build Qt 6 modules with the 14.4 SDK This change ensures all Qt modules build with the latest SDK. --- pkgs/development/libraries/qt-6/default.nix | 43 ++------------ .../libraries/qt-6/modules/qtconnectivity.nix | 5 -- .../libraries/qt-6/modules/qtmultimedia.nix | 4 +- .../libraries/qt-6/modules/qtspeech.nix | 4 +- .../libraries/qt-6/modules/qtwebengine.nix | 58 +------------------ .../libraries/qt-6/modules/qtwebview.nix | 4 +- pkgs/development/libraries/qt-6/qtModule.nix | 6 +- 7 files changed, 14 insertions(+), 110 deletions(-) diff --git a/pkgs/development/libraries/qt-6/default.nix b/pkgs/development/libraries/qt-6/default.nix index 1ee93acfe485..00b57472488b 100644 --- a/pkgs/development/libraries/qt-6/default.nix +++ b/pkgs/development/libraries/qt-6/default.nix @@ -42,8 +42,6 @@ let qtbase = callPackage ./modules/qtbase.nix { withGtk3 = !stdenv.hostPlatform.isMinGW; inherit (srcs.qtbase) src version; - inherit (darwin.apple_sdk_12_3.frameworks) - AGL AVFoundation AppKit Contacts CoreBluetooth EventKit GSS MetalKit; patches = [ ./patches/0001-qtbase-qmake-always-use-libname-instead-of-absolute-.patch ./patches/0002-qtbase-qmake-fix-mkspecs-for-darwin.patch @@ -55,14 +53,6 @@ let ./patches/0008-qtbase-find-qmlimportscanner-in-macdeployqt-via-envi.patch ./patches/0009-qtbase-check-in-the-QML-folder-of-this-library-does-.patch ./patches/0010-qtbase-derive-plugin-load-path-from-PATH.patch - # Revert "macOS: Silence warning about supporting secure state restoration" - # fix build with macOS sdk < 12.0 - (fetchpatch2 { - url = "https://github.com/qt/qtbase/commit/fc1549c01445bb9c99d3ba6de8fa9da230614e72.patch"; - revert = true; - hash = "sha256-cjB2sC4cvZn0UEc+sm6ZpjyC78ssqB1Kb5nlZQ15M4A="; - }) - # Backport patch for https://bugs.kde.org/show_bug.cgi?id=493116 # FIXME: remove for 6.8.1 (fetchpatch2 { @@ -119,9 +109,7 @@ let qt3d = callPackage ./modules/qt3d.nix { }; qt5compat = callPackage ./modules/qt5compat.nix { }; qtcharts = callPackage ./modules/qtcharts.nix { }; - qtconnectivity = callPackage ./modules/qtconnectivity.nix { - inherit (darwin.apple_sdk_12_3.frameworks) IOBluetooth PCSC; - }; + qtconnectivity = callPackage ./modules/qtconnectivity.nix { }; qtdatavis3d = callPackage ./modules/qtdatavis3d.nix { }; qtdeclarative = callPackage ./modules/qtdeclarative.nix { }; qtdoc = callPackage ./modules/qtdoc.nix { }; @@ -134,7 +122,6 @@ let qtlottie = callPackage ./modules/qtlottie.nix { }; qtmultimedia = callPackage ./modules/qtmultimedia.nix { inherit (gst_all_1) gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi; - inherit (darwin.apple_sdk_12_3.frameworks) VideoToolbox; }; qtmqtt = callPackage ./modules/qtmqtt.nix { }; qtnetworkauth = callPackage ./modules/qtnetworkauth.nix { }; @@ -143,9 +130,7 @@ let qtserialbus = callPackage ./modules/qtserialbus.nix { }; qtserialport = callPackage ./modules/qtserialport.nix { }; qtshadertools = callPackage ./modules/qtshadertools.nix { }; - qtspeech = callPackage ./modules/qtspeech.nix { - inherit (darwin.apple_sdk_12_3.frameworks) Cocoa; - }; + qtspeech = callPackage ./modules/qtspeech.nix { }; qtquick3d = callPackage ./modules/qtquick3d.nix { }; qtquick3dphysics = callPackage ./modules/qtquick3dphysics.nix { }; qtquickeffectmaker = callPackage ./modules/qtquickeffectmaker.nix { }; @@ -159,30 +144,10 @@ let qtwayland = callPackage ./modules/qtwayland.nix { }; qtwebchannel = callPackage ./modules/qtwebchannel.nix { }; qtwebengine = callPackage ./modules/qtwebengine.nix { - inherit (darwin) autoSignDarwinBinariesHook bootstrap_cmds xnu; - inherit (darwin.apple_sdk_12_3) libpm libunwind; - inherit (darwin.apple_sdk_12_3.libs) sandbox; - inherit (darwin.apple_sdk_12_3.frameworks) - AGL AVFoundation Accelerate Cocoa CoreLocation CoreML ForceFeedback - GameController ImageCaptureCore LocalAuthentication - MediaAccessibility MediaPlayer MetalKit Network OpenDirectory Quartz - ReplayKit SecurityInterface Vision; - qtModule = callPackage - ({ qtModule }: qtModule.override { - stdenv = - if stdenv.hostPlatform.isDarwin - then overrideSDK stdenv { darwinMinVersion = "11.0"; darwinSdkVersion = "11.0"; } - else stdenv; - }) - { }; - xcbuild = buildPackages.xcbuild.override { - productBuildVer = "20A2408"; - }; + inherit (darwin) autoSignDarwinBinariesHook bootstrap_cmds; }; qtwebsockets = callPackage ./modules/qtwebsockets.nix { }; - qtwebview = callPackage ./modules/qtwebview.nix { - inherit (darwin.apple_sdk_12_3.frameworks) WebKit; - }; + qtwebview = callPackage ./modules/qtwebview.nix { }; wrapQtAppsHook = callPackage ({ makeBinaryWrapper }: makeSetupHook diff --git a/pkgs/development/libraries/qt-6/modules/qtconnectivity.nix b/pkgs/development/libraries/qt-6/modules/qtconnectivity.nix index 126920dd5051..8a48c8490435 100644 --- a/pkgs/development/libraries/qt-6/modules/qtconnectivity.nix +++ b/pkgs/development/libraries/qt-6/modules/qtconnectivity.nix @@ -5,8 +5,6 @@ , qtdeclarative , bluez , pkg-config -, IOBluetooth -, PCSC }: qtModule { @@ -16,8 +14,5 @@ qtModule { propagatedBuildInputs = [ qtbase qtdeclarative - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - IOBluetooth - PCSC ]; } diff --git a/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix b/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix index 8cdabc32b657..519bec8c37ae 100644 --- a/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix +++ b/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix @@ -21,7 +21,6 @@ , elfutils , libunwind , orc -, VideoToolbox , pkgsBuildBuild }: @@ -34,8 +33,7 @@ qtModule { ++ lib.optionals (lib.meta.availableOn stdenv.hostPlatform elfutils) [ elfutils ]; propagatedBuildInputs = [ qtbase qtdeclarative qtsvg qtshadertools ] ++ lib.optionals (!stdenv.hostPlatform.isMinGW) [ qtquick3d ] - ++ lib.optionals stdenv.hostPlatform.isLinux [ gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ VideoToolbox ]; + ++ lib.optionals stdenv.hostPlatform.isLinux [ gstreamer gst-plugins-base gst-plugins-good gst-libav gst-vaapi ]; patches = [ ../patches/fix-qtgui-include-incorrect-case.patch diff --git a/pkgs/development/libraries/qt-6/modules/qtspeech.nix b/pkgs/development/libraries/qt-6/modules/qtspeech.nix index 3fbfa6e5d90d..828f34bb72b9 100644 --- a/pkgs/development/libraries/qt-6/modules/qtspeech.nix +++ b/pkgs/development/libraries/qt-6/modules/qtspeech.nix @@ -7,13 +7,11 @@ , flite , alsa-lib , speechd-minimal -, Cocoa }: qtModule { pname = "qtspeech"; nativeBuildInputs = [ pkg-config ]; buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ flite alsa-lib speechd-minimal ]; - propagatedBuildInputs = [ qtbase qtmultimedia ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa ]; + propagatedBuildInputs = [ qtbase qtmultimedia ]; } diff --git a/pkgs/development/libraries/qt-6/modules/qtwebengine.nix b/pkgs/development/libraries/qt-6/modules/qtwebengine.nix index 11a70e53bfcd..c137bd5a1f68 100644 --- a/pkgs/development/libraries/qt-6/modules/qtwebengine.nix +++ b/pkgs/development/libraries/qt-6/modules/qtwebengine.nix @@ -21,6 +21,7 @@ , libXtst , libxshmfence , libXi +, cups , fontconfig , freetype , harfbuzz @@ -64,31 +65,6 @@ , bootstrap_cmds , cctools , xcbuild -, AGL -, AVFoundation -, Accelerate -, Cocoa -, CoreLocation -, CoreML -, ForceFeedback -, GameController -, ImageCaptureCore -, LocalAuthentication -, MediaAccessibility -, MediaPlayer -, MetalKit -, Network -, OpenDirectory -, Quartz -, ReplayKit -, SecurityInterface -, Vision -, openbsm -, libunwind -, cups -, libpm -, sandbox -, xnu }: qtModule { @@ -167,8 +143,6 @@ qtModule { --replace "AppleClang" "Clang" substituteInPlace cmake/Functions.cmake \ --replace "/usr/bin/xcrun" "${xcbuild}/bin/xcrun" - substituteInPlace src/3rdparty/chromium/third_party/crashpad/crashpad/util/BUILD.gn \ - --replace "\$sysroot/usr" "${xnu}" ''; cmakeFlags = [ @@ -197,7 +171,7 @@ qtModule { ] ++ lib.optionals enableProprietaryCodecs [ "-DQT_FEATURE_webengine_proprietary_codecs=ON" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - "-DCMAKE_OSX_DEPLOYMENT_TARGET=${stdenv.hostPlatform.darwinSdkVersion}" + "-DCMAKE_OSX_DEPLOYMENT_TARGET=11.0" # Per Qt 6’s deployment target (why doesn’t the hook work?) ]; propagatedBuildInputs = [ @@ -272,36 +246,10 @@ qtModule { libkrb5 mesa - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - AGL - AVFoundation - Accelerate - Cocoa - CoreLocation - CoreML - ForceFeedback - GameController - ImageCaptureCore - LocalAuthentication - MediaAccessibility - MediaPlayer - MetalKit - Network - OpenDirectory - Quartz - ReplayKit - SecurityInterface - Vision - - openbsm - libunwind ]; buildInputs = [ cups - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - libpm - sandbox ]; requiredSystemFeatures = [ "big-parallel" ]; @@ -316,7 +264,5 @@ qtModule { # This build takes a long time; particularly on slow architectures # 1 hour on 32x3.6GHz -> maybe 12 hours on 4x2.4GHz timeout = 24 * 3600; - # Not compatible with macOS 11 without massive patching - broken = stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "12"; }; } diff --git a/pkgs/development/libraries/qt-6/modules/qtwebview.nix b/pkgs/development/libraries/qt-6/modules/qtwebview.nix index dfc2da1df555..149ccc2a7ea1 100644 --- a/pkgs/development/libraries/qt-6/modules/qtwebview.nix +++ b/pkgs/development/libraries/qt-6/modules/qtwebview.nix @@ -3,12 +3,10 @@ , qtModule , qtdeclarative , qtwebengine -, WebKit }: qtModule { pname = "qtwebview"; propagatedBuildInputs = [ qtdeclarative ] - ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ qtwebengine ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ WebKit ]; + ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ qtwebengine ]; } diff --git a/pkgs/development/libraries/qt-6/qtModule.nix b/pkgs/development/libraries/qt-6/qtModule.nix index ef5aa994ce90..bb2243318a10 100644 --- a/pkgs/development/libraries/qt-6/qtModule.nix +++ b/pkgs/development/libraries/qt-6/qtModule.nix @@ -1,5 +1,6 @@ { lib , stdenv +, apple-sdk_14 , cmake , ninja , perl @@ -19,7 +20,10 @@ stdenv.mkDerivation (args // { inherit pname version src; patches = args.patches or patches.${pname} or [ ]; - buildInputs = args.buildInputs or [ ]; + buildInputs = + args.buildInputs or [ ] + # Per https://doc.qt.io/qt-6/macos.html#supported-versions + ++ lib.optionals stdenv.isDarwin [ apple-sdk_14 ]; nativeBuildInputs = (args.nativeBuildInputs or [ ]) ++ [ cmake ninja perl ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ moveBuildTree ]; propagatedBuildInputs = From 4ec83510956bb7e1304516dee74854cfc4d889ea Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 18:41:13 -0400 Subject: [PATCH 0237/1574] qt6.qtmultimedia: drop old SDK compatibility patch MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Qt Multimediate is being built with a newer SDK that has the new definition, so don’t bother to patch it out anymore. The symbol is defined in a backwards compatible way, so it will still work on older releases that don’t have it in their SDKs. --- .../libraries/qt-6/modules/qtmultimedia.nix | 2 - ...n-revert-replace-deprecated-constant.patch | 50 ------------------- 2 files changed, 52 deletions(-) delete mode 100644 pkgs/development/libraries/qt-6/patches/qtmultimedia-darwin-revert-replace-deprecated-constant.patch diff --git a/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix b/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix index 519bec8c37ae..ae02112475f0 100644 --- a/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix +++ b/pkgs/development/libraries/qt-6/modules/qtmultimedia.nix @@ -37,8 +37,6 @@ qtModule { patches = [ ../patches/fix-qtgui-include-incorrect-case.patch - # Remove new constants since macOS 12+, since we build Qt with the macOS 11 SDK - ../patches/qtmultimedia-darwin-revert-replace-deprecated-constant.patch ] ++ lib.optionals stdenv.hostPlatform.isMinGW [ ../patches/qtmultimedia-windows-no-uppercase-libs.patch ../patches/qtmultimedia-windows-resolve-function-name.patch diff --git a/pkgs/development/libraries/qt-6/patches/qtmultimedia-darwin-revert-replace-deprecated-constant.patch b/pkgs/development/libraries/qt-6/patches/qtmultimedia-darwin-revert-replace-deprecated-constant.patch deleted file mode 100644 index 3196a6e4158c..000000000000 --- a/pkgs/development/libraries/qt-6/patches/qtmultimedia-darwin-revert-replace-deprecated-constant.patch +++ /dev/null @@ -1,50 +0,0 @@ -diff --git a/src/multimedia/darwin/qdarwinmediadevices.mm b/src/multimedia/darwin/qdarwinmediadevices.mm -index b0a108935..881066928 100644 ---- a/src/multimedia/darwin/qdarwinmediadevices.mm -+++ b/src/multimedia/darwin/qdarwinmediadevices.mm -@@ -42,7 +42,7 @@ static AudioDeviceID defaultAudioDevice(QAudioDevice::Mode mode) - const AudioObjectPropertyAddress propertyAddress = { - selector, - kAudioObjectPropertyScopeGlobal, -- kAudioObjectPropertyElementMain, -+ kAudioObjectPropertyElementMaster, - }; - - if (auto audioDevice = getAudioObject(kAudioObjectSystemObject, propertyAddress, -@@ -77,7 +77,7 @@ static QList availableAudioDevices(QAudioDevice::Mode mode) - - const AudioObjectPropertyAddress audioDevicesPropertyAddress = { - kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, -- kAudioObjectPropertyElementMain -+ kAudioObjectPropertyElementMaster - }; - - if (auto audioDevices = getAudioData( -@@ -130,11 +130,11 @@ static OSStatus audioDeviceChangeListener(AudioObjectID id, UInt32, - - static constexpr AudioObjectPropertyAddress listenerAddresses[] = { - { kAudioHardwarePropertyDefaultInputDevice, kAudioObjectPropertyScopeGlobal, -- kAudioObjectPropertyElementMain }, -+ kAudioObjectPropertyElementMaster }, - { kAudioHardwarePropertyDefaultOutputDevice, kAudioObjectPropertyScopeGlobal, -- kAudioObjectPropertyElementMain }, -+ kAudioObjectPropertyElementMaster }, - { kAudioHardwarePropertyDevices, kAudioObjectPropertyScopeGlobal, -- kAudioObjectPropertyElementMain } -+ kAudioObjectPropertyElementMaster } - }; - - static void setAudioListeners(QDarwinMediaDevices &instance) -diff --git a/src/multimedia/darwin/qmacosaudiodatautils_p.h b/src/multimedia/darwin/qmacosaudiodatautils_p.h -index 8cc2f8440..5cd6fced2 100644 ---- a/src/multimedia/darwin/qmacosaudiodatautils_p.h -+++ b/src/multimedia/darwin/qmacosaudiodatautils_p.h -@@ -44,7 +44,7 @@ void printUnableToReadWarning(const char *logName, AudioObjectID objectID, const - - inline static AudioObjectPropertyAddress - makePropertyAddress(AudioObjectPropertySelector selector, QAudioDevice::Mode mode, -- AudioObjectPropertyElement element = kAudioObjectPropertyElementMain) -+ AudioObjectPropertyElement element = kAudioObjectPropertyElementMaster) - { - return { selector, - mode == QAudioDevice::Input ? kAudioDevicePropertyScopeInput From 0725c33a50ad2df7fe87e75a0e6dd3aeb37c3301 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 18:41:13 -0400 Subject: [PATCH 0238/1574] qt6.stdenv: drop overrideSDK Qt is using the new Darwin SDK, which no longer requires overrideSDK to change the SDK version or set the deployment target. --- pkgs/development/libraries/qt-6/default.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pkgs/development/libraries/qt-6/default.nix b/pkgs/development/libraries/qt-6/default.nix index 00b57472488b..f7bdfc98a313 100644 --- a/pkgs/development/libraries/qt-6/default.nix +++ b/pkgs/development/libraries/qt-6/default.nix @@ -26,11 +26,7 @@ let let callPackage = self.newScope ({ inherit (self) qtModule; - inherit srcs python3; - stdenv = - if stdenv.hostPlatform.isDarwin - then overrideSDK stdenv { darwinMinVersion = "11.0"; darwinSdkVersion = "12.3"; } - else stdenv; + inherit srcs python3 stdenv; }); in { From cdb46a574be24c435b036c1da6669e2c97f86a3c Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Thu, 10 Oct 2024 06:28:41 +0100 Subject: [PATCH 0239/1574] skalibs: 2.14.2.0 -> 2.14.3.0 Changes: https://skarnet.org/software/skalibs/upgrade.html --- pkgs/development/skaware-packages/skalibs/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/skaware-packages/skalibs/default.nix b/pkgs/development/skaware-packages/skalibs/default.nix index 8af02e348312..f473135c70c5 100644 --- a/pkgs/development/skaware-packages/skalibs/default.nix +++ b/pkgs/development/skaware-packages/skalibs/default.nix @@ -6,8 +6,8 @@ skawarePackages.buildPackage { pname = "skalibs"; - version = "2.14.2.0"; - sha256 = "sha256-3f7Fcw5bLxnQOB7Pf3lrOabkcyNr2grY03dqP+ewfkM="; + version = "2.14.3.0"; + sha256 = "sha256-oUqlWMmwmwYvoWrOxiOyyPk9afXLpNB/bQxYkTBmxCc="; description = "Set of general-purpose C programming libraries"; From d17b829d6d23d2c15c17430837750144f364a544 Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Thu, 10 Oct 2024 13:14:22 +0530 Subject: [PATCH 0240/1574] git: 2.46.2 -> 2.47.0 Changelog: https://github.com/git/git/blob/v2.47.0/Documentation/RelNotes/2.47.0.txt Signed-off-by: Muhammad Falak R Wani --- pkgs/applications/version-management/git/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/version-management/git/default.nix b/pkgs/applications/version-management/git/default.nix index 3c87a6d8e5df..a950be71fed2 100644 --- a/pkgs/applications/version-management/git/default.nix +++ b/pkgs/applications/version-management/git/default.nix @@ -29,7 +29,7 @@ assert sendEmailSupport -> perlSupport; assert svnSupport -> perlSupport; let - version = "2.46.2"; + version = "2.47.0"; svn = subversionClient.override { perlBindings = perlSupport; }; gitwebPerlLibs = with perlPackages; [ CGI HTMLParser CGIFast FCGI FCGIProcManager HTMLTagCloud ]; in @@ -42,7 +42,7 @@ stdenv.mkDerivation (finalAttrs: { src = fetchurl { url = "https://www.kernel.org/pub/software/scm/git/git-${version}.tar.xz"; - hash = "sha256-XuihxoU2CUpPf5UV7cFUsSonW4pX3aTCHs+/GvuuLKM="; + hash = "sha256-HOEU2ohwQnG0PgJ8UeBNk5n4yI6e91Qtrnrrrn2HvE4="; }; outputs = [ "out" ] ++ lib.optional withManual "doc"; From e178cc0dcd5d052d7b8061e673e44dd19bfca28b Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 10 Oct 2024 12:51:42 +0200 Subject: [PATCH 0241/1574] gsm: fix cross with Clang MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit "clang" is not the correct value for CC when cross compiling — it should be the prefixed, wrapped clang for the host platform. Let's force the use of our original CC in all cases. The default flags of -ansi -pedantic don't matter to us — it builds fine without -ansi, and -pedantic doesn't really belong in a package build. This is probably why the author put them in CC to begin with. There's also no need tot modify the Makefile to change = to ?=, as = variables can be overridden on the command line. --- pkgs/development/libraries/gsm/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/gsm/default.nix b/pkgs/development/libraries/gsm/default.nix index 5905fdff7e48..a964c4e4bcb6 100644 --- a/pkgs/development/libraries/gsm/default.nix +++ b/pkgs/development/libraries/gsm/default.nix @@ -18,8 +18,6 @@ stdenv.mkDerivation rec { }; patchPhase = '' - substituteInPlace Makefile \ - --replace "= gcc " "?= gcc " # Fix include directory sed -e 's,$(GSM_INSTALL_ROOT)/inc,$(GSM_INSTALL_ROOT)/include/gsm,' -i Makefile '' + optionalString (!staticSupport) ( @@ -37,10 +35,14 @@ stdenv.mkDerivation rec { '' ); + preBuild = '' + makeFlagsArray+=(CC="$CC") + ''; + makeFlags = [ "SHELL=${stdenv.shell}" "INSTALL_ROOT=$(out)" - ] ++ optional stdenv.cc.isClang "CC=clang"; + ]; preInstall = "mkdir -p $out/{bin,lib,man/man1,man/man3,include/gsm}"; From b6747f4e6f01bab4fc2c3523e44079a51b22d4d8 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 8 Sep 2024 20:54:35 +0200 Subject: [PATCH 0242/1574] zvbi: init at 0.2.42 --- pkgs/by-name/zv/zvbi/package.nix | 57 ++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 pkgs/by-name/zv/zvbi/package.nix diff --git a/pkgs/by-name/zv/zvbi/package.nix b/pkgs/by-name/zv/zvbi/package.nix new file mode 100644 index 000000000000..cc48da24bb3c --- /dev/null +++ b/pkgs/by-name/zv/zvbi/package.nix @@ -0,0 +1,57 @@ +{ + autoreconfHook, + fetchFromGitHub, + gitUpdater, + lib, + libiconv, + stdenv, + testers, + validatePkgConfig, +}: + +stdenv.mkDerivation (finalAttrs: { + pname = "zvbi"; + version = "0.2.42"; + + src = fetchFromGitHub { + owner = "zapping-vbi"; + repo = "zvbi"; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-IeSGscgz51IndX6Xbu8Kw8GcJ9MLXXFhV+4LvnVkrLE="; + }; + + nativeBuildInputs = [ + autoreconfHook + validatePkgConfig + ]; + + buildInputs = lib.optional stdenv.isDarwin libiconv; + + outputs = [ + "out" + "dev" + "man" + ]; + + passthru = { + tests.pkg-config = testers.testMetaPkgConfig finalAttrs.finalPackage; + updateScript = gitUpdater { rev-prefix = "v"; }; + }; + + meta = { + description = "Vertical Blanking Interval (VBI) utilities"; + homepage = "https://github.com/zapping-vbi/zvbi"; + changelog = "https://github.com/zapping-vbi/zvbi/blob/v${finalAttrs.version}/ChangeLog"; + pkgConfigModules = [ "zvbi-0.2" ]; + license = with lib.licenses; [ + bsd2 + bsd3 + gpl2 + gpl2Plus + lgpl21Plus + lgpl2Plus + mit + ]; + maintainers = with lib.maintainers; [ jopejoe1 ]; + }; +}) From 09e56a61f697c82f41a9f4083e927d76f82aeff9 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 8 Sep 2024 21:21:09 +0200 Subject: [PATCH 0243/1574] ffmpeg: add withZvbi options support for teletext decoding --- pkgs/development/libraries/ffmpeg/generic.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index e6863e849324..14cf65a5563a 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -143,6 +143,7 @@ , withZimg ? withHeadlessDeps , withZlib ? withHeadlessDeps , withZmq ? withFullDeps # Message passing +, withZvbi ? withFullDeps # Teletext support /* * Licensing options (yes some are listed twice, filters and such are not listed) @@ -325,6 +326,7 @@ , zeromq4 , zimg , zlib +, zvbi /* * Darwin frameworks */ @@ -683,6 +685,7 @@ stdenv.mkDerivation (finalAttrs: { (enableFeature withZimg "libzimg") (enableFeature withZlib "zlib") (enableFeature withZmq "libzmq") + (enableFeature withZvbi "libzvbi") /* * Developer flags */ @@ -821,6 +824,7 @@ stdenv.mkDerivation (finalAttrs: { ++ optionals withZimg [ zimg ] ++ optionals withZlib [ zlib ] ++ optionals withZmq [ zeromq4 ] + ++ optionals withZvbi [ zvbi ] ; buildFlags = [ "all" ] From c4fe4811fef633980e03c7ccfbae9abc5351f2bc Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Sun, 8 Sep 2024 21:25:09 +0200 Subject: [PATCH 0244/1574] ffmpeg: add withAribb24 options enables decoding of ARIB subtitles --- pkgs/development/libraries/ffmpeg/generic.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/ffmpeg/generic.nix b/pkgs/development/libraries/ffmpeg/generic.nix index 14cf65a5563a..a4ae49d404ad 100644 --- a/pkgs/development/libraries/ffmpeg/generic.nix +++ b/pkgs/development/libraries/ffmpeg/generic.nix @@ -37,6 +37,7 @@ , withAmf ? lib.meta.availableOn stdenv.hostPlatform amf # AMD Media Framework video encoding , withAom ? withHeadlessDeps # AV1 reference encoder , withAppKit ? withHeadlessDeps && stdenv.hostPlatform.isDarwin # Apple AppKit framework +, withAribb24 ? withFullDeps # ARIB text and caption decoding , withAribcaption ? withFullDeps && lib.versionAtLeast version "6.1" # ARIB STD-B24 Caption Decoder/Renderer , withAss ? withHeadlessDeps && stdenv.hostPlatform == stdenv.buildPlatform # (Advanced) SubStation Alpha subtitle rendering , withAudioToolbox ? withHeadlessDeps && stdenv.hostPlatform.isDarwin # Apple AudioToolbox @@ -226,6 +227,7 @@ , alsa-lib , amf , amf-headers +, aribb24 , avisynthplus , bzip2 , celt @@ -556,6 +558,7 @@ stdenv.mkDerivation (finalAttrs: { (enableFeature withAmf "amf") (enableFeature withAom "libaom") (enableFeature withAppKit "appkit") + (enableFeature withAribb24 "libaribb24") ] ++ optionals (versionAtLeast version "6.1") [ (enableFeature withAribcaption "libaribcaption") ] ++ [ @@ -729,6 +732,7 @@ stdenv.mkDerivation (finalAttrs: { ++ optionals withAmf [ amf-headers ] ++ optionals withAom [ libaom ] ++ optionals withAppKit [ AppKit ] + ++ optionals withAribb24 [ aribb24 ] ++ optionals withAribcaption [ libaribcaption ] ++ optionals withAss [ libass ] ++ optionals withAudioToolbox [ AudioToolbox ] From 25ce4805249a158c6ea45a8abf27420b55f5c39b Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Thu, 10 Oct 2024 13:09:22 +0200 Subject: [PATCH 0245/1574] usrsctp: backport build fix for FreeBSD 14 --- pkgs/development/libraries/usrsctp/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/usrsctp/default.nix b/pkgs/development/libraries/usrsctp/default.nix index 8b172ebb45d7..58448d0a453d 100644 --- a/pkgs/development/libraries/usrsctp/default.nix +++ b/pkgs/development/libraries/usrsctp/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, cmake }: +{ stdenv, lib, fetchFromGitHub, fetchpatch, cmake }: stdenv.mkDerivation rec { pname = "usrsctp"; @@ -16,6 +16,12 @@ stdenv.mkDerivation rec { # errors. These issues are fixed in the master branch, but a new release with them has not # been made. The following patch can be dropped once a release has been made. ./clang-fix-build.patch + + (fetchpatch { + name = "freebsd-14.patch"; + url = "https://github.com/sctplab/usrsctp/commit/ac559d2a95277e5e0827e9ee5a1d3b1b50e0822a.patch"; + hash = "sha256-QBlzH37Xwwnn1y8pM941Zesz18p2EazfeD0lCU8n6nI="; + }) ]; nativeBuildInputs = [ cmake ]; From 8f8e240965a71cea585b60a7f09281737d6849cf Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 2 Sep 2024 19:27:03 -0400 Subject: [PATCH 0246/1574] darwin.apple-source-releases: add mkAppleDerivation This is a replacement for the family of `appleDerivation` functions currently used. It is patterned after the `mkDerivation` used in the BSD package sets. It also provides additional support for using Meson to build source releases. --- .../darwin/apple-source-releases/default.nix | 15 +++- .../developer-tools-11.3.1.nix | 2 +- .../apple-source-releases/macos-11.0.1.nix | 2 +- .../mkAppleDerivation.nix | 89 +++++++++++++++++++ .../apple-source-releases/versions.json | 2 + 5 files changed, 105 insertions(+), 5 deletions(-) create mode 100644 pkgs/os-specific/darwin/apple-source-releases/mkAppleDerivation.nix create mode 100644 pkgs/os-specific/darwin/apple-source-releases/versions.json diff --git a/pkgs/os-specific/darwin/apple-source-releases/default.nix b/pkgs/os-specific/darwin/apple-source-releases/default.nix index 491f2b6675d5..bb85028f1423 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/default.nix @@ -228,15 +228,18 @@ in self: let - macosPackages_11_0_1 = import ./macos-11.0.1.nix { inherit applePackage'; }; - developerToolsPackages_11_3_1 = import ./developer-tools-11.3.1.nix { inherit applePackage'; }; + macosPackages_11_0_1 = import ./macos-11.0.1.nix { inherit applePackage' callPackage; }; + developerToolsPackages_11_3_1 = import ./developer-tools-11.3.1.nix { inherit applePackage' callPackage; }; applePackage' = namePath: version: sdkName: sha256: let pname = builtins.head (lib.splitString "/" namePath); appleDerivation' = stdenv: appleDerivation'' stdenv pname version sdkName sha256; appleDerivation = appleDerivation' stdenv; - callPackage = self.newScope { inherit appleDerivation' appleDerivation; python3 = pkgs.buildPackages.python3Minimal; }; + callPackage = self.newScope { + inherit appleDerivation' appleDerivation mkAppleDerivation; + python3 = pkgs.buildPackages.python3Minimal; + }; in callPackage (./. + "/${namePath}"); applePackage = namePath: sdkName: sha256: let @@ -244,6 +247,12 @@ let version = versions.${sdkName}.${pname}; in applePackage' namePath version sdkName sha256; + callPackage = self.newScope { inherit mkAppleDerivation; }; + + mkAppleDerivation = pkgs.callPackage ./mkAppleDerivation.nix { + inherit (pkgs.darwin) bootstrapStdenv xcodeProjectCheckHook; + }; + # Only used for bootstrapping. It’s convenient because it was the last version to come with a real makefile. adv_cmds-boot = applePackage "adv_cmds/boot.nix" "osx-10.5.8" "sha256-/OJLNpATyS31W5nWfJgSVO5itp8j55TRwG57/QLT5Fg=" {}; diff --git a/pkgs/os-specific/darwin/apple-source-releases/developer-tools-11.3.1.nix b/pkgs/os-specific/darwin/apple-source-releases/developer-tools-11.3.1.nix index 7eeafec34655..88e91ae1250d 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/developer-tools-11.3.1.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/developer-tools-11.3.1.nix @@ -1,6 +1,6 @@ # Generated using: ./generate-sdk-packages.sh developer-tools 11.3.1 -{ applePackage' }: +{ applePackage', callPackage }: { bootstrap_cmds = applePackage' "bootstrap_cmds" "116" "developer-tools-11.3.1" "06nw99ajkd264vdi6n2zv252ppxp3wx3120hqf3jqdh6c1wavy0b" {}; diff --git a/pkgs/os-specific/darwin/apple-source-releases/macos-11.0.1.nix b/pkgs/os-specific/darwin/apple-source-releases/macos-11.0.1.nix index 2de90a023676..4b82b4410fa7 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/macos-11.0.1.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/macos-11.0.1.nix @@ -1,6 +1,6 @@ # Generated using: ./generate-sdk-packages.sh macos 11.0.1 -{ applePackage' }: +{ applePackage', callPackage }: { CommonCrypto = applePackage' "CommonCrypto" "60178.40.2" "macos-11.0.1" "129gsxhhcxqycg0zjrdrz2ay4dv2ih1ckafqh33qrc499z8dam2p" {}; diff --git a/pkgs/os-specific/darwin/apple-source-releases/mkAppleDerivation.nix b/pkgs/os-specific/darwin/apple-source-releases/mkAppleDerivation.nix new file mode 100644 index 000000000000..a200a11799b3 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/mkAppleDerivation.nix @@ -0,0 +1,89 @@ +let + versions = builtins.fromJSON (builtins.readFile ./versions.json); +in + +{ + lib, + bootstrapStdenv, + fetchFromGitHub, + meson, + ninja, + stdenv, + stdenvNoCC, + xcodeProjectCheckHook, +}: + +let + hasBasenamePrefix = prefix: file: lib.hasPrefix prefix (baseNameOf file); +in +lib.makeOverridable ( + attrs: + let + attrs' = if lib.isFunction attrs then attrs else _: attrs; + attrsFixed = lib.fix attrs'; + stdenv' = + if attrsFixed.noCC or false then + stdenvNoCC + else if attrsFixed.noBootstrap or false then + stdenv + else + bootstrapStdenv; + in + stdenv'.mkDerivation ( + lib.extends ( + self: super: + assert super ? releaseName; + let + inherit (super) releaseName; + info = versions.${releaseName}; + files = lib.filesystem.listFilesRecursive (lib.path.append ./. releaseName); + mesonFiles = lib.filter (hasBasenamePrefix "meson") files; + in + # You have to have at least `meson.build.in` when using xcodeHash to trigger the Meson + # build support in `mkAppleDerivation`. + assert super ? xcodeHash -> lib.length mesonFiles > 0; + { + pname = super.pname or releaseName; + inherit (info) version; + + src = super.src or fetchFromGitHub { + owner = "apple-oss-distributions"; + repo = releaseName; + rev = info.rev or "${releaseName}-${info.version}"; + inherit (info) hash; + }; + + strictDeps = true; + __structuredAttrs = true; + + meta = { + homepage = "https://opensource.apple.com/releases/"; + license = lib.licenses.apple-psl20; + maintainers = lib.teams.darwin.members; + platforms = lib.platforms.darwin; + } // super.meta or { }; + } + // lib.optionalAttrs (super ? xcodeHash) { + postUnpack = + super.postUnpack or "" + + lib.concatMapStrings ( + file: + if baseNameOf file == "meson.build.in" then + "substitute ${lib.escapeShellArg "${file}"} \"$sourceRoot/meson.build\" --subst-var version\n" + else + "cp ${lib.escapeShellArg "${file}"} \"$sourceRoot/\"${lib.escapeShellArg (baseNameOf file)}\n" + ) mesonFiles; + + xcodeProject = super.xcodeProject or "${releaseName}.xcodeproj"; + + nativeBuildInputs = super.nativeBuildInputs or [ ] ++ [ + meson + ninja + xcodeProjectCheckHook + ]; + + mesonBuildType = "release"; + } + ) attrs' + ) +) diff --git a/pkgs/os-specific/darwin/apple-source-releases/versions.json b/pkgs/os-specific/darwin/apple-source-releases/versions.json new file mode 100644 index 000000000000..2c63c0851048 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/versions.json @@ -0,0 +1,2 @@ +{ +} From 6a54c7f6c92da33bbf330624313551f4a8b3c503 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 22 Sep 2024 18:16:01 -0400 Subject: [PATCH 0247/1574] darwin.apple-source-releases: add update-source-releases.sh Add a new update script that locks the source releases to the indicated macOS version per the version pins in following repo: https://github.com/apple-oss-distributions/distribution-macOS --- .../update-source-releases.sh | 79 +++++++++++++++++++ 1 file changed, 79 insertions(+) create mode 100755 pkgs/os-specific/darwin/apple-source-releases/update-source-releases.sh diff --git a/pkgs/os-specific/darwin/apple-source-releases/update-source-releases.sh b/pkgs/os-specific/darwin/apple-source-releases/update-source-releases.sh new file mode 100755 index 000000000000..36d82700a4c9 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/update-source-releases.sh @@ -0,0 +1,79 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p coreutils curl git gnutar jq moreutils nix + +set -eu -o pipefail + +if [ ! -v 1 ]; then + echo "usage: lock-sdk-deps.sh " >&2 + echo " Decimal-separated version number." >&2 + echo " Must correspond to a tag in https://github.com/apple-oss-distributions/distribution-macOS" >&2 + exit 1 +fi + +pkgdir=$(dirname "$(realpath "$0")") + +lockfile=$pkgdir/versions.json +if [ -e "$lockfile" ]; then + echo '{}' > "$lockfile" +fi + +workdir=$(mktemp -d) +trap 'rm -rf -- "$workdir"' EXIT + +sdkVersion=$1; shift +tag="macos-${sdkVersion//.}" + +declare -A ignoredPackages=( + [libsbuf]=1 + [mkAppleDerivation]=1 + [update-source-releases.sh]=1 + [versions.json]=1 +) + +readarray -t packages < <( + for file in "$pkgdir"/*; do + pkg=$(basename "$file" ".nix") + test ! "${ignoredPackages[$pkg]-}" && echo "$pkg" + done +) + +echo "Locking versions for macOS $sdkVersion using tag '$tag'..." + +pushd "$workdir" > /dev/null + +git clone --branch "$tag" https://github.com/apple-oss-distributions/distribution-macOS.git &> /dev/null +cd distribution-macOS + +for package in "${packages[@]}"; do + # If the tag exists in `release.json`, use that as an optimization to avoid downloading unnecessarily from Github. + packageTag=$(jq -r --arg package "$package" '.projects[] | select(.project == $package) | .tag' release.json) + packageCommit=$(git ls-tree -d HEAD "$package" | awk '{print $3}') + + if [ ! -d "$package" ]; then + packageCommit=HEAD + fi + + # However, sometimes it doesn’t exist. In that case, fall back to cloning the repo and check manually + # which tag corresponds to the commit from the submodule. + if [ -z "$packageTag" ]; then + git clone --no-checkout "https://github.com/apple-oss-distributions/$package.git" ../source &> /dev/null + pushd ../source > /dev/null + packageTag=$(git tag --points-at "$packageCommit") + popd > /dev/null + rm -rf ../source + fi + + packageVersion=${packageTag##"$package"-} + + curl -OL "https://github.com/apple-oss-distributions/$package/archive/$packageTag.tar.gz" &> /dev/null + tar axf "$packageTag.tar.gz" + + packageHash=$(nix --extra-experimental-features nix-command hash path "$package-$packageTag") + + pkgsjson="{\"$package\": {\"version\": \"$packageVersion\", \"hash\": \"$packageHash\"}}" + + echo " - Locking $package to version $packageVersion with hash '$packageHash'" + jq --argjson pkg "$pkgsjson" -S '. * $pkg' "$lockfile" | sponge "$lockfile" +done + +popd > /dev/null From 639108ea70bc0541440bc14c375def19b592a48b Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 21 Sep 2024 09:34:47 -0400 Subject: [PATCH 0248/1574] darwin.libsbuf: init at 14.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit libsbuf is required by some of the source release updates that will be done. Unfortunately, it is only available on macOS 14 and newer, and there is no source release available currently. This is a port of libsbuf from FreeBSD, which appears to be the origin of the header provided in the 14.x SDK. It provides the same ABI as the system dylib and same API as the the SDK header while being available on all supported deployment targets in nixpkgs. Note: This package is not based on libsbuf from the FreeBSD package set in nixpkgs because: it doesn’t build on Darwin, and using it would pull many FreeBSD packages into the Darwin bootstrap, which is undesirable. --- .../darwin/apple-source-releases/default.nix | 2 + .../libsbuf/meson.build.in | 17 +++ .../apple-source-releases/libsbuf/package.nix | 85 +++++++++++ .../patches/0001-darwin-compatibility.patch | 137 ++++++++++++++++++ 4 files changed, 241 insertions(+) create mode 100644 pkgs/os-specific/darwin/apple-source-releases/libsbuf/meson.build.in create mode 100644 pkgs/os-specific/darwin/apple-source-releases/libsbuf/package.nix create mode 100644 pkgs/os-specific/darwin/apple-source-releases/libsbuf/patches/0001-darwin-compatibility.patch diff --git a/pkgs/os-specific/darwin/apple-source-releases/default.nix b/pkgs/os-specific/darwin/apple-source-releases/default.nix index bb85028f1423..192dcd8301a3 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/default.nix @@ -341,4 +341,6 @@ developerToolsPackages_11_3_1 // macosPackages_11_0_1 // { # TODO(matthewbauer): # To be removed, once I figure out how to build a newer Security version. Security = applePackage "Security/boot.nix" "osx-10.9.5" "sha256-7qr0IamjCXCobIJ6V9KtvbMBkJDfRCy4C5eqpHJlQLI=" {}; + + libsbuf = callPackage ./libsbuf/package.nix { }; } diff --git a/pkgs/os-specific/darwin/apple-source-releases/libsbuf/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/libsbuf/meson.build.in new file mode 100644 index 000000000000..f6b69a368f30 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/libsbuf/meson.build.in @@ -0,0 +1,17 @@ +# Project settings +project('libsbuf', 'c', version : '@version@') + + +# Libraries +library( + 'sbuf', + darwin_versions : '1', + install : true, + sources : [ + 'subr_prf.c', + 'subr_sbuf.c', + ], + soversion : '6', +) +install_headers('usbuf.h') +install_man('sbuf.9') diff --git a/pkgs/os-specific/darwin/apple-source-releases/libsbuf/package.nix b/pkgs/os-specific/darwin/apple-source-releases/libsbuf/package.nix new file mode 100644 index 000000000000..57467f657755 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/libsbuf/package.nix @@ -0,0 +1,85 @@ +{ + lib, + bootstrapStdenv, + fetchurl, + meson, + ninja, + stdenv, +}: + +# Apple ships libsbuf with macOS 14 but does not provide any source releases. +# Fortunately, it’s a single file library that can be made to build on Darwin using the source from FreeBSD. +bootstrapStdenv.mkDerivation (finalAttrs: { + pname = "libsbuf"; + version = "14.1.0"; + + outputs = [ + "out" + "dev" + "man" + ]; + + srcs = [ + (fetchurl { + name = "subr_sbuf.c"; + url = "https://cgit.freebsd.org/src/plain/sys/kern/subr_sbuf.c?h=release/${finalAttrs.version}"; + hash = "sha256-+wIcXz2wuYzOXmbxjDYBh7lIpoVtw+SW/l7oMXFJUcc="; + }) + (fetchurl { + name = "subr_prf.c"; + url = "https://cgit.freebsd.org/src/plain/sys/kern/subr_prf.c?h=release/${finalAttrs.version}"; + hash = "sha256-Sd+kJ7/RwwndK1N6YvqQqPTQRA0ajPAT0yk0rOPRpW8="; + }) + (fetchurl { + name = "usbuf.h"; + url = "https://cgit.freebsd.org/src/plain/sys/sys/sbuf.h?h=release/${finalAttrs.version}"; + hash = "sha256-CCwh9kI/X1u16hHWiiBipvBzDKvo2S2OFtI4Jo6HF0E="; + }) + (fetchurl { + name = "sbuf.9"; + url = "https://cgit.freebsd.org/src/plain/share/man/man9/sbuf.9?h=release/${finalAttrs.version}"; + hash = "sha256-43uUIGvYX0NvikcGTTJHrokHvubQ89ztLv/BK3MP0YY="; + }) + ]; + + sourceRoot = "source"; + + unpackPhase = '' + runHook preUnpack + + mkdir "$sourceRoot" + for src in "''${srcs[@]}"; do + destFilename=$(basename "$src") + cp "$src" "$sourceRoot/''${src#*-}" + done + + runHook postUnpack + ''; + + patches = [ + # Fix up sources to build on Darwin and follow the same ABI used by Apple. + ./patches/0001-darwin-compatibility.patch + ]; + + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' + substitute '${./meson.build.in}' "meson.build" --subst-var version + ''; + + strictDeps = true; + + nativeBuildInputs = [ + meson + ninja + ]; + + __structuredAttrs = true; + + meta = { + description = "Safely compose and manipulate strings in C"; + homepage = "https://www.freebsd.org"; + license = [ + lib.licenses.bsd2 + lib.licenses.bsd3 + ]; + }; +}) diff --git a/pkgs/os-specific/darwin/apple-source-releases/libsbuf/patches/0001-darwin-compatibility.patch b/pkgs/os-specific/darwin/apple-source-releases/libsbuf/patches/0001-darwin-compatibility.patch new file mode 100644 index 000000000000..e12f3e12db80 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/libsbuf/patches/0001-darwin-compatibility.patch @@ -0,0 +1,137 @@ +diff '--color=auto' -ur a/subr_prf.c b/subr_prf.c +--- a/subr_prf.c 2024-09-04 20:07:10.149623000 -0400 ++++ b/subr_prf.c 2024-09-04 20:14:10.265336775 -0400 +@@ -64,8 +64,8 @@ + #else /* !_KERNEL */ + #include + #endif +-#include +-#include ++#include ++#include + + #ifdef DDB + #include +diff '--color=auto' -ur a/subr_sbuf.c b/subr_sbuf.c +--- a/subr_sbuf.c 2024-09-04 20:07:10.149810000 -0400 ++++ b/subr_sbuf.c 2024-09-04 20:22:20.289037135 -0400 +@@ -50,7 +50,7 @@ + #include + #endif /* _KERNEL */ + +-#include ++#include + + #ifdef _KERNEL + static MALLOC_DEFINE(M_SBUF, "sbuf", "string buffers"); +@@ -96,6 +96,18 @@ + #define SBUF_MAXEXTENDINCR 4096 + #endif + ++/* Per https://cgit.freebsd.org/src/commit/?id=8fa6abb6f4f64f4f23e2920e2aea7996566851a4 */ ++#define roundup2 __builtin_align_up ++/* From https://cgit.freebsd.org/src/tree/sys/sys/cdefs.h?id=8fa6abb6f4f64f4f23e2920e2aea7996566851a4 */ ++#define __predict_false(exp) __builtin_expect((exp),0) ++ ++/* These symbols are exported even though the functions aren’t defined in the public header. ++ Redefine them for consistency. */ ++#define sbuf_count_drain usbuf_count_drain ++#define sbuf_drain usbuf_drain ++#define sbuf_nl_terminate usbuf_nl_terminate ++#define sbuf_put_bytes usbuf_put_bytes ++ + /* + * Debugging support + */ +diff '--color=auto' -ur a/usbuf.h b/usbuf.h +--- a/usbuf.h 2024-09-04 20:07:10.150177000 -0400 ++++ b/usbuf.h 2024-09-04 20:13:26.469610458 -0400 +@@ -33,6 +33,50 @@ + + #include + ++#include ++ ++#define sbuf_new usbuf_new ++#define sbuf_clear usbuf_clear ++#define sbuf_setpos usbuf_setpos ++#define sbuf_bcat usbuf_bcat ++#define sbuf_bcpy usbuf_bcpy ++#define sbuf_cat usbuf_cat ++#define sbuf_cpy usbuf_cpy ++#define sbuf_printf usbuf_printf ++#define sbuf_vprintf usbuf_vprintf ++#define sbuf_putc usbuf_putc ++#define sbuf_set_drain usbuf_set_drain ++#define sbuf_trim usbuf_trim ++#define sbuf_error usbuf_error ++#define sbuf_finish usbuf_finish ++#define sbuf_data usbuf_data ++#define sbuf_len usbuf_len ++#define sbuf_done usbuf_done ++#define sbuf_delete usbuf_delete ++#define sbuf_clear_flags usbuf_clear_flags ++#define sbuf_get_flags usbuf_get_flags ++#define sbuf_set_flags usbuf_set_flags ++#define sbuf_start_section usbuf_start_section ++#define sbuf_end_section usbuf_end_section ++#define sbuf_hexdump usbuf_hexdump ++#define sbuf_putbuf usbuf_putbuf ++#define sbuf_printf_drain usbuf_printf_drain ++ ++#define SBUF_FIXEDLEN USBUF_FIXEDLEN ++#define SBUF_AUTOEXTEND USBUF_AUTOEXTEND ++#define SBUF_INCLUDENUL USBUF_INCLUDENUL ++#define SBUF_DRAINTOEOR USBUF_DRAINTOEOR ++#define SBUF_NOWAIT USBUF_NOWAIT ++#define SBUF_USRFLAGMSK USBUF_USRFLAGMSK ++#define SBUF_DYNAMIC USBUF_DYNAMIC ++#define SBUF_FINISHED USBUF_FINISHED ++#define SBUF_DYNSTRUCT USBUF_DYNSTRUCT ++#define SBUF_INSECTION USBUF_INSECTION ++#define SBUF_DRAINATEOL USBUF_DRAINATEOL ++ ++#define sbuf usbuf ++#define sbuf_drain_func usbuf_drain_func ++ + struct sbuf; + typedef int (sbuf_drain_func)(void *, const char *, int); + +@@ -46,17 +90,17 @@ + int s_error; /* current error code */ + ssize_t s_size; /* size of storage buffer */ + ssize_t s_len; /* current length of string */ +-#define SBUF_FIXEDLEN 0x00000000 /* fixed length buffer (default) */ +-#define SBUF_AUTOEXTEND 0x00000001 /* automatically extend buffer */ +-#define SBUF_INCLUDENUL 0x00000002 /* nulterm byte is counted in len */ +-#define SBUF_DRAINTOEOR 0x00000004 /* use section 0 as drain EOR marker */ +-#define SBUF_NOWAIT 0x00000008 /* Extend with non-blocking malloc */ +-#define SBUF_USRFLAGMSK 0x0000ffff /* mask of flags the user may specify */ +-#define SBUF_DYNAMIC 0x00010000 /* s_buf must be freed */ +-#define SBUF_FINISHED 0x00020000 /* set by sbuf_finish() */ +-#define SBUF_DYNSTRUCT 0x00080000 /* sbuf must be freed */ +-#define SBUF_INSECTION 0x00100000 /* set by sbuf_start_section() */ +-#define SBUF_DRAINATEOL 0x00200000 /* drained contents ended in \n */ ++#define USBUF_FIXEDLEN 0x00000000 /* fixed length buffer (default) */ ++#define USBUF_AUTOEXTEND 0x00000001 /* automatically extend buffer */ ++#define USBUF_INCLUDENUL 0x00000002 /* nulterm byte is counted in len */ ++#define USBUF_DRAINTOEOR 0x00000004 /* use section 0 as drain EOR marker */ ++#define USBUF_NOWAIT 0x00000008 /* Extend with non-blocking malloc */ ++#define USBUF_USRFLAGMSK 0x0000ffff /* mask of flags the user may specify */ ++#define USBUF_DYNAMIC 0x00010000 /* s_buf must be freed */ ++#define USBUF_FINISHED 0x00020000 /* set by sbuf_finish() */ ++#define USBUF_DYNSTRUCT 0x00080000 /* sbuf must be freed */ ++#define USBUF_INSECTION 0x00100000 /* set by sbuf_start_section() */ ++#define USBUF_DRAINATEOL 0x00200000 /* drained contents ended in \n */ + int s_flags; /* flags */ + ssize_t s_sect_len; /* current length of section */ + ssize_t s_rec_off; /* current record start offset */ +@@ -88,7 +132,7 @@ + int sbuf_cpy(struct sbuf *, const char *); + int sbuf_printf(struct sbuf *, const char *, ...) + __printflike(2, 3); +-int sbuf_vprintf(struct sbuf *, const char *, __va_list) ++int sbuf_vprintf(struct sbuf *, const char *, va_list) + __printflike(2, 0); + int sbuf_nl_terminate(struct sbuf *); + int sbuf_putc(struct sbuf *, int); From 556790248f75fbd60ba60bb55418a830b2f98945 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 20 Sep 2024 20:41:00 -0400 Subject: [PATCH 0249/1574] apple-sdk: init at 10.12.2 and 11.3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This is a new packaging of the Darwin SDK. Instead of splitting libraries and frameworks into separate packages, it provides a single package for the whole SDK. # Features - Vendored files are removed from the SDK. There are 50+ different packages that are vendored by upstream (depending on the version); - Components that are built in nixpkgs (either from upstream or from the source releases) are also removed. If they need to be included by default, they are propagated; - A single SDK pattern is used to package all SDKs, and scripts are provided to aid updating the SDK version and its source release versions. This makes adding new SDKs much easier; - SDK overrides are handled by adding the SDK version you require. If multiple SDKs are present, only the newest is used. It is possible to have different SDKs for each of build, host, and target platforms; - Private headers are no longer provided by default unless you use the SDK’s `privateFrameworksHook` to add them. It does the right thing when multiple SDKs are in your inputs; - Source releases for the SDK version are available via a passthru `sourceRelease` function. This is mostly useful for getting private headers for building source releases in the darwin attrset; and - The same versions of propagated components are used on both platforms (e.g., the same libresult, libiconv, etc). See `pkgs/by-name/ap/apple-sdk/README.md` for details on how the SDK derivation is structured and how to update it. --- pkgs/by-name/ap/apple-sdk/README.md | 0 .../common/add-core-symbolication.nix | 51 ++ .../apple-sdk/common/derivation-options.nix | 17 + .../by-name/ap/apple-sdk/common/fetch-sdk.nix | 42 ++ .../common/passthru-private-frameworks.nix | 9 + .../common/passthru-source-release-files.nix | 37 ++ pkgs/by-name/ap/apple-sdk/common/plists.nix | 307 ++++++++++ .../ap/apple-sdk/common/process-stubs.nix | 46 ++ .../ap/apple-sdk/common/propagate-inputs.nix | 71 +++ .../ap/apple-sdk/common/propagate-xcrun.nix | 50 ++ .../common/remove-disallowed-packages.nix | 35 ++ .../ap/apple-sdk/common/rewrite-sdk-paths.nix | 18 + .../common/run-build-phase-hooks.nix | 9 + .../metadata/apple-oss-lockfile.json | 358 +++++++++++ .../metadata/disallowed-packages.json | 554 ++++++++++++++++++ .../ap/apple-sdk/metadata/versions.json | 12 + pkgs/by-name/ap/apple-sdk/package.nix | 120 ++++ ...initions-needed-to-build-zlog-in-sys.patch | 48 ++ .../0002-Add-CF_EXPORT-To-const-symbols.patch | 45 ++ .../scripts/get-sdks-from-catalog.sh | 41 ++ .../ap/apple-sdk/scripts/lock-sdk-deps.sh | 69 +++ .../apple-sdk/scripts/regenerate-lockfile.sh | 62 ++ .../setup-hooks/add-private-frameworks.sh | 6 + .../ap/apple-sdk/setup-hooks/role.bash | 71 +++ .../ap/apple-sdk/setup-hooks/sdk-hook.sh | 17 + pkgs/top-level/all-packages.nix | 3 + 26 files changed, 2098 insertions(+) create mode 100644 pkgs/by-name/ap/apple-sdk/README.md create mode 100644 pkgs/by-name/ap/apple-sdk/common/add-core-symbolication.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/derivation-options.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/fetch-sdk.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/passthru-private-frameworks.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/passthru-source-release-files.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/plists.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/process-stubs.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/propagate-inputs.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/propagate-xcrun.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/remove-disallowed-packages.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/rewrite-sdk-paths.nix create mode 100644 pkgs/by-name/ap/apple-sdk/common/run-build-phase-hooks.nix create mode 100644 pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json create mode 100644 pkgs/by-name/ap/apple-sdk/metadata/disallowed-packages.json create mode 100644 pkgs/by-name/ap/apple-sdk/metadata/versions.json create mode 100644 pkgs/by-name/ap/apple-sdk/package.nix create mode 100644 pkgs/by-name/ap/apple-sdk/patches/0001-Add-function-definitions-needed-to-build-zlog-in-sys.patch create mode 100644 pkgs/by-name/ap/apple-sdk/patches/0002-Add-CF_EXPORT-To-const-symbols.patch create mode 100755 pkgs/by-name/ap/apple-sdk/scripts/get-sdks-from-catalog.sh create mode 100755 pkgs/by-name/ap/apple-sdk/scripts/lock-sdk-deps.sh create mode 100755 pkgs/by-name/ap/apple-sdk/scripts/regenerate-lockfile.sh create mode 100644 pkgs/by-name/ap/apple-sdk/setup-hooks/add-private-frameworks.sh create mode 100644 pkgs/by-name/ap/apple-sdk/setup-hooks/role.bash create mode 100644 pkgs/by-name/ap/apple-sdk/setup-hooks/sdk-hook.sh diff --git a/pkgs/by-name/ap/apple-sdk/README.md b/pkgs/by-name/ap/apple-sdk/README.md new file mode 100644 index 000000000000..e69de29bb2d1 diff --git a/pkgs/by-name/ap/apple-sdk/common/add-core-symbolication.nix b/pkgs/by-name/ap/apple-sdk/common/add-core-symbolication.nix new file mode 100644 index 000000000000..7bb655a1863b --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/add-core-symbolication.nix @@ -0,0 +1,51 @@ +{ + lib, + fetchFromGitHub, + stdenvNoCC, +}: + +let + CoreSymbolication = stdenvNoCC.mkDerivation (finalAttrs: { + pname = "CoreSymbolication"; + version = "0-unstable-2018-06-17"; + + src = fetchFromGitHub { + repo = "CoreSymbolication"; + owner = "matthewbauer"; + rev = "24c87c23664b3ee05dc7a5a87d647ae476a680e4"; + hash = "sha256-PzvLq94eNhP0+rLwGMKcMzxuD6MlrNI7iT/eV0obtSE="; + }; + + patches = [ + # Add missing symbol definitions needed to build `zlog` in system_cmds. + # https://github.com/matthewbauer/CoreSymbolication/pull/2 + ../patches/0001-Add-function-definitions-needed-to-build-zlog-in-sys.patch + ../patches/0002-Add-CF_EXPORT-To-const-symbols.patch + ]; + + dontBuild = true; + + installPhase = '' + mkdir -p "$out/include" + cp *.h "$out/include" + ''; + + meta = { + description = "Reverse engineered headers for Apple's CoreSymbolication framework"; + homepage = "https://github.com/matthewbauer/CoreSymbolication"; + license = lib.licenses.mit; + maintainers = lib.teams.darwin.members; + platforms = lib.platforms.darwin; + }; + }); +in +self: super: { + buildPhase = + super.buildPhase or "" + + '' + mkdir -p System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/Headers + ln -s A System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/Current + ln -s Versions/Current/Headers System/Library/PrivateFrameworks/CoreSymbolication.framework/Headers + cp '${CoreSymbolication}/include/'*.h System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/Headers + ''; +} diff --git a/pkgs/by-name/ap/apple-sdk/common/derivation-options.nix b/pkgs/by-name/ap/apple-sdk/common/derivation-options.nix new file mode 100644 index 000000000000..361e8df0f8d1 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/derivation-options.nix @@ -0,0 +1,17 @@ +{ lib, config }: + +self: super: { + preBuild = + super.preBuild or "" + + '' + platformPath=$out/Platforms/MacOSX.platform + sdkpath=$platformPath/Developer/SDKs + ''; + + preInstall = + super.preInstall or "" + + '' + platformPath=$out/Platforms/MacOSX.platform + sdkpath=$platformPath/Developer/SDKs + ''; +} diff --git a/pkgs/by-name/ap/apple-sdk/common/fetch-sdk.nix b/pkgs/by-name/ap/apple-sdk/common/fetch-sdk.nix new file mode 100644 index 000000000000..d96c27509dda --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/fetch-sdk.nix @@ -0,0 +1,42 @@ +{ + lib, + fetchurl, + cpio, + pbzx, +}: + +{ + url, + version, + hash, +}: + +fetchurl { + pname = "macOS-SDK"; + inherit version url hash; + + recursiveHash = true; + + nativeBuildInputs = [ + cpio + pbzx + ]; + + postFetch = '' + renamed=$(mktemp -d)/sdk.xar + mv "$downloadedFile" "$renamed" + pbzx "$renamed" | cpio -idm + + # SDKs are inconsistent about whether MacOSX.sdk or MacOSX.sdk is a symlink. + src=Library/Developer/CommandLineTools/SDKs/MacOSX${lib.versions.majorMinor version}.sdk + if [ ! -d $src ]; then + src=Library/Developer/CommandLineTools/SDKs/MacOSX.sdk + fi + + # Remove unwanted binaries, man pages, and folders from the SDK. + rm -rf $src/usr/bin $src/usr/share $src/System/Library/Perl + + mkdir -p "$out" + cp -rd $src/* "$out" + ''; +} diff --git a/pkgs/by-name/ap/apple-sdk/common/passthru-private-frameworks.nix b/pkgs/by-name/ap/apple-sdk/common/passthru-private-frameworks.nix new file mode 100644 index 000000000000..7d3897dc1dcc --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/passthru-private-frameworks.nix @@ -0,0 +1,9 @@ +{ makeSetupHook, sdkVersion }: + +self: super: { + passthru = super.passthru or { } // { + privateFrameworksHook = makeSetupHook { + name = "apple-sdk-private-frameworks-hook"; + } ../setup-hooks/add-private-frameworks.sh; + }; +} diff --git a/pkgs/by-name/ap/apple-sdk/common/passthru-source-release-files.nix b/pkgs/by-name/ap/apple-sdk/common/passthru-source-release-files.nix new file mode 100644 index 000000000000..cf23ea7214bc --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/passthru-source-release-files.nix @@ -0,0 +1,37 @@ +let + lockfile = builtins.fromJSON (builtins.readFile ../metadata/apple-oss-lockfile.json); +in + +{ + lib, + fetchFromGitHub, + stdenvNoCC, + sdkVersion, +}: + +let + sdkinfo = lockfile.${sdkVersion}; +in +self: super: { + passthru = super.passthru or { } // { + # Returns the raw source from apple-oss-distributions repo. + # This is mostly useful for copying private headers needed to build other source releases. + # + # Note: The source releases are mostly not used to build the SDK. Unless they can be used to build binaries, + # they’re not used. + sourceRelease = + name: + let + lockinfo = sdkinfo.${name}; + in + fetchFromGitHub { + owner = "apple-oss-distributions"; + repo = name; + rev = lockinfo.rev or "${name}-${lockinfo.version}"; + inherit (lockinfo) hash; + } + // { + inherit (lockinfo) version; + }; + }; +} diff --git a/pkgs/by-name/ap/apple-sdk/common/plists.nix b/pkgs/by-name/ap/apple-sdk/common/plists.nix new file mode 100644 index 000000000000..581635694a76 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/plists.nix @@ -0,0 +1,307 @@ +{ + lib, + stdenvNoCC, + xcodePlatform, +}: + +let + inherit (lib.generators) toPlist; + + Info = { + CFBundleIdentifier = "com.apple.platform.${lib.toLower xcodePlatform}"; + Type = "Platform"; + Name = lib.toLower xcodePlatform; + }; + + # These files are all based off of Xcode spec files found in + # /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/PrivatePlugIns/IDEOSXSupportCore.ideplugin/Contents/Resources. + + # Based off of the "MacOSX Architectures.xcspec" file. All i386 stuff + # is removed because NixPkgs only supports darwin-x86_64 and darwin-arm64. + Architectures = [ + { + Identifier = "Standard"; + Type = "Architecture"; + Name = "Standard Architectures (Apple Silicon, 64-bit Intel)"; + RealArchitectures = [ + "arm64" + "x86_64" + ]; + ArchitectureSetting = "ARCHS_STANDARD"; + } + { + Identifier = "Universal"; + Type = "Architecture"; + Name = "Universal (Apple Silicon, 64-bit Intel)"; + RealArchitectures = [ + "arm64" + "x86_64" + ]; + ArchitectureSetting = "ARCHS_STANDARD_32_64_BIT"; + } + { + Identifier = "Native"; + Type = "Architecture"; + Name = "Native Architecture of Build Machine"; + ArchitectureSetting = "NATIVE_ARCH_ACTUAL"; + } + { + Identifier = "Standard64bit"; + Type = "Architecture"; + Name = "Apple Silicon, 64-bit Intel"; + RealArchitectures = [ + "arm64" + "x86_64" + ]; + ArchitectureSetting = "ARCHS_STANDARD_64_BIT"; + } + { + Identifier = stdenvNoCC.hostPlatform.darwinArch; + Type = "Architecture"; + Name = "Apple Silicon or Intel 64-bit"; + } + { + Identifier = "Standard_Including_64_bit"; + Type = "Architecture"; + Name = "Standard Architectures (including 64-bit)"; + RealArchitectures = [ + "arm64" + "x86_64" + ]; + ArchitectureSetting = "ARCHS_STANDARD_INCLUDING_64_BIT"; + } + ]; + + # Based off of the "MacOSX Package Types.xcspec" file. Only keep the + # bare minimum needed. + PackageTypes = [ + { + Identifier = "com.apple.package-type.mach-o-executable"; + Type = "PackageType"; + Name = "Mach-O Executable"; + DefaultBuildSettings = { + EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; + EXECUTABLE_PATH = "$(EXECUTABLE_NAME)"; + }; + ProductReference = { + FileType = "compiled.mach-o.executable"; + Name = "$(EXECUTABLE_NAME)"; + }; + } + { + Identifier = "com.apple.package-type.mach-o-objfile"; + Type = "PackageType"; + Name = "Mach-O Object File"; + DefaultBuildSettings = { + EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; + EXECUTABLE_PATH = "$(EXECUTABLE_NAME)"; + }; + ProductReference = { + FileType = "compiled.mach-o.objfile"; + Name = "$(EXECUTABLE_NAME)"; + }; + } + { + Identifier = "com.apple.package-type.mach-o-dylib"; + Type = "PackageType"; + Name = "Mach-O Dynamic Library"; + DefaultBuildSettings = { + EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; + EXECUTABLE_PATH = "$(EXECUTABLE_NAME)"; + }; + ProductReference = { + FileType = "compiled.mach-o.dylib"; + Name = "$(EXECUTABLE_NAME)"; + }; + } + { + Identifier = "com.apple.package-type.static-library"; + Type = "PackageType"; + Name = "Mach-O Static Library"; + DefaultBuildSettings = { + EXECUTABLE_PREFIX = "lib"; + EXECUTABLE_SUFFIX = ".a"; + EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; + EXECUTABLE_PATH = "$(EXECUTABLE_NAME)"; + }; + ProductReference = { + FileType = "archive.ar"; + Name = "$(EXECUTABLE_NAME)"; + IsLaunchable = "NO"; + }; + } + { + Identifier = "com.apple.package-type.wrapper"; + Type = "PackageType"; + Name = "Wrapper"; + DefaultBuildSettings = { + WRAPPER_SUFFIX = ".bundle"; + WRAPPER_NAME = "$(WRAPPER_PREFIX)$(PRODUCT_NAME)$(WRAPPER_SUFFIX)"; + CONTENTS_FOLDER_PATH = "$(WRAPPER_NAME)/Contents"; + EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; + EXECUTABLE_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/MacOS"; + EXECUTABLE_PATH = "$(EXECUTABLE_FOLDER_PATH)/$(EXECUTABLE_NAME)"; + INFOPLIST_PATH = "$(CONTENTS_FOLDER_PATH)/Info.plist"; + INFOSTRINGS_PATH = "$(LOCALIZED_RESOURCES_FOLDER_PATH)/InfoPlist.strings"; + PKGINFO_PATH = "$(CONTENTS_FOLDER_PATH)/PkgInfo"; + PBDEVELOPMENTPLIST_PATH = "$(CONTENTS_FOLDER_PATH)/pbdevelopment.plist"; + VERSIONPLIST_PATH = "$(CONTENTS_FOLDER_PATH)/version.plist"; + PUBLIC_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Headers"; + PRIVATE_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/PrivateHeaders"; + EXECUTABLES_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Executables"; + FRAMEWORKS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Frameworks"; + SHARED_FRAMEWORKS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/SharedFrameworks"; + SHARED_SUPPORT_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/SharedSupport"; + UNLOCALIZED_RESOURCES_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Resources"; + LOCALIZED_RESOURCES_FOLDER_PATH = "$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/$(DEVELOPMENT_LANGUAGE).lproj"; + DOCUMENTATION_FOLDER_PATH = "$(LOCALIZED_RESOURCES_FOLDER_PATH)/Documentation"; + PLUGINS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/PlugIns"; + SCRIPTS_FOLDER_PATH = "$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/Scripts"; + }; + ProductReference = { + FileType = "wrapper.cfbundle"; + Name = "$(WRAPPER_NAME)"; + IsLaunchable = "NO"; + }; + } + { + Identifier = "com.apple.package-type.wrapper.application"; + Type = "PackageType"; + BasedOn = "com.apple.package-type.wrapper"; + Name = "Application Wrapper"; + DefaultBuildSettings = { + GENERATE_PKGINFO_FILE = "YES"; + }; + ProductReference = { + FileType = "wrapper.application"; + Name = "$(WRAPPER_NAME)"; + IsLaunchable = "YES"; + }; + } + ]; + + # Based off of the "MacOSX Product Types.xcspec" file. All + # bundles/wrapper are removed, because we prefer dynamic products in + # NixPkgs. + ProductTypes = [ + { + Identifier = "com.apple.product-type.tool"; + Type = "ProductType"; + Name = "Command-line Tool"; + PackageTypes = [ "com.apple.package-type.mach-o-executable" ]; + } + { + Identifier = "com.apple.product-type.objfile"; + Type = "ProductType"; + Name = "Object File"; + PackageTypes = [ "com.apple.package-type.mach-o-objfile" ]; + } + { + Identifier = "com.apple.product-type.library.dynamic"; + Type = "ProductType"; + Name = "Dynamic Library"; + PackageTypes = [ "com.apple.package-type.mach-o-dylib" ]; + DefaultBuildProperties = { + FULL_PRODUCT_NAME = "$(EXECUTABLE_NAME)"; + MACH_O_TYPE = "mh_dylib"; + REZ_EXECUTABLE = "YES"; + EXECUTABLE_SUFFIX = ".$(EXECUTABLE_EXTENSION)"; + EXECUTABLE_EXTENSION = "dylib"; + DYLIB_COMPATIBILITY_VERSION = "1"; + DYLIB_CURRENT_VERSION = "1"; + FRAMEWORK_FLAG_PREFIX = "-framework"; + LIBRARY_FLAG_PREFIX = "-l"; + LIBRARY_FLAG_NOSPACE = "YES"; + STRIP_STYLE = "debugging"; + GCC_INLINES_ARE_PRIVATE_EXTERN = "YES"; + CODE_SIGNING_ALLOWED = "YES"; + CODE_SIGNING_REQUIRED = "NO"; + }; + } + { + Identifier = "com.apple.product-type.library.static"; + Type = "ProductType"; + Name = "Static Library"; + PackageTypes = [ "com.apple.package-type.static-library" ]; + DefaultBuildProperties = { + FULL_PRODUCT_NAME = "$(EXECUTABLE_NAME)"; + MACH_O_TYPE = "staticlib"; + REZ_EXECUTABLE = "YES"; + EXECUTABLE_PREFIX = "lib"; + EXECUTABLE_SUFFIX = ".$(EXECUTABLE_EXTENSION)"; + EXECUTABLE_EXTENSION = "a"; + FRAMEWORK_FLAG_PREFIX = "-framework"; + LIBRARY_FLAG_PREFIX = "-l"; + LIBRARY_FLAG_NOSPACE = "YES"; + STRIP_STYLE = "debugging"; + SEPARATE_STRIP = "YES"; + CLANG_ENABLE_MODULE_DEBUGGING = "NO"; + }; + } + { + Type = "ProductType"; + Identifier = "com.apple.product-type.bundle"; + Name = "Bundle"; + DefaultBuildProperties = { + FULL_PRODUCT_NAME = "$(WRAPPER_NAME)"; + MACH_O_TYPE = "mh_bundle"; + WRAPPER_PREFIX = ""; + WRAPPER_SUFFIX = ".$(WRAPPER_EXTENSION)"; + WRAPPER_EXTENSION = "bundle"; + WRAPPER_NAME = "$(WRAPPER_PREFIX)$(PRODUCT_NAME)$(WRAPPER_SUFFIX)"; + FRAMEWORK_FLAG_PREFIX = "-framework"; + LIBRARY_FLAG_PREFIX = "-l"; + LIBRARY_FLAG_NOSPACE = "YES"; + STRIP_STYLE = "non-global"; + }; + PackageTypes = [ "com.apple.package-type.wrapper" ]; + IsWrapper = "YES"; + HasInfoPlist = "YES"; + HasInfoPlistStrings = "YES"; + } + { + Identifier = "com.apple.product-type.application"; + Type = "ProductType"; + BasedOn = "com.apple.product-type.bundle"; + Name = "Application"; + DefaultBuildProperties = { + MACH_O_TYPE = "mh_execute"; + WRAPPER_SUFFIX = ".$(WRAPPER_EXTENSION)"; + WRAPPER_EXTENSION = "app"; + }; + PackageTypes = [ "com.apple.package-type.wrapper.application" ]; + } + { + Type = "ProductType"; + Identifier = "com.apple.product-type.framework"; + Name = "Bundle"; + DefaultBuildProperties = { + FULL_PRODUCT_NAME = "$(WRAPPER_NAME)"; + MACH_O_TYPE = "mh_bundle"; + WRAPPER_PREFIX = ""; + WRAPPER_SUFFIX = ".$(WRAPPER_EXTENSION)"; + WRAPPER_EXTENSION = "bundle"; + WRAPPER_NAME = "$(WRAPPER_PREFIX)$(PRODUCT_NAME)$(WRAPPER_SUFFIX)"; + FRAMEWORK_FLAG_PREFIX = "-framework"; + LIBRARY_FLAG_PREFIX = "-l"; + LIBRARY_FLAG_NOSPACE = "YES"; + STRIP_STYLE = "non-global"; + }; + PackageTypes = [ "com.apple.package-type.wrapper" ]; + IsWrapper = "YES"; + HasInfoPlist = "YES"; + HasInfoPlistStrings = "YES"; + } + ]; + + ToolchainInfo = { + Identifier = "com.apple.dt.toolchain.XcodeDefault"; + }; +in +{ + "Info.plist" = builtins.toFile "Info.plist" (toPlist { } Info); + "ToolchainInfo.plist" = builtins.toFile "ToolchainInfo.plist" (toPlist { } ToolchainInfo); + "Architectures.xcspec" = builtins.toFile "Architectures.xcspec" (toPlist { } Architectures); + "PackageTypes.xcspec" = builtins.toFile "PackageTypes.xcspec" (toPlist { } PackageTypes); + "ProductTypes.xcspec" = builtins.toFile "ProductTypes.xcspec" (toPlist { } ProductTypes); +} diff --git a/pkgs/by-name/ap/apple-sdk/common/process-stubs.nix b/pkgs/by-name/ap/apple-sdk/common/process-stubs.nix new file mode 100644 index 000000000000..840415d2e3b1 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/process-stubs.nix @@ -0,0 +1,46 @@ +let + removedDylibs = [ + # corecrypto is available under a very restrictive license (effectively: non-free, can’t use). + # Without the headers and not being able to use corecrypto due to its license, it’s not very useful. + # Stubs are included in the SDK for all dylibs, including corecrypto. They should be removed. + "/usr/lib/system/libcorecrypto.dylib" + ]; +in + +{ + lib, + jq, + libtapi, +}: + +self: super: { + nativeBuildInputs = super.nativeBuildInputs or [ ] ++ [ + jq + libtapi + ]; + + buildPhase = + super.buildPhase or "" + + '' + echo "Removing the following dylibs from the libSystem reexported libraries list: ${lib.escapeShellArg (lib.concatStringsSep ", " removedDylibs)}" + for libSystem in libSystem.B.tbd libSystem.B_asan.tbd; do + test ! -e usr/lib/$libSystem && continue # TODO: remove once the minimum SDK is 10.14 or newer. + tapi stubify --filetype=tbd-v5 usr/lib/$libSystem -o usr/lib/$libSystem # tbd-v5 is a JSON-based format. + jq --argjson libs ${lib.escapeShellArg (builtins.toJSON removedDylibs)} ' + if .libraries then + .libraries[] |= select(.install_names[] | any([.] | inside($libs)) | not) + else + . + end + | .main_library.reexported_libraries[].names[] |= select([.] | inside($libs) | not) + ' usr/lib/$libSystem > usr/lib/$libSystem~ + mv usr/lib/$libSystem~ usr/lib/$libSystem + done + + # Rewrite the text-based stubs to v4 using `tapi`. This ensures a consistent format between SDK versions. + # tbd-v4 also drops certain elements that are no longer necessary (such as GUID lists). + find . -name '*.tbd' -type f \ + -exec echo "Converting {} to tbd-v4" \; \ + -exec tapi stubify --filetype=tbd-v4 {} -o {} \; + ''; +} diff --git a/pkgs/by-name/ap/apple-sdk/common/propagate-inputs.nix b/pkgs/by-name/ap/apple-sdk/common/propagate-inputs.nix new file mode 100644 index 000000000000..f4d80eed0b49 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/propagate-inputs.nix @@ -0,0 +1,71 @@ +{ + lib, + cups, + darwin, + db, + libiconv, + ncurses, + stdenv, + stdenvNoCC, + xcbuild, +}: + +let + # CUPS has too many dependencies to build as part of the Darwin bootstrap. It’s also typically taken as an explicit + # dependency by other packages, so building only the headers (to satisfy other SDK headers) should be okay. + cupsHeaders = darwin.bootstrapStdenv.mkDerivation { + pname = "${lib.getName cups}-headers"; + version = lib.getVersion cups; + + inherit (cups) src; + + patches = cups.patches or [ ]; + + strictDeps = true; + + dontBuild = true; + + buildInputs = [ darwin.libresolv ]; # The `configure` script requires libresolv headers. + + # CUPS’s configure script fails to find `ar` when cross-compiling. + configureFlags = [ "ac_cv_path_AR=${stdenv.cc.targetPrefix}ar" ]; + + installTargets = [ "install-headers" ]; + + __structuredAttrs = true; + + meta = { + inherit (cups.meta) + homepage + description + license + maintainers + platforms + ; + }; + }; +in +self: super: { + # These packages are propagated only because other platforms include them in their libc (or otherwise by default). + # Reducing the number of special cases required to support Darwin makes supporting it easier for package authors. + propagatedBuildInputs = + super.propagatedBuildInputs or [ ] + ++ [ + libiconv + darwin.libresolv + darwin.libsbuf + # Required by some SDK headers + cupsHeaders + ] + # x86_64-darwin links the object files from Csu when targeting very old releases + ++ lib.optionals stdenvNoCC.hostPlatform.isx86_64 [ darwin.Csu ]; + + # The Darwin module for Swift requires certain headers to be included in the SDK (and not just be propagated). + buildPhase = + super.buildPhase or "" + + '' + for header in '${lib.getDev libiconv}/include/'* '${lib.getDev ncurses}/include/'*; do + ln -s "$header" "usr/include/$(basename "$header")" + done + ''; +} diff --git a/pkgs/by-name/ap/apple-sdk/common/propagate-xcrun.nix b/pkgs/by-name/ap/apple-sdk/common/propagate-xcrun.nix new file mode 100644 index 000000000000..441b36698688 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/propagate-xcrun.nix @@ -0,0 +1,50 @@ +{ + lib, + pkgsBuildHost, + stdenv, + stdenvNoCC, +}: + +let + plists = import ./plists.nix { + inherit lib stdenvNoCC; + xcodePlatform = if stdenvNoCC.hostPlatform.isMacOS then "MacOSX" else "iPhoneOS"; + }; + inherit (pkgsBuildHost) darwin cctools xcbuild; +in +self: super: { + propagatedNativeBuildInputs = super.propagatedNativeBuildInputs or [ ] ++ [ xcbuild.xcrun ]; + + postInstall = + super.postInstall or "" + + '' + specspath=$out/Library/Xcode/Specifications + toolchainsPath=$out/Toolchains/XcodeDefault.xctoolchain + mkdir -p "$specspath" "$toolchainsPath" + + # xcbuild expects to find things relative to the plist locations. If these are linked instead of copied, + # it won’t find any platforms or SDKs. + cp '${plists."Info.plist"}' "$platformPath/Info.plist" + cp '${plists."ToolchainInfo.plist"}' "$toolchainsPath/ToolchainInfo.plist" + + for spec in '${xcbuild}/Library/Xcode/Specifications/'*; do + ln -s "$spec" "$specspath/$(basename "$spec")" + done + cp '${plists."Architectures.xcspec"}' "$specspath/Architectures.xcspec" + cp '${plists."PackageTypes.xcspec"}' "$specspath/PackageTypes.xcspec" + cp '${plists."ProductTypes.xcspec"}' "$specspath/ProductTypes.xcspec" + + mkdir -p "$out/usr/bin" + ln -s '${xcbuild.xcrun}/bin/xcrun' "$out/usr/bin/xcrun" + + # Include `libtool` in the toolchain, so `xcrun -find libtool` can find it without requiring `cctools.libtool` + # as a `nativeBuildInput`. + mkdir -p "$toolchainsPath/usr/bin" + ln -s '${cctools.libtool}/bin/${stdenv.cc.targetPrefix}libtool' "$toolchainsPath/usr/bin/libtool" + + # Include additional binutils required by some packages (such as Chromium). + for tool in lipo nm otool size strip; do + ln -s '${darwin.binutils-unwrapped}/bin/${stdenv.cc.targetPrefix}'$tool "$toolchainsPath/usr/bin/$tool" + done + ''; +} diff --git a/pkgs/by-name/ap/apple-sdk/common/remove-disallowed-packages.nix b/pkgs/by-name/ap/apple-sdk/common/remove-disallowed-packages.nix new file mode 100644 index 000000000000..c771b2ccb9f5 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/remove-disallowed-packages.nix @@ -0,0 +1,35 @@ +let + # This can be made unconditional once jq is available in the bootstrap tools. If corecrypto is not removed from + # the umbrella framework, linking will fail in stage 1 because it can’t find the tbd. + disallowedPackages' = builtins.fromJSON (builtins.readFile ../metadata/disallowed-packages.json); +in + +{ + lib, + jq, + stdenv, +}: + +let + disallowedPackages = + if jq == null then + lib.filter (p: p.package != "corecrypto") disallowedPackages' + else + disallowedPackages'; +in +self: super: { + # Remove headers and stubs for packages that are available in nixpkgs. + buildPhase = + super.buildPhase or "" + + '' + ${lib.concatMapStringsSep "\n" ( + pkg: + lib.concatLines ( + [ ''echo "Removing headers and libraries from ${pkg.package}"'' ] + ++ (map (header: "rm -rf -- usr/include/${header}") pkg.headers or [ ]) + ++ (map (framework: "rm -rf -- System/Library/Frameworks/${framework}") pkg.frameworks or [ ]) + ++ (map (library: "rm -rf -- usr/lib/${library}") pkg.libraries or [ ]) + ) + ) disallowedPackages} + ''; +} diff --git a/pkgs/by-name/ap/apple-sdk/common/rewrite-sdk-paths.nix b/pkgs/by-name/ap/apple-sdk/common/rewrite-sdk-paths.nix new file mode 100644 index 000000000000..0eca6b8836b3 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/rewrite-sdk-paths.nix @@ -0,0 +1,18 @@ +{ lib, sdkVersion }: + +let + name = "MacOSX${lib.versions.majorMinor sdkVersion}.sdk"; +in +self: super: { + # Rewrite the stubs to point to dylibs in the SDK instead of at system locations. This is needed for umbrella + # frameworks in older SDKs, which don’t also embed their stubs. + buildPhase = + super.buildPhase or "" + + '' + echo "Rewriting stubs to reference the SDK location in the store" + find . -name '*.tbd' -type f -exec sed -E \ + -e "/^install-name/n; s|( \\|'\\|\"\\|\\[)/usr/|\1$sdkpath/${name}/usr/|g" \ + -e "/^install-name/n; s|( \\|'\\|\"\\|\\[)/System/|\1$sdkpath/${name}/System/|g" \ + -i {} \; + ''; +} diff --git a/pkgs/by-name/ap/apple-sdk/common/run-build-phase-hooks.nix b/pkgs/by-name/ap/apple-sdk/common/run-build-phase-hooks.nix new file mode 100644 index 000000000000..9ab00665675d --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/common/run-build-phase-hooks.nix @@ -0,0 +1,9 @@ +{ }: + +self: super: { + buildPhase = '' + runHook preBuild + ${super.buildPhase or ""} + runHook postBuild + ''; +} diff --git a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json new file mode 100644 index 000000000000..9340931ca473 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json @@ -0,0 +1,358 @@ +{ + "10.12.2": { + "CarbonHeaders": { + "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", + "version": "18.1" + }, + "CommonCrypto": { + "hash": "sha256-1mCJjZLBMIftcsKC7Ihhzi6LRS3u7kJzh9/dy6MY1Hg=", + "version": "60092.30.2" + }, + "IOAudioFamily": { + "hash": "sha256-5t3D44H/h0cUZqAjMi56BTbJD4o+R0xVdHJ1sZLYgNM=", + "version": "205.11" + }, + "IOBDStorageFamily": { + "hash": "sha256-4NpWcqfkp3UxhKKAwomDK3zxQ9DagyYFUVoUcrHo1Rg=", + "version": "18" + }, + "IOCDStorageFamily": { + "hash": "sha256-XOwdBFunLbwyasnTKQC6MRlXxGns07JvcAQc6AQ1Zt4=", + "version": "56" + }, + "IODVDStorageFamily": { + "hash": "sha256-bbGzqJnenEL9hRyKMBif/381/ETO+yNYHhlnXXWLne0=", + "version": "41.1" + }, + "IOFWDVComponents": { + "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", + "version": "208" + }, + "IOFireWireAVC": { + "hash": "sha256-rhZdjNoZ3OuHVLClhe9tMQU6qJs3IOHEqJ5TaNRJRnM=", + "version": "424" + }, + "IOFireWireFamily": { + "hash": "sha256-adOI5uhd6QL4zpo4MK4ttmS1lcKseqmr68C1D/juGo0=", + "version": "465" + }, + "IOFireWireSBP2": { + "hash": "sha256-5UWldDuSyAnRYjgIKllY4VNbxtAUawrlRS46+8FnbPs=", + "version": "427" + }, + "IOFireWireSerialBusProtocolTransport": { + "hash": "sha256-a/xnnR2dUSWVMyTlkxJPa7cWk20RHl0Zh2Ot2pSEkF0=", + "version": "252" + }, + "IOGraphics": { + "hash": "sha256-63XDVmEHu+KUdr06S7+RPi1BgLcAl4GZZRy+K96CvA0=", + "version": "513.1" + }, + "IOHIDFamily": { + "hash": "sha256-BUDj89w4DrnsIxJZNIx3ZJ85c22HMchIVhJI7xREWTM=", + "version": "870.31.1" + }, + "IOKitUser": { + "hash": "sha256-XJnOp5AtStXUim19GLev8MSM8iS5U8rRSnm7cNp/B80=", + "version": "1324.30.13" + }, + "IONetworkingFamily": { + "hash": "sha256-dL1wSu72uzAAoMdgSjitXgHviioVIGdkDXqwY6HT5/g=", + "version": "116.1.1" + }, + "IOSerialFamily": { + "hash": "sha256-ZcZ5F+a4u2AHThO5WyLn3/o42DR+YDBZKTy4P2EhHhk=", + "version": "91" + }, + "IOStorageFamily": { + "hash": "sha256-IjsG/lgdtW04WH/5rb1QAT563Oy4O5fUrTGuA1kBrkY=", + "version": "210.30.1" + }, + "IOUSBFamily": { + "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", + "version": "630.4.5" + }, + "Libc": { + "hash": "sha256-wyt5CJnNzk0MPC6pg2JAdiwIPxWFJsO9Yqa83vY+hLc=", + "version": "1158.30.7" + }, + "Libinfo": { + "hash": "sha256-3Mu9lOkaQx5gmNPXzr67FnZvKWmQhryIPsN6k95TU18=", + "version": "503.30.1" + }, + "Libm": { + "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", + "version": "2026" + }, + "Libnotify": { + "hash": "sha256-msGtbR53SHXjYN8i74gmkYWGkmqg+TcRO7TY/23XSFQ=", + "version": "165.20.1" + }, + "Librpcsvc": { + "hash": "sha256-8e8E9TkRTAep3/miyqhF/mSkNdlym12W+AVhXF94+Bg=", + "version": "26" + }, + "Libsystem": { + "hash": "sha256-FwI2aD3wSwES/sKkr014BdFLfsKeEefgS0Pne1FGOp0=", + "version": "1238" + }, + "OpenDirectory": { + "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", + "version": "146" + }, + "Security": { + "hash": "sha256-Ya+ZO3bHNhQ+vZZx/lE7x+uMROHYWYKvm2ZZ1vClu3Q=", + "version": "57740.31.2" + }, + "architecture": { + "hash": "sha256-gHUfKWc1uahI/IATafY1ppPAWnYUghOEXWK2lknAfrQ=", + "version": "268" + }, + "configd": { + "hash": "sha256-i1UjnU7xBh7jCrGZxWMGrldzDrk2dDvjpthp/kq9OKo=", + "version": "888.30.2" + }, + "copyfile": { + "hash": "sha256-pth+37uTfuFY94HuA4b/5GleDjidAuXVsBEQBUa3xCE=", + "version": "138" + }, + "dtrace": { + "hash": "sha256-dK0N3l02241A5S1uvxZhqArHrTxd5Sd4JoAl6RBa8/8=", + "version": "209.20.4" + }, + "dyld": { + "hash": "sha256-wyVsmqYgKLdMKZsLOHzOLag+mBnH0kNS6XAv4zuNTT4=", + "version": "421.2" + }, + "eap8021x": { + "hash": "sha256-XSbzuNXyDJAADcnZed4Akmg1SK8P1IGrZitmhV3wzlo=", + "version": "246.30.1" + }, + "hfs": { + "hash": "sha256-7ByUP59FXmmrxC5yJYUQxrkgt/vY7vZMl5JPQ0HfoS8=", + "version": "366.30.3" + }, + "launchd": { + "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", + "version": "842.1.4" + }, + "libclosure": { + "hash": "sha256-hfXKQDRdgEDVyT+3v/EuQZyXNd0abD2tICYdQNfhtwY=", + "version": "67" + }, + "libdispatch": { + "hash": "sha256-tj4+6V4FL/XVON13UH71schElTm4/IKtPJH/yoUgRY0=", + "version": "703.30.5" + }, + "libmalloc": { + "hash": "sha256-q9zcUy8YTsRds6RYJMIUIY/MULQ19uKiNduMXP3D7hA=", + "version": "116.30.3" + }, + "libplatform": { + "hash": "sha256-k9Pd+TJCrNS7K100og+6bLAZjV/0VUTy8SIOsc+SE6Q=", + "version": "126.1.2" + }, + "libpthread": { + "hash": "sha256-FJaJO4lXIMAIwEmVF6mHE4ZZZoPI8ZIVuMKLojEsESE=", + "version": "218.30.1" + }, + "mDNSResponder": { + "hash": "sha256-LYDkkmgyfWKK6AMINXyrXo5kw7+lxUcz+4Ckq9175vA=", + "version": "765.30.11" + }, + "objc4": { + "hash": "sha256-WfhJo+/KPGr3/OuV5Kg2no48UR7VVVarh9TB3VFSCQ4=", + "version": "706" + }, + "ppp": { + "hash": "sha256-eW62wL8C1GZ2+5aN0dTPsdoEu6FWf+6XEYv8OiEeMfY=", + "version": "838" + }, + "removefile": { + "hash": "sha256-EJYU6eHggyRsezClEWkGJmgePIdtyF4rpFD4kSK5Czw=", + "version": "45" + }, + "xnu": { + "hash": "sha256-pkELzbsWPtm9H31LaRkaVjkQpPDxG9E93TNS+K9nqhE=", + "version": "3789.31.2" + } + }, + "11.3": { + "CarbonHeaders": { + "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", + "version": "18.1" + }, + "CommonCrypto": { + "hash": "sha256-92v9tuNLqvalwYV4AqQllA8yN9fqGjSpc4MNAmFPrbk=", + "version": "60178.100.1" + }, + "IOAudioFamily": { + "hash": "sha256-dSSbt9ZoL/Tq2xXwvvXsDmD3Xru7igzdK1MxGL1K+Aw=", + "version": "300.6.1" + }, + "IOBDStorageFamily": { + "hash": "sha256-UgLMsQBe1QLzlbScmPmASBN7VH4YBmNOUX2CEDezjmE=", + "version": "20.100.1" + }, + "IOCDStorageFamily": { + "hash": "sha256-w0YhZ38RBfnxSc74Q8r5UdK+WiWOSAX46r5hahHLnSg=", + "version": "59" + }, + "IODVDStorageFamily": { + "hash": "sha256-1Sa8aZBGNtqJBNHva+YXxET6Wcdm2PgVrTzYT/8qrN4=", + "version": "43" + }, + "IOFWDVComponents": { + "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", + "version": "208" + }, + "IOFireWireAVC": { + "hash": "sha256-7H3WcZC/HuS9xsTNDWRqt+1JzUNK4ndvd4u2ru0GGRE=", + "version": "428" + }, + "IOFireWireFamily": { + "hash": "sha256-2xppN8RJ9cxrHWjPQ4bUIjtupPbzfmrm3rXnT/9QVfc=", + "version": "483" + }, + "IOFireWireSBP2": { + "hash": "sha256-kfhmZy8veqI3/XHDtOTKmKj6P7s+j0B+BiAbcjhGq0M=", + "version": "442" + }, + "IOFireWireSerialBusProtocolTransport": { + "hash": "sha256-WDq2Ak72Jw6gYNIKgZkiexA6LzccrPn1kpSbW5U50ek=", + "version": "257.40.1" + }, + "IOGraphics": { + "hash": "sha256-kEP4RWIZwu3ZPIq9IAPUKM0gIXHr8xD50SnGNFCQRcI=", + "version": "585.1" + }, + "IOHIDFamily": { + "hash": "sha256-QASfvttke+AUx55In4DD4vsQGzC3nbe+MugQQ4ddXGU=", + "version": "1633.100.36" + }, + "IOKitUser": { + "hash": "sha256-NQCRrufElx00B7CqqslBi5BTxf5Zs4lcMcJig4Eab0k=", + "version": "1845.100.19" + }, + "IONetworkingFamily": { + "hash": "sha256-HqTKzrX75mMFYYbxNKwPdXmI7h7t/QWuO3W1Qo//zIo=", + "version": "151.40.1" + }, + "IOSerialFamily": { + "hash": "sha256-wVS4QTx6MBOS0VrwyCZ3s5Usezwaf8rWzmNnfdDTXTU=", + "version": "93" + }, + "IOStorageFamily": { + "hash": "sha256-dy6CYz/z6SwPw0YfC6GLZO2u62Xy8otMDUNrZ5JhTDY=", + "version": "260.100.1" + }, + "IOUSBFamily": { + "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", + "version": "630.4.5" + }, + "Libc": { + "hash": "sha256-v01g/EtMW/STZQ1neKDMyUGL7sgaCzlwXN0VDaj/Mf0=", + "version": "1439.100.3" + }, + "Libinfo": { + "hash": "sha256-T7KO6zfswjyTIKSdZJCbvfsdqQfPMLj5nheX9iSIl9o=", + "version": "542.40.3" + }, + "Libm": { + "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", + "version": "2026" + }, + "Libnotify": { + "hash": "sha256-vcDjdwB5OiTEUdl8ISezzpoHeFttkdvkulY/YbUOZjk=", + "version": "279.40.4" + }, + "Librpcsvc": { + "hash": "sha256-8e8E9TkRTAep3/miyqhF/mSkNdlym12W+AVhXF94+Bg=", + "version": "26" + }, + "Libsystem": { + "hash": "sha256-24T9aD4W71prcpr3MnnaU3pfxIzIwkOz39OyhCwPO/E=", + "version": "1292.100.5" + }, + "OpenDirectory": { + "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", + "version": "146" + }, + "Security": { + "hash": "sha256-o5MyyqDpERvNPvbEfXNgqMIq0YpQV0+ju72C9g/9OdI=", + "version": "59754.100.106" + }, + "architecture": { + "hash": "sha256-pIX9pEXE1Xjll9qwiWrMRwqw6G4g0isto/ALHsmkUSc=", + "version": "279" + }, + "configd": { + "hash": "sha256-WEorIW5Vl8E9/aB0RBTY2bhkfVOF3tckjNztGDOOueA=", + "version": "1109.101.1" + }, + "copyfile": { + "hash": "sha256-3BHFM67dvwUpinzF0pSX3QiUbIsqtLo77WzB3tMbTW4=", + "version": "173.40.2" + }, + "dtrace": { + "hash": "sha256-FfyaYjEMDeL9wGdUyZ4eJdkbkp/WpdTGyBvaorwKSi8=", + "version": "370.40.1" + }, + "dyld": { + "hash": "sha256-dtDTh6YqubBI4Z+QeytwGgUmU6tutvonIWHqzw6zuxo=", + "version": "851.27" + }, + "eap8021x": { + "hash": "sha256-Ap7qumn/oKYe424n2NW6QkuivgDyLoJgDfl30Q5O7Jo=", + "version": "304.100.1" + }, + "hfs": { + "hash": "sha256-MSnc1pB8DcB+mn308snTD1uRQ7Ro4aWyFuLdWjHtAG4=", + "version": "556.100.11" + }, + "launchd": { + "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", + "version": "842.1.4" + }, + "libclosure": { + "hash": "sha256-UgmMnDUosaC2yI7IyQ7mkNwZ6/oft77ay+SmGSoycIw=", + "version": "79" + }, + "libdispatch": { + "hash": "sha256-K8QL9NfjGsj8c0jbocKegmKBqydimpKu8yRXnQQqdH8=", + "version": "1271.100.5" + }, + "libmalloc": { + "hash": "sha256-k3dJk7S0Lom3B28vRI9QxIuo0AOkd9OHzWO7MandfUw=", + "version": "317.100.9" + }, + "libplatform": { + "hash": "sha256-BSIGgKj5B6Dr0KQiIl2LSA3+ZEhzk/snQeCauErcq6k=", + "version": "254.80.2" + }, + "libpthread": { + "hash": "sha256-cGaDXLTztUYppbMvv41qj5RqONXfhfdHpt9dqY6+5Lc=", + "version": "454.100.8" + }, + "mDNSResponder": { + "hash": "sha256-eqcv174vIwWYXrIhzph+KO1zG8TdK5jRFVgsaAlV9es=", + "version": "1310.100.10" + }, + "objc4": { + "hash": "sha256-rqOPyN9S4KbMhCCVvtyEmGxTWzy+tsh0kfu3k47szXo=", + "version": "818.2" + }, + "ppp": { + "hash": "sha256-pSOlu/yXQhopCHDLnmhUnQeU89MkXhkQB0ZrN9r3qyk=", + "version": "877.40.2" + }, + "removefile": { + "hash": "sha256-B79A9AQ1/cB+zlmVKWcEXVOJHW6rOrX40S/hrMuWqXU=", + "version": "49.101.1" + }, + "xnu": { + "hash": "sha256-M1XWippH55VUJu4aosRFX8j9aOm/PONYVjPZOPufD80=", + "version": "7195.101.1" + } + } +} diff --git a/pkgs/by-name/ap/apple-sdk/metadata/disallowed-packages.json b/pkgs/by-name/ap/apple-sdk/metadata/disallowed-packages.json new file mode 100644 index 000000000000..4c225b9af1d2 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/metadata/disallowed-packages.json @@ -0,0 +1,554 @@ +[ + { + "package": "apache", + "headers": [ + "apache2" + ] + }, + { + "package": "apr", + "headers": [ + "apr-1" + ], + "libraries": [ + "libapr-1.*", + "libaprutil-1.*" + ] + }, + { + "package": "boringssl", + "libraries": [ + "libboringssl.*" + ] + }, + { + "package": "bzip2", + "headers": [ + "bzlib.h" + ], + "libraries": [ + "libbz2.*" + ] + }, + { + "package": "corecrypto", + "libraries": [ + "system/libcorecrypto*" + ] + }, + { + "package": "Csu", + "libraries": [ + "*.o" + ] + }, + { + "package": "cups", + "headers": [ + "cups" + ], + "libraries": [ + "libcups*" + ] + }, + { + "package": "curl", + "headers": [ + "curl" + ], + "libraries": [ + "libcurl.*" + ] + }, + { + "package": "cyrus_sasl", + "headers": [ + "sasl" + ], + "libraries": [ + "libsasl*" + ] + }, + { + "package": "dtrace", + "headers": [ + "dtrace.h" + ], + "libraries": [ + "*dtrace*" + ] + }, + { + "package": "editline", + "headers": [ + "editline.h", + "editline" + ], + "libraries": [ + "libedit.*", + "libeditline.*" + ] + }, + { + "package": "html-tidy", + "headers": [ + "tidy*" + ], + "libraries": [ + "libtidy.*" + ] + }, + { + "package": "hunspell", + "headers": [ + "hunspell" + ], + "libraries": [ + "libhunspell*" + ] + }, + { + "package": "icu", + "headers": [ + "unicode" + ], + "libraries": [ + "libicucore.*" + ] + }, + { + "package": "libarchive", + "headers": [ + "archive.h", + "archive_entry.h" + ], + "libraries": [ + "libarchive.*" + ] + }, + { + "package": "libc++", + "headers": [ + "c++", + "cxxabi.h", + "__cxxabi_config.h" + ], + "libraries": [ + "libc++*" + ] + }, + { + "package": "ld64", + "libraries": [ + "libcodedirectory.*", + "libcodedirectory_static.*" + ] + }, + { + "package": "expat", + "headers": [ + "expat.h", + "expat_config.h", + "expat_external.h" + ], + "libraries": [ + "libexpat.*" + ] + }, + { + "package": "libffi", + "headers": [ + "ffi*" + ], + "libraries": [ + "libffi*" + ] + }, + { + "package": "libgcc", + "libraries": [ + "libgcc*" + ] + }, + { + "package": "libiconv", + "headers": [ + "iconv.h", + "libcharset.h", + "localcharset.h" + ], + "libraries": [ + "libcharset.*", + "libiconv.*", + "i18n" + ] + }, + { + "package": "libiodbc", + "libraries": [ + "libiodbc*" + ] + }, + { + "package": "libkrb4", + "libraries": [ + "libkrb4.*" + ] + }, + { + "package": "libkrb5", + "headers": [ + "com_err.h", + "gssapi", + "gssapi.h", + "gssrpc", + "kadm5", + "kdb.h", + "krad.h", + "krb5", + "krb5.h", + "profile.h", + "verto-module.h", + "verto.h" + ], + "libraries": [ + "krb5", + "libcom_err.*", + "libgssapi_krb5.*", + "libgssrpc.*", + "libk5crypto.*", + "libkadm5clnt.*", + "libkadm5clnt_mit.*", + "libkadm5srv.*", + "libkadm5srv_mit.*", + "libkdb5.*", + "libkrad.*", + "libkrb5*", + "libkrb5support.*", + "libverto.*" + ] + }, + { + "package": "libpcap", + "headers": [ + "pcap*" + ], + "libraries": [ + "libpcap.*" + ] + }, + { + "package": "libresolv", + "headers": [ + "arpa/nameser.h", + "arpa/nameser_compat.h", + "dns.h", + "dns_util.h", + "nameser.h", + "resolv.h" + ], + "libraries": [ + "libresolv.*" + ] + }, + { + "package": "libstdc++", + "libraries": [ + "libstdc++.*" + ] + }, + { + "package": "libsbuf", + "headers": [ + "usbuf.h" + ], + "libraries": [ + "libsbuf.*" + ] + }, + { + "package": "libtermcap", + "headers": [ + "termcap.h" + ], + "libraries": [ + "libtermcap.*" + ] + }, + { + "package": "libutil", + "headers": [ + "libutil.h" + ], + "libraries": [ + "libutil.*", + "libutil1.*" + ] + }, + { + "package": "libxml2", + "headers": [ + "libxml", + "libxml2" + ], + "libraries": [ + "libxml2.*" + ] + }, + { + "package": "libxo", + "headers": [ + "libxo" + ], + "libraries": [ + "libxo.*" + ] + }, + { + "package": "libxslt", + "headers": [ + "libexslt", + "libxslt" + ], + "libraries": [ + "libexslt.*", + "libxslt.*" + ] + }, + { + "package": "liby", + "libraries": [ + "liby.a" + ] + }, + { + "package": "marisa-trie", + "libraries": [ + "libmarisa.*" + ] + }, + { + "package": "ncurses", + "headers": [ + "curses*", + "cursslk.h", + "eti.h", + "etip.h", + "form.h", + "menu.h", + "nc_tparm.h", + "ncurses*", + "panel.h", + "term.h", + "term_entry.h", + "termcap.h", + "tic.h", + "unctrl.h" + ], + "libraries": [ + "libcurses.*", + "libform.*", + "libformw.*", + "libmenu.*", + "libmenuw.*", + "libncurses.*", + "libncursesw.*", + "libpanel.*", + "libpanelw.*", + "libtinfo.*" + ] + }, + { + "package": "net-snmp", + "headers": [ + "net-snmp" + ], + "libraries": [ + "libnetsnmp*" + ] + }, + { + "package": "nghttp", + "libraries": [ + "lib*nghttp2.*" + ] + }, + { + "package": "openblas", + "headers": [ + "cblas.h", + "f77blas.h", + "lapack.h", + "lapacke.h", + "lapacke_config.h", + "lapacke_mangling.h", + "lapacke_utils.h", + "openblas_config.h" + ], + "libraries": [ + "libblas.*", + "libcblas.*", + "libclapack.*", + "libf77lapack.*", + "liblapack.*", + "liblapacke.*", + "libopenblas.*", + "libopenblas.*", + "libopenblasp*" + ] + }, + { + "package": "openldap", + "headers": [ + "lber.h", + "lber_types.h", + "ldap.h", + "ldap_cdefs.h", + "ldap_features.h", + "ldap_schema.h", + "ldap_utf8.h", + "ldif.h", + "openldap.h", + "slapi-plugin.h" + ], + "libraries": [ + "liblber.*", + "liblber_r.*", + "libldap.*", + "libldap_r.*" + ] + }, + { + "package": "openpam", + "headers": [ + "security" + ], + "libraries": [ + "libpam.*", + "pam_*" + ] + }, + { + "package": "pcre", + "headers": [ + "pcre.h", + "pcreposix.h" + ], + "libraries": [ + "libpcre.*", + "libpcre2*", + "libpcreposix.*" + ] + }, + { + "package": "php", + "headers": [ + "php" + ], + "libraries": [ + "php" + ] + }, + { + "package": "postgresql", + "libraries": [ + "libecpg*", + "libpg*", + "libpq*" + ] + }, + { + "package": "python", + "headers": [ + "python*" + ], + "frameworks": [ + "Python.framework" + ], + "libraries": [ + "libpython*", + "python*" + ] + }, + { + "package": "readline", + "headers": [ + "readline" + ], + "libraries": [ + "libhistory.*", + "libreadline.*" + ] + }, + { + "package": "ruby", + "frameworks": [ + "Ruby.framework" + ], + "libraries": [ + "libruby.*", + "ruby" + ] + }, + { + "package": "sqlite3", + "headers": [ + "sqlite3.h", + "sqlite3ext.h" + ], + "libraries": [ + "libsqlite3.*" + ] + }, + { + "package": "swift", + "libraries": [ + "swift/shims" + ] + }, + { + "package": "tcl", + "headers": [ + "tcl*", + "tk*" + ], + "frameworks": [ + "Tcl.framework", + "Tk.framework" + ], + "libraries": [ + "libtcl*", + "libtk*", + "tclConfig.sh", + "tkConfig.sh" + ] + }, + { + "package": "xar", + "headers": [ + "xar" + ], + "libraries": [ + "libxar.*" + ] + }, + { + "package": "xz", + "headers": [ + "lzma*" + ], + "libraries": [ + "liblzma.*" + ] + }, + { + "package": "zlib", + "headers": [ + "zconf.h", + "zlib.h" + ], + "libraries": [ + "libz.*" + ] + } +] diff --git a/pkgs/by-name/ap/apple-sdk/metadata/versions.json b/pkgs/by-name/ap/apple-sdk/metadata/versions.json new file mode 100644 index 000000000000..3b7f086c5544 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/metadata/versions.json @@ -0,0 +1,12 @@ +{ + "10.12": { + "url": "http://swcdn.apple.com/content/downloads/22/62/041-88607/wg8avdk0jo75k9a13gentz9stwqgrqmcv6/CLTools_SDK_OSX1012.pkg", + "version": "10.12.2", + "hash": "sha256-Jf2WIB9bY/rPwe0AOW3YWJY/6EqVe41yhezdTGOO3M8=" + }, + "11": { + "url": "https://swcdn.apple.com/content/downloads/02/62/071-54303-A_EU2CL1YVT7/943i95dpeyi2ghlnj2mgyq3t202t5gf18b/CLTools_macOSNMOS_SDK.pkg", + "version": "11.3", + "hash": "sha256-/go8utcx3jprf6c8V/DUbXwsmNYSFchOAai1OaJs3Bg=" + } +} diff --git a/pkgs/by-name/ap/apple-sdk/package.nix b/pkgs/by-name/ap/apple-sdk/package.nix new file mode 100644 index 000000000000..2fb57182001c --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/package.nix @@ -0,0 +1,120 @@ +let + sdkVersions = builtins.fromJSON (builtins.readFile ./metadata/versions.json); +in + +{ + lib, + stdenv, + stdenvNoCC, + substitute, + + # Specifies the major version used for the SDK. Uses `hostPlatform.darwinSdkVersion` by default. + darwinSdkMajorVersion ? ( + if lib.versionOlder stdenv.hostPlatform.darwinSdkVersion "11" then + lib.versions.majorMinor stdenv.hostPlatform.darwinSdkVersion + else + lib.versions.major stdenv.hostPlatform.darwinSdkVersion + ), + # Enabling bootstrap disables propagation. Defaults to `false` (meaning to propagate certain packages and `xcrun`) + # except in stage0 of the Darwin stdenv bootstrap. + enableBootstrap ? stdenv.name == "bootstrap-stage0-stdenv-darwin", + + # Required by various phases + callPackage, + jq, +}: + +let + sdkInfo = + sdkVersions.${darwinSdkMajorVersion} + or (lib.throw "Unsupported SDK major version: ${darwinSdkMajorVersion}"); + sdkVersion = sdkInfo.version; + + fetchSDK = callPackage ./common/fetch-sdk.nix { }; + + phases = lib.composeManyExtensions ( + [ + (callPackage ./common/add-core-symbolication.nix { }) + (callPackage ./common/derivation-options.nix { }) + (callPackage ./common/passthru-private-frameworks.nix { inherit sdkVersion; }) + (callPackage ./common/passthru-source-release-files.nix { inherit sdkVersion; }) + (callPackage ./common/remove-disallowed-packages.nix { }) + ] + # Only process stubs and convert them to tbd-v4 if jq is available. This can be made unconditional once + # the bootstrap tools have jq and libtapi. + ++ lib.optional (jq != null) (callPackage ./common/process-stubs.nix { }) + # Avoid infinite recursions by not propagating certain packages, so they can themselves build with the SDK. + ++ lib.optionals (!enableBootstrap) [ + (callPackage ./common/propagate-inputs.nix { }) + (callPackage ./common/propagate-xcrun.nix { }) + ] + ++ [ + # These have to happen last. + (callPackage ./common/rewrite-sdk-paths.nix { inherit sdkVersion; }) + (callPackage ./common/run-build-phase-hooks.nix { }) + ] + ); +in +stdenvNoCC.mkDerivation ( + lib.extends phases (finalAttrs: { + pname = "apple-sdk"; + inherit (sdkInfo) version; + + src = fetchSDK sdkInfo; + + dontConfigure = true; + + strictDeps = true; + + setupHooks = [ + # `role.bash` is copied from `../build-support/setup-hooks/role.bash` due to the requirements not to reference + # paths outside the package when it is in `by-name`. It needs to be kept in sync, but it fortunately does not + # change often. Once `build-support` is available as a package (or some other mechanism), it should be changed + # to whatever that replacement is. + ./setup-hooks/role.bash + (substitute { + src = ./setup-hooks/sdk-hook.sh; + substitutions = [ + "--subst-var-by" + "sdkVersion" + (lib.escapeShellArgs (lib.splitVersion sdkVersion)) + ]; + }) + ]; + + installPhase = + let + sdkName = "MacOSX${lib.versions.majorMinor sdkVersion}.sdk"; + sdkMajor = lib.versions.major sdkVersion; + in + '' + runHook preInstall + + mkdir -p "$sdkpath" + + cp -rd . "$sdkpath/${sdkName}" + ${lib.optionalString (lib.versionAtLeast finalAttrs.version "11.0") '' + ln -s "${sdkName}" "$sdkpath/MacOSX${sdkMajor}.sdk" + ''} + ln -s "${sdkName}" "$sdkpath/MacOSX.sdk" + + runHook postInstall + ''; + + passthru = { + sdkroot = finalAttrs.finalPackage + "/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk"; + }; + + __structuredAttrs = true; + + meta = { + description = "Frameworks and libraries required for building packages on Darwin"; + homepage = "https://developer.apple.com"; + maintainers = lib.teams.darwin.members; + platforms = lib.platforms.darwin; + badPlatforms = + lib.optionals (lib.versionAtLeast sdkVersion "10.15") [ lib.systems.inspect.patterns.is32bit ] + ++ lib.optionals (lib.versionOlder sdkVersion "11.0") [ lib.systems.inspect.patterns.isAarch ]; + }; + }) +) diff --git a/pkgs/by-name/ap/apple-sdk/patches/0001-Add-function-definitions-needed-to-build-zlog-in-sys.patch b/pkgs/by-name/ap/apple-sdk/patches/0001-Add-function-definitions-needed-to-build-zlog-in-sys.patch new file mode 100644 index 000000000000..681970cb2f71 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/patches/0001-Add-function-definitions-needed-to-build-zlog-in-sys.patch @@ -0,0 +1,48 @@ +From 6531da946949a94643e6d8424236174ae64fe0ca Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Sat, 30 Sep 2023 18:02:39 -0400 +Subject: [PATCH 1/2] Add function definitions needed to build zlog in + system_cmds + +--- + CoreSymbolication.h | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +diff --git a/CoreSymbolication.h b/CoreSymbolication.h +index a413860..f3cf63f 100644 +--- a/CoreSymbolication.h ++++ b/CoreSymbolication.h +@@ -324,7 +324,9 @@ CSSymbolOwnerEditRelocations + CSSymbolOwnerForeachRegion + CSSymbolOwnerForeachRegionWithName + CSSymbolOwnerForeachSection +-CSSymbolOwnerForeachSegment ++*/ ++void CSSymbolOwnerForeachSegment(CSSymbolOwnerRef owner, void (^block)(CSSegmentRef)); ++/* + CSSymbolOwnerForeachSourceInfo + CSSymbolOwnerForeachSymbol + */ +@@ -333,7 +335,9 @@ void CSSymbolOwnerForeachSymbolWithName(CSSymbolOwnerRef owner, const char *sna + /* + CSSymbolOwnerGetArchitecture + CSSymbolOwnerGetBaseAddress +-CSSymbolOwnerGetCFUUIDBytes ++*/ ++const CFUUIDBytes* CSSymbolOwnerGetCFUUIDBytes(CSSymbolOwnerRef owner); ++/* + CSSymbolOwnerGetCompatibilityVersion + CSSymbolOwnerGetCurrentVersion + CSSymbolOwnerGetDataFlags +@@ -390,7 +394,7 @@ CSSymbolOwnerSetLoadTimestamp + CSSymbolOwnerSetPath + CSSymbolOwnerSetRelocationCount + */ +-CSSymbolOwnerSetTransientUserData(CSSymbolOwnerRef owner, uint32_t gen); ++void CSSymbolOwnerSetTransientUserData(CSSymbolOwnerRef owner, uint32_t gen); + /* + CSSymbolOwnerSetUnloadTimestamp + */ +-- +2.44.1 + diff --git a/pkgs/by-name/ap/apple-sdk/patches/0002-Add-CF_EXPORT-To-const-symbols.patch b/pkgs/by-name/ap/apple-sdk/patches/0002-Add-CF_EXPORT-To-const-symbols.patch new file mode 100644 index 000000000000..01f934be6ef4 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/patches/0002-Add-CF_EXPORT-To-const-symbols.patch @@ -0,0 +1,45 @@ +From ae7ac6a7043dbae8e63d6ce5e63dfaf02b5977fe Mon Sep 17 00:00:00 2001 +From: Randy Eckenrode +Date: Sat, 30 Sep 2023 18:37:18 -0400 +Subject: [PATCH 2/2] Add CF_EXPORT To const symbols + +--- + CoreSymbolication.h | 15 ++++++++------- + 1 file changed, 8 insertions(+), 7 deletions(-) + +diff --git a/CoreSymbolication.h b/CoreSymbolication.h +index f3cf63f..4124a54 100644 +--- a/CoreSymbolication.h ++++ b/CoreSymbolication.h +@@ -49,6 +49,7 @@ + + + #include ++#include + #include + + +@@ -139,13 +140,13 @@ typedef void (^CSSegmentIterator)(CSSegmentRef segment); + * External symbols + */ + +-const char* kCSRegionMachHeaderName; +-const CSDictionaryKeyCallBacks kCSTypeDictionaryKeyCallBacks; +-const CSDictionaryValueCallBacks kCSTypeDictionaryValueCallBacks; +-const CSDictionaryKeyCallBacks kCSTypeDictionaryWeakKeyCallBacks; +-const CSDictionaryValueCallBacks kCSTypeDictionaryWeakValueCallBacks; +-const CSSetCallBacks kCSTypeSetCallBacks; +-const CSSetCallBacks kCSTypeSetWeakCallBacks; ++CF_EXPORT const char* kCSRegionMachHeaderName; ++CF_EXPORT const CSDictionaryKeyCallBacks kCSTypeDictionaryKeyCallBacks; ++CF_EXPORT const CSDictionaryValueCallBacks kCSTypeDictionaryValueCallBacks; ++CF_EXPORT const CSDictionaryKeyCallBacks kCSTypeDictionaryWeakKeyCallBacks; ++CF_EXPORT const CSDictionaryValueCallBacks kCSTypeDictionaryWeakValueCallBacks; ++CF_EXPORT const CSSetCallBacks kCSTypeSetCallBacks; ++CF_EXPORT const CSSetCallBacks kCSTypeSetWeakCallBacks; + + + /* +-- +2.44.1 + diff --git a/pkgs/by-name/ap/apple-sdk/scripts/get-sdks-from-catalog.sh b/pkgs/by-name/ap/apple-sdk/scripts/get-sdks-from-catalog.sh new file mode 100755 index 000000000000..1293fab11cc9 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/scripts/get-sdks-from-catalog.sh @@ -0,0 +1,41 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p coreutils curl file gzip jq xcbuild yq + +set -eu -o pipefail + +catalog=${1-} + +if [ -z "$catalog" ]; then + echo "usage: get-sdks-from-catalog.sh " + echo " Apple software update catalog (may be gzipped)" >&2 + exit 1 +fi + +scratch=$(mktemp) +trap 'rm -f -- "$scratch"' EXIT + +if [[ "$(file "$catalog")" =~ gzip ]]; then + gzcat "$catalog" > "$scratch" +else + cp --reflink=auto "$catalog" "$scratch" +fi + +# Grab all SDK packages from the catalog +filter='.Products[].Packages[] | select(.URL | test(".*CLTools_macOSNMOS_SDK.pkg")) | "\(.URL)|\(.MetadataURL)"' + +declare -A package_list +for package in $(plutil -convert json -o - "$scratch" | jq -r "$filter"); do + package_list[${package%%|*}]=${package#*|} +done + +truncate --size 0 "$scratch" +for pkg in "${!package_list[@]}"; do + ver=$(curl --silent "${package_list[$pkg]}" | xq -r '."pkg-info"."@version"') + echo "{\"url\": \"$pkg\", \"version\": \"$(cut -d. -f1-3 <<< "$ver")\", \"long_version\": \"$ver\"}" >> "$scratch" +done + +jq -r --slurp ' + group_by(.version | split(".")[0]) + | map(max_by(.version)) + | sort_by(.version)[] + | "Package URL: \(.url)\n Xcode Ver: \(.version) (\(.long_version))\n"' "$scratch" diff --git a/pkgs/by-name/ap/apple-sdk/scripts/lock-sdk-deps.sh b/pkgs/by-name/ap/apple-sdk/scripts/lock-sdk-deps.sh new file mode 100755 index 000000000000..ce2c1f1aeb53 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/scripts/lock-sdk-deps.sh @@ -0,0 +1,69 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p coreutils curl git gnutar jq moreutils nix + +set -eu -o pipefail + +if [ ! -v 2 ]; then + echo "usage: lock-sdk-deps.sh " >&2 + echo " Decimal-separated version number." >&2 + echo " Must correspond to a tag in https://github.com/apple-oss-distributions/distribution-macOS" >&2 + echo " List of packages from the distributions-macOS repository." >&2 + echo " Packages not in the repository at the tag for will be ignored." + exit 1 +fi + +pkgdir=$(dirname "$(dirname "$(realpath "$0")")") + +lockfile=$pkgdir/metadata/apple-oss-lockfile.json +if [ ! -e "$lockfile" ]; then + touch "$lockfile" +fi + +workdir=$(mktemp -d) +trap 'rm -rf -- "$workdir"' EXIT + +sdkVersion=$1; shift +tag="macos-${sdkVersion//.}" + +declare -a packages=("$@") + +echo "Locking versions for macOS $sdkVersion using tag '$tag'..." + +pushd "$workdir" > /dev/null + +git clone --branch "$tag" https://github.com/apple-oss-distributions/distribution-macOS.git &> /dev/null +cd distribution-macOS + +for package in "${packages[@]}"; do + # If the tag exists in `release.json`, use that as an optimization to avoid downloading unnecessarily from Github. + packageTag=$(jq -r --arg package "$package" '.projects[] | select(.project == $package) | .tag' release.json) + packageCommit=$(git ls-tree -d HEAD "$package" | awk '{print $3}') + + if [ ! -d "$package" ]; then + packageCommit=HEAD + fi + + # However, sometimes it doesn’t exist. In that case, fall back to cloning the repo and check manually + # which tag corresponds to the commit from the submodule. + if [ -z "$packageTag" ]; then + git clone --no-checkout "https://github.com/apple-oss-distributions/$package.git" ../source &> /dev/null + pushd ../source > /dev/null + packageTag=$(git tag --points-at "$packageCommit") + popd > /dev/null + rm -rf ../source + fi + + packageVersion=${packageTag##"$package"-} + + curl -OL "https://github.com/apple-oss-distributions/$package/archive/$packageTag.tar.gz" &> /dev/null + tar axf "$packageTag.tar.gz" + + packageHash=$(nix --extra-experimental-features nix-command hash path "$package-$packageTag") + + pkgsjson="{\"$package\": {\"version\": \"$packageVersion\", \"hash\": \"$packageHash\"}}" + + echo " - Locking $package to version $packageVersion with hash '$packageHash'" + jq --argjson pkg "$pkgsjson" -S '. * $pkg' "$lockfile" | sponge "$lockfile" +done + +popd > /dev/null diff --git a/pkgs/by-name/ap/apple-sdk/scripts/regenerate-lockfile.sh b/pkgs/by-name/ap/apple-sdk/scripts/regenerate-lockfile.sh new file mode 100755 index 000000000000..3922916e6135 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/scripts/regenerate-lockfile.sh @@ -0,0 +1,62 @@ +#!/usr/bin/env nix-shell +#!nix-shell -i bash -p coreutils jq + +set -eu -o pipefail + +pkgdir=$(dirname "$(dirname "$(realpath "$0")")") + +echo '{}' > "$pkgdir/metadata/apple-oss-lockfile.json" + +declare -a versions +readarray -t versions < <(jq -r '.[].version' "$pkgdir/metadata/versions.json") + +declare -a packages=( + CarbonHeaders + CommonCrypto + IOAudioFamily + IOFireWireFamily + IOFWDVComponents + IOFireWireAVC + IOFireWireSBP2 + IOFireWireSerialBusProtocolTransport + IOGraphics + IOHIDFamily + IONetworkingFamily + IOSerialFamily + IOStorageFamily + IOBDStorageFamily + IOCDStorageFamily + IODVDStorageFamily + IOUSBFamily + IOKitUser + Libc + Libinfo + Libm + Libnotify + Librpcsvc + Libsystem + OpenDirectory + Security + architecture + configd + copyfile + dtrace + dyld + eap8021x + hfs + launchd + libclosure + libdispatch + libmalloc + libplatform + libpthread + mDNSResponder + objc4 + ppp + removefile + xnu +) + +for version in "${versions[@]}"; do + "$pkgdir/scripts/lock-sdk-deps.sh" "$version" "${packages[@]}" +done diff --git a/pkgs/by-name/ap/apple-sdk/setup-hooks/add-private-frameworks.sh b/pkgs/by-name/ap/apple-sdk/setup-hooks/add-private-frameworks.sh new file mode 100644 index 000000000000..d5c48e3dd879 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/setup-hooks/add-private-frameworks.sh @@ -0,0 +1,6 @@ +function enablePrivateFrameworks() { + export NIX_CFLAGS_COMPILE+=" -iframework $DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks" + export NIX_LDFLAGS+=" -F$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks" +} + +preConfigureHooks+=(enablePrivateFrameworks) diff --git a/pkgs/by-name/ap/apple-sdk/setup-hooks/role.bash b/pkgs/by-name/ap/apple-sdk/setup-hooks/role.bash new file mode 100644 index 000000000000..bfd6b61f0aed --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/setup-hooks/role.bash @@ -0,0 +1,71 @@ +# Since the same derivation can be depended on in multiple ways, we need to +# accumulate *each* role (i.e. host and target platforms relative the depending +# derivation) in which the derivation is used. +# +# The role is intended to be used as part of other variables names like +# - $NIX_SOMETHING${role_post} + +function getRole() { + case $1 in + -1) + role_post='_FOR_BUILD' + ;; + 0) + role_post='' + ;; + 1) + role_post='_FOR_TARGET' + ;; + *) + echo "@name@: used as improper sort of dependency" >&2 + return 1 + ;; + esac +} + +# `hostOffset` describes how the host platform of the package is slid relative +# to the depending package. `targetOffset` likewise describes the target +# platform of the package. Both are brought into scope of the setup hook defined +# for dependency whose setup hook is being processed relative to the package +# being built. + +function getHostRole() { + getRole "$hostOffset" +} +function getTargetRole() { + getRole "$targetOffset" +} + +# `depHostOffset` describes how the host platform of the dependencies are slid +# relative to the depending package. `depTargetOffset` likewise describes the +# target platform of dependenices. Both are brought into scope of the +# environment hook defined for the dependency being applied relative to the +# package being built. + +function getHostRoleEnvHook() { + getRole "$depHostOffset" +} +function getTargetRoleEnvHook() { + getRole "$depTargetOffset" +} + +# This variant is intended specifically for code-producing tool wrapper scripts +# `NIX_@wrapperName@_TARGET_*_@suffixSalt@` tracks this (needs to be an exported +# env var so can't use fancier data structures). +function getTargetRoleWrapper() { + case $targetOffset in + -1) + export NIX_@wrapperName@_TARGET_BUILD_@suffixSalt@=1 + ;; + 0) + export NIX_@wrapperName@_TARGET_HOST_@suffixSalt@=1 + ;; + 1) + export NIX_@wrapperName@_TARGET_TARGET_@suffixSalt@=1 + ;; + *) + echo "@name@: used as improper sort of dependency" >&2 + return 1 + ;; + esac +} diff --git a/pkgs/by-name/ap/apple-sdk/setup-hooks/sdk-hook.sh b/pkgs/by-name/ap/apple-sdk/setup-hooks/sdk-hook.sh new file mode 100644 index 000000000000..62fa8b339a71 --- /dev/null +++ b/pkgs/by-name/ap/apple-sdk/setup-hooks/sdk-hook.sh @@ -0,0 +1,17 @@ +local role_post +getHostRole + +local sdkVersionVar=NIX_APPLE_SDK_VERSION${role_post} +local developerDirVar=DEVELOPER_DIR${role_post} + +local sdkVersionArr=(@sdkVersion@) +local sdkVersion +sdkVersion=$(printf "%02d%02d%02d" "${sdkVersionArr[0]-0}" "${sdkVersionArr[1]-0}" "${sdkVersionArr[2]-0}") + +if [ "$sdkVersion" -gt "${!sdkVersionVar-000000}" ]; then + export "$developerDirVar"='@out@' + export "$sdkVersionVar"="$sdkVersion" + export "SDKROOT${role_post}"="${!developerDirVar}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" +fi + +unset -v role_post developerDirVar sdkVersion sdkVersionArr sdkVersionVar diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index fd4ca3df70c7..c520299026ae 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23742,6 +23742,9 @@ with pkgs; ### DEVELOPMENT / LIBRARIES / DARWIN SDKS + apple-sdk_10_12 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.12"; }; + apple-sdk_11 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "11"; }; + darwinMinVersionHook = deploymentTarget: makeSetupHook { From 3fb982d0e2aab9b17591099caf53331e535295a3 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 20 Sep 2024 20:41:00 -0400 Subject: [PATCH 0250/1574] apple-sdk_10_13: init at 10.13.2 --- .../metadata/apple-oss-lockfile.json | 178 ++++++++++++++++++ .../metadata/disallowed-packages.json | 9 - .../ap/apple-sdk/metadata/versions.json | 5 + pkgs/top-level/all-packages.nix | 1 + 4 files changed, 184 insertions(+), 9 deletions(-) diff --git a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json index 9340931ca473..ef113d3ca7c4 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json @@ -177,6 +177,184 @@ "version": "3789.31.2" } }, + "10.13.2": { + "CarbonHeaders": { + "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", + "version": "18.1" + }, + "CommonCrypto": { + "hash": "sha256-3vx4HPlHP8PNi1GodeRh2iOEhyRBct3vX0Guc8060+I=", + "version": "60118.30.2" + }, + "IOAudioFamily": { + "hash": "sha256-UG09Dc+up5cJKDHPpCmo11IsBchqZ72hVBPx8y+1klw=", + "version": "206.5" + }, + "IOBDStorageFamily": { + "hash": "sha256-aaS5jWPRX4be8d3Rigq+kXzi9Zwbr8dHcNgcIz0n66o=", + "version": "19" + }, + "IOCDStorageFamily": { + "hash": "sha256-U6v+Gj+IumU8Aha5+uf3yOU0Z4KMuBh7aXnJqiZ/abY=", + "version": "58" + }, + "IODVDStorageFamily": { + "hash": "sha256-JLp4xN0Rdb2VpuXtVTODYNqQthDEZk+g/lvHRwJHQB4=", + "version": "42" + }, + "IOFWDVComponents": { + "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", + "version": "208" + }, + "IOFireWireAVC": { + "hash": "sha256-4JS+oezknezxud2E2ojYdSx7A8Z9Q4rddetAoUMU1es=", + "version": "425" + }, + "IOFireWireFamily": { + "hash": "sha256-+FPlhMN2h1iCg1GAqH8+MwHG3GIs4DvvE3QGABX+3Rg=", + "version": "468" + }, + "IOFireWireSBP2": { + "hash": "sha256-5UWldDuSyAnRYjgIKllY4VNbxtAUawrlRS46+8FnbPs=", + "version": "427" + }, + "IOFireWireSerialBusProtocolTransport": { + "hash": "sha256-a/xnnR2dUSWVMyTlkxJPa7cWk20RHl0Zh2Ot2pSEkF0=", + "version": "252" + }, + "IOGraphics": { + "hash": "sha256-E0wDkVmSeEcyO6L6OeWEQuZ0Ggh7MUkfqeQ9uLUEK/g=", + "version": "517.22" + }, + "IOHIDFamily": { + "hash": "sha256-9FhH53LyP1Yv2/afmr/lpNhl/GNFb/Yg+VpG5Ycg300=", + "version": "1035.30.15" + }, + "IOKitUser": { + "hash": "sha256-LebulFJ4KJ5Vbcjj6SC70cmed/0vhCVYo5qDxCw85SE=", + "version": "1445.31.1" + }, + "IONetworkingFamily": { + "hash": "sha256-gXGFCSn6JnHOVaRKhGXFYdvJBo/AGBMDrUdIcw/CwqI=", + "version": "124.30.1" + }, + "IOSerialFamily": { + "hash": "sha256-wVS4QTx6MBOS0VrwyCZ3s5Usezwaf8rWzmNnfdDTXTU=", + "version": "93" + }, + "IOStorageFamily": { + "hash": "sha256-Jo+0XlNi82KGksyrvUGyVPfmPMlTrDmZ75DT2lH66TY=", + "version": "218.30.1" + }, + "IOUSBFamily": { + "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", + "version": "630.4.5" + }, + "Libc": { + "hash": "sha256-js2xU5dMF5j209F9Cufuq5WzqcyNusbJDyuPpMgYEZU=", + "version": "1244.30.3" + }, + "Libinfo": { + "hash": "sha256-pVVLb8eOuLVc4HHGcgpl7dqT+Tg2xqKQIQroyLj5OEg=", + "version": "517.30.1" + }, + "Libm": { + "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", + "version": "2026" + }, + "Libnotify": { + "hash": "sha256-nsWWqelTEP4nPJI3vG897zpSOxYOgpm8TUVJ04MrWU4=", + "version": "172" + }, + "Librpcsvc": { + "hash": "sha256-8e8E9TkRTAep3/miyqhF/mSkNdlym12W+AVhXF94+Bg=", + "version": "26" + }, + "Libsystem": { + "hash": "sha256-+VFJoiqEtXUcP8ERUxtrKwTWZmgdppr+0oPUxSgIF+c=", + "version": "1252" + }, + "OpenDirectory": { + "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", + "version": "146" + }, + "Security": { + "hash": "sha256-W3bSTDCjj2ftq0wbDp+Z8QfD6TpF4p0fLrVjx2AmvfY=", + "version": "58286.31.2" + }, + "architecture": { + "hash": "sha256-gHUfKWc1uahI/IATafY1ppPAWnYUghOEXWK2lknAfrQ=", + "version": "268" + }, + "configd": { + "hash": "sha256-1YGIbAES4OONFtC2xxXWbM7Htlz2kKtFUULWqBB6fz0=", + "version": "963.30.1" + }, + "copyfile": { + "hash": "sha256-CYTZwieSu1Fm9TLaaevfxDngAPRkEfewY+TgJrREed8=", + "version": "146.30.2" + }, + "dtrace": { + "hash": "sha256-sgLSbCp9tYZ7ws2jgxB3NaAk+ijsIbmybsi0gkbZjFQ=", + "version": "262" + }, + "dyld": { + "hash": "sha256-b1hM+iQl7ihRjHRL4Rcg5AHv5HSyKErVkTb+5KFF2P4=", + "version": "519.2.2" + }, + "eap8021x": { + "hash": "sha256-KZsnzH5JiLfzY3zjMAlJRPCGY5EioW6aDJnMAemZJUY=", + "version": "264.30.3" + }, + "hfs": { + "hash": "sha256-Ine8EFpW1kuNDn/r66abGyvYm+NSGI5TV3v/OlgyIME=", + "version": "407.30.1" + }, + "launchd": { + "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", + "version": "842.1.4" + }, + "libclosure": { + "hash": "sha256-hfXKQDRdgEDVyT+3v/EuQZyXNd0abD2tICYdQNfhtwY=", + "version": "67" + }, + "libdispatch": { + "hash": "sha256-rvsvtv9VncLxQHoURBBczrTaSgbw5827Qf2TxAPopqA=", + "version": "913.30.4" + }, + "libmalloc": { + "hash": "sha256-VM5jHQYqDkoGmrQ2UugTu+XOLjd1YPqdfddzQkKfhiY=", + "version": "140.1.1" + }, + "libplatform": { + "hash": "sha256-zQ3MYqQoMCsfgG6frwnG3LfKWwauTzgwhoADXVUiGR0=", + "version": "161.20.1" + }, + "libpthread": { + "hash": "sha256-6NLKbnBXikSfqz0ZWF6MOIq/bQK/CmfQNvkNXCU6lcw=", + "version": "301.30.1" + }, + "mDNSResponder": { + "hash": "sha256-anzilyXeGh8LL3cYvuLRdqGzhHUvSp9eILJWAltL18M=", + "version": "878.30.4" + }, + "objc4": { + "hash": "sha256-+4o+EzD0YQhgfTg/W9SbVDol7wWUIFxVAVTGg4OVfHQ=", + "version": "723" + }, + "ppp": { + "hash": "sha256-eUIFlYHsAPRrBS0TpTP1/TacaK8h/5QM2Xl1T46MdWc=", + "version": "847" + }, + "removefile": { + "hash": "sha256-EJYU6eHggyRsezClEWkGJmgePIdtyF4rpFD4kSK5Czw=", + "version": "45" + }, + "xnu": { + "hash": "sha256-x2k0KyNk4mIodXfYDHjaCKR1CsiE3HYBNN6p5SfGIMU=", + "version": "4570.31.3" + } + }, "11.3": { "CarbonHeaders": { "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", diff --git a/pkgs/by-name/ap/apple-sdk/metadata/disallowed-packages.json b/pkgs/by-name/ap/apple-sdk/metadata/disallowed-packages.json index 4c225b9af1d2..2b31160e0073 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/disallowed-packages.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/disallowed-packages.json @@ -69,15 +69,6 @@ "libsasl*" ] }, - { - "package": "dtrace", - "headers": [ - "dtrace.h" - ], - "libraries": [ - "*dtrace*" - ] - }, { "package": "editline", "headers": [ diff --git a/pkgs/by-name/ap/apple-sdk/metadata/versions.json b/pkgs/by-name/ap/apple-sdk/metadata/versions.json index 3b7f086c5544..b983562017c2 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/versions.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/versions.json @@ -4,6 +4,11 @@ "version": "10.12.2", "hash": "sha256-Jf2WIB9bY/rPwe0AOW3YWJY/6EqVe41yhezdTGOO3M8=" }, + "10.13": { + "url": "http://swcdn.apple.com/content/downloads/33/36/041-90419-A_7JJ4H9ZHO2/xs88ob5wjz6riz7g6764twblnvksusg4ps/CLTools_SDK_macOS1013.pkg", + "version": "10.13.2", + "hash": "sha256-8nd55fiJLfRWABAbMaHXjp6i20RqupmKedwmhb3S0/A=" + }, "11": { "url": "https://swcdn.apple.com/content/downloads/02/62/071-54303-A_EU2CL1YVT7/943i95dpeyi2ghlnj2mgyq3t202t5gf18b/CLTools_macOSNMOS_SDK.pkg", "version": "11.3", diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c520299026ae..5581a3f97c1d 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23743,6 +23743,7 @@ with pkgs; ### DEVELOPMENT / LIBRARIES / DARWIN SDKS apple-sdk_10_12 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.12"; }; + apple-sdk_10_13 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.13"; }; apple-sdk_11 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "11"; }; darwinMinVersionHook = From a447cba849ac70a51e636ea7fb0d3585c6730a6d Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 20 Sep 2024 20:41:00 -0400 Subject: [PATCH 0251/1574] apple-sdk_10_14: init at 10.14.6 --- .../metadata/apple-oss-lockfile.json | 178 ++++++++++++++++++ .../ap/apple-sdk/metadata/versions.json | 5 + pkgs/top-level/all-packages.nix | 1 + 3 files changed, 184 insertions(+) diff --git a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json index ef113d3ca7c4..7b159fa9cd97 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json @@ -355,6 +355,184 @@ "version": "4570.31.3" } }, + "10.14.6": { + "CarbonHeaders": { + "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", + "version": "18.1" + }, + "CommonCrypto": { + "hash": "sha256-hqsLaS7LEPu8t/bNuV4VUUbMteCetf3/o8e2X0iQvOo=", + "version": "60118.250.2" + }, + "IOAudioFamily": { + "hash": "sha256-UG09Dc+up5cJKDHPpCmo11IsBchqZ72hVBPx8y+1klw=", + "version": "206.5" + }, + "IOBDStorageFamily": { + "hash": "sha256-aaS5jWPRX4be8d3Rigq+kXzi9Zwbr8dHcNgcIz0n66o=", + "version": "19" + }, + "IOCDStorageFamily": { + "hash": "sha256-U6v+Gj+IumU8Aha5+uf3yOU0Z4KMuBh7aXnJqiZ/abY=", + "version": "58" + }, + "IODVDStorageFamily": { + "hash": "sha256-JLp4xN0Rdb2VpuXtVTODYNqQthDEZk+g/lvHRwJHQB4=", + "version": "42" + }, + "IOFWDVComponents": { + "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", + "version": "208" + }, + "IOFireWireAVC": { + "hash": "sha256-EXGpObJVC0b9X3xxEXJScDlM6xygmK3MoCbng21XCmg=", + "version": "426" + }, + "IOFireWireFamily": { + "hash": "sha256-a8zEWhwQTzgGKg75RBmDXb1pgJr602IxnPBTFkKEqSM=", + "version": "473" + }, + "IOFireWireSBP2": { + "hash": "sha256-lpYBTL9TzreyxJn4J3vfuXoWMH/4y8FnNKk5YiuDgHI=", + "version": "433" + }, + "IOFireWireSerialBusProtocolTransport": { + "hash": "sha256-4Y+5+5cJtolSrM3AUnnhSBS3RrKXbg9Kh1ynmllOA2E=", + "version": "252.250.2" + }, + "IOGraphics": { + "hash": "sha256-QFT+h0gtc7SUf0HNciknG0aMOQXnsWCR25C04dgK1/A=", + "version": "530.66" + }, + "IOHIDFamily": { + "hash": "sha256-DpYcxGLvk10iz5TG2SO8R+5obEJv+zLK56RzA/pH0KA=", + "version": "1090.270.6" + }, + "IOKitUser": { + "hash": "sha256-QH2m6BCYtO2JDksH0TebrEldjjZdC4U9otVu/uUoyWY=", + "version": "1483.260.4" + }, + "IONetworkingFamily": { + "hash": "sha256-M01+Bhf7CTJMA7StjSRFW6ffq7Qf/IOh7aM+JI3ONe8=", + "version": "129.200.1" + }, + "IOSerialFamily": { + "hash": "sha256-wVS4QTx6MBOS0VrwyCZ3s5Usezwaf8rWzmNnfdDTXTU=", + "version": "93" + }, + "IOStorageFamily": { + "hash": "sha256-X6s/IyApMQ7zo1wO7IpIk1e94tSsmvvT+fZHThMWv5Y=", + "version": "218.260.1" + }, + "IOUSBFamily": { + "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", + "version": "630.4.5" + }, + "Libc": { + "hash": "sha256-mhhs8U/oZku9o2kqzLW4K8Xv9QbnKNBbBr+Q6NqC1vQ=", + "version": "1272.250.1" + }, + "Libinfo": { + "hash": "sha256-DUbyWZI+n3WvftlI7aj60CoEHb9y18H1+FYiYQroVEE=", + "version": "517.200.9" + }, + "Libm": { + "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", + "version": "2026" + }, + "Libnotify": { + "hash": "sha256-q0ns85I9Zwo5bZPN5JqjrJofY8/XLl+mbsRhyF1kx+o=", + "version": "172.200.21" + }, + "Librpcsvc": { + "hash": "sha256-8e8E9TkRTAep3/miyqhF/mSkNdlym12W+AVhXF94+Bg=", + "version": "26" + }, + "Libsystem": { + "hash": "sha256-Lo4S7fsepuYlRtXGcVvNTAlx/soabjvKEUuiO09htNs=", + "version": "1252.250.1" + }, + "OpenDirectory": { + "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", + "version": "146" + }, + "Security": { + "hash": "sha256-uqSRU4Ft7+zMQ59FBS+Mu2JcWdbbuWP9/dFfo+Vkr5s=", + "version": "58286.270.3.0.1" + }, + "architecture": { + "hash": "sha256-WGUNtFSBu9AuefHVEO3uB/JpKEGAgGFX/zRaaW4eYbI=", + "version": "272.230.1" + }, + "configd": { + "hash": "sha256-Pg58INpZfdKXn1EPut2Kzghfjwxaz1Ex+u5KACA2O7g=", + "version": "963.270.3" + }, + "copyfile": { + "hash": "sha256-gbxGQ8Wjt20++Bf+BkZT/R5dpsCnRo8+qUcerv5m7V8=", + "version": "146.250.1" + }, + "dtrace": { + "hash": "sha256-ZbAaH2wmYlgLKtq0bpDoEInZiHMe5Bx84iUQC67ia0E=", + "version": "284.250.4" + }, + "dyld": { + "hash": "sha256-5wtx+4pSAcNEwcE024XwIRorS3ZW/qmvfkY7UGe75ho=", + "version": "655.1.1" + }, + "eap8021x": { + "hash": "sha256-9j+6Hw7w9wdLZxjdRwTACws2obg2/VCgl9ed4+Y4pPg=", + "version": "264.250.6" + }, + "hfs": { + "hash": "sha256-/yf6z0VJkw2pPnVst2qgnSZfO6x9ot/cWT7Aewo3IZ4=", + "version": "407.200.4" + }, + "launchd": { + "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", + "version": "842.1.4" + }, + "libclosure": { + "hash": "sha256-NHK+yc7M/wc6Sbk24LDejNjBrbcWIg9zrYHlnPXC/Yc=", + "version": "73" + }, + "libdispatch": { + "hash": "sha256-b0WqX3qX/qhUi2l63BrNvaVq167SuIgYGPid92MJ32U=", + "version": "1008.270.1" + }, + "libmalloc": { + "hash": "sha256-1ZvO0LGV4AkDSdtwqfPFgCUbpAVzfKS0msa58tL2WLA=", + "version": "166.251.2" + }, + "libplatform": { + "hash": "sha256-xQqCf+/DpHu/JMbmOpy6jl3np0H7/m1NKWZ21YWaerE=", + "version": "177.270.1" + }, + "libpthread": { + "hash": "sha256-+AuYgLTM5RO3+MbxeE86rPh9WbiTiAl2gHZOAaQRkec=", + "version": "330.250.2" + }, + "mDNSResponder": { + "hash": "sha256-SlrC3LIOndY1DVJ26bnuYQwpLhkV1PHAMJeaE3bMDI4=", + "version": "878.270.2" + }, + "objc4": { + "hash": "sha256-rzDiOE//rUnRyCHM/XUQs9IImKGIFN/0D0IZ7SeGp2s=", + "version": "756.2" + }, + "ppp": { + "hash": "sha256-a0zTwevtC+AAyLV/0+rX9VN5BXc2vaZGArz83VZtiWs=", + "version": "847.200.5" + }, + "removefile": { + "hash": "sha256-23+ivRTPKId9Is5NAwYmVgN7TX2+7v9NONs9u7DrGH4=", + "version": "45.200.2" + }, + "xnu": { + "hash": "sha256-ZRgj214Mmvvcji4OdzRjK/7Xtpz7r69SFmzSvtZNhNU=", + "version": "4903.270.47" + } + }, "11.3": { "CarbonHeaders": { "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", diff --git a/pkgs/by-name/ap/apple-sdk/metadata/versions.json b/pkgs/by-name/ap/apple-sdk/metadata/versions.json index b983562017c2..a84862aeaab0 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/versions.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/versions.json @@ -9,6 +9,11 @@ "version": "10.13.2", "hash": "sha256-8nd55fiJLfRWABAbMaHXjp6i20RqupmKedwmhb3S0/A=" }, + "10.14": { + "url": "http://swcdn.apple.com/content/downloads/41/57/061-26573-A_JMOA8GZGDR/lj8yrtu8dgs40fw9k8f5fkoviwkp0og6vs/CLTools_SDK_macOS1014.pkg", + "version": "10.14.6", + "hash": "sha256-NMNkycIl3AVZCw0ZpHNkaeYVS9LAZVSddHw5loL9dhk=" + }, "11": { "url": "https://swcdn.apple.com/content/downloads/02/62/071-54303-A_EU2CL1YVT7/943i95dpeyi2ghlnj2mgyq3t202t5gf18b/CLTools_macOSNMOS_SDK.pkg", "version": "11.3", diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5581a3f97c1d..87b8d6f66d1c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23744,6 +23744,7 @@ with pkgs; apple-sdk_10_12 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.12"; }; apple-sdk_10_13 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.13"; }; + apple-sdk_10_14 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.14"; }; apple-sdk_11 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "11"; }; darwinMinVersionHook = From d10c85b19b251fd6405618ad4e4b45266fa9efc3 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 20 Sep 2024 20:41:00 -0400 Subject: [PATCH 0252/1574] apple-sdk_10_15: init at 10.15.6 --- .../metadata/apple-oss-lockfile.json | 178 ++++++++++++++++++ .../ap/apple-sdk/metadata/versions.json | 5 + pkgs/top-level/all-packages.nix | 1 + 3 files changed, 184 insertions(+) diff --git a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json index 7b159fa9cd97..628dc09b3dec 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json @@ -533,6 +533,184 @@ "version": "4903.270.47" } }, + "10.15.6": { + "CarbonHeaders": { + "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", + "version": "18.1" + }, + "CommonCrypto": { + "hash": "sha256-HKSRtTnJ6dH5j6Y+PRDQUcPyjwR70PEbRQu3hTM4G0A=", + "version": "60165.120.1" + }, + "IOAudioFamily": { + "hash": "sha256-5lcK8nyjayLBw9j4PPVs8TWwOWcpggKkSXefVGl2rfA=", + "version": "300.2" + }, + "IOBDStorageFamily": { + "hash": "sha256-aaS5jWPRX4be8d3Rigq+kXzi9Zwbr8dHcNgcIz0n66o=", + "version": "19" + }, + "IOCDStorageFamily": { + "hash": "sha256-U6v+Gj+IumU8Aha5+uf3yOU0Z4KMuBh7aXnJqiZ/abY=", + "version": "58" + }, + "IODVDStorageFamily": { + "hash": "sha256-JLp4xN0Rdb2VpuXtVTODYNqQthDEZk+g/lvHRwJHQB4=", + "version": "42" + }, + "IOFWDVComponents": { + "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", + "version": "208" + }, + "IOFireWireAVC": { + "hash": "sha256-7H3WcZC/HuS9xsTNDWRqt+1JzUNK4ndvd4u2ru0GGRE=", + "version": "428" + }, + "IOFireWireFamily": { + "hash": "sha256-hLtd3d5qOsYdnGpMaTSipu9bOIYEHz2rKzNAoJai4dI=", + "version": "475" + }, + "IOFireWireSBP2": { + "hash": "sha256-pHY6okHHotfFjdNsLwRjQX7dWGolBelpD7MEDz4lafY=", + "version": "434" + }, + "IOFireWireSerialBusProtocolTransport": { + "hash": "sha256-Jb70fanuJTNV4IVoKMtMA66oVDR0I/h3JSIymhlKTQU=", + "version": "257" + }, + "IOGraphics": { + "hash": "sha256-sKnJ0MOhT+dFfmMD2gqYmySufh0I9vBI/swjqoCbSHc=", + "version": "576.1" + }, + "IOHIDFamily": { + "hash": "sha256-esiEGEiggFMR7rha6+dYaqiwGM+TlZtLBe8LF/PF0D8=", + "version": "1446.140.2" + }, + "IOKitUser": { + "hash": "sha256-rB5zfJwoBPMpqW5PDM6ppWW07Y2AGS3f0UzXdfPGYYE=", + "version": "1726.140.1" + }, + "IONetworkingFamily": { + "hash": "sha256-T+aDA++nubTHdPpfdAEm6077eJuzsQXHUDEbdlthVBQ=", + "version": "139.140.2" + }, + "IOSerialFamily": { + "hash": "sha256-wVS4QTx6MBOS0VrwyCZ3s5Usezwaf8rWzmNnfdDTXTU=", + "version": "93" + }, + "IOStorageFamily": { + "hash": "sha256-vyIN7oru2PN7C4a6RBJomlYs4NaYzmCTBEuWiSXG41M=", + "version": "238.120.1" + }, + "IOUSBFamily": { + "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", + "version": "630.4.5" + }, + "Libc": { + "hash": "sha256-FAifkHs2Kls2ym9/M56o4u2UZfdTKCnqxRbTXOIHyz8=", + "version": "1353.100.2" + }, + "Libinfo": { + "hash": "sha256-syTH8dhWkSPgqRG7p528L7Xx1+ymmqHrCyhUykGhK9s=", + "version": "538" + }, + "Libm": { + "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", + "version": "2026" + }, + "Libnotify": { + "hash": "sha256-7o4GNZde3MkCks2NJdNIXvvtMAOqGEA05M7S8o7j0XQ=", + "version": "241.100.2" + }, + "Librpcsvc": { + "hash": "sha256-8e8E9TkRTAep3/miyqhF/mSkNdlym12W+AVhXF94+Bg=", + "version": "26" + }, + "Libsystem": { + "hash": "sha256-RNkaoaRl6akbrgjagLd+ncZ2EAdjegIdy7Z/MINoTpc=", + "version": "1281.100.1" + }, + "OpenDirectory": { + "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", + "version": "146" + }, + "Security": { + "hash": "sha256-dlNTEVkgTl3po7ty2wjatGTANBwegpZxBX1ByneqKRU=", + "version": "59306.140.5" + }, + "architecture": { + "hash": "sha256-pIX9pEXE1Xjll9qwiWrMRwqw6G4g0isto/ALHsmkUSc=", + "version": "279" + }, + "configd": { + "hash": "sha256-nKFDfyH1gQtFyda6HBq3E7Tp5EI4O5n/9GYQEFhMIdE=", + "version": "1061.141.1" + }, + "copyfile": { + "hash": "sha256-nEfD/KUk7e32tw9buQYrsy/BAdAfgE9IObdV4nCm37M=", + "version": "166.40.1" + }, + "dtrace": { + "hash": "sha256-dgJ7om5efUQyc9tP6cBeSpahORqV5bzEDcxcVu4TaDg=", + "version": "338.100.1" + }, + "dyld": { + "hash": "sha256-YkFazM/cviJMwPVXHXP2irfgHtOueI2RNrMedWvkH0A=", + "version": "750.6" + }, + "eap8021x": { + "hash": "sha256-/FsmD4mk/kwsocK8x8Gsk3yOBW3pZLcGHxnNcogqjhY=", + "version": "292.40.2" + }, + "hfs": { + "hash": "sha256-vNo2Wd0n6tjG+xtA3OrwB/TOXvLxaLehEY/l9ZBS5Sw=", + "version": "522.100.5" + }, + "launchd": { + "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", + "version": "842.1.4" + }, + "libclosure": { + "hash": "sha256-A3QTD6bqUy8ahH/XlMuidYNvT92ufeVpwPsZh4ZzQdk=", + "version": "74" + }, + "libdispatch": { + "hash": "sha256-gd56s0C2dKbZoaGNXt3LBfXaEl5A744djFq3G9uoWws=", + "version": "1173.100.2" + }, + "libmalloc": { + "hash": "sha256-1VhkXY8m6vVQ4aaxICtHVQtXDHNV2CsY9UUst0AioMY=", + "version": "283.100.6" + }, + "libplatform": { + "hash": "sha256-Z4Lj9efT1bt6HMAMQvgMc33QdYzrBvieBjmw4W6H9YI=", + "version": "220.100.1" + }, + "libpthread": { + "hash": "sha256-ZHxqq1qVRXPL0psAX+5bcuA5D/FjJnIcm+ctTkTGBJA=", + "version": "416.100.3" + }, + "mDNSResponder": { + "hash": "sha256-CV3GBeO4Ly8/PbZ7Fq55diRzB00VsB2uTvjGo/tqf10=", + "version": "1096.100.3" + }, + "objc4": { + "hash": "sha256-AJwPTnjJMBbSFDppvKyx92RdfmbmwQOvPnU0E0mU+jU=", + "version": "787.1" + }, + "ppp": { + "hash": "sha256-DNmDigQqDKR1ghcn6GaKeDldp6thH2C6+uZKjC3EfkU=", + "version": "862.140.2" + }, + "removefile": { + "hash": "sha256-bkxiq7OEFtEFPwSBi4OxmpRyKWYgeMhnokFfS7RPUnU=", + "version": "48" + }, + "xnu": { + "hash": "sha256-Y/DTtpnT8JQZO5Ijr+tW0IrIOuECcJ+ZvFLCgwrFt2M=", + "version": "6153.141.1" + } + }, "11.3": { "CarbonHeaders": { "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", diff --git a/pkgs/by-name/ap/apple-sdk/metadata/versions.json b/pkgs/by-name/ap/apple-sdk/metadata/versions.json index a84862aeaab0..2a3565afe774 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/versions.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/versions.json @@ -14,6 +14,11 @@ "version": "10.14.6", "hash": "sha256-NMNkycIl3AVZCw0ZpHNkaeYVS9LAZVSddHw5loL9dhk=" }, + "10.15": { + "url": "https://swcdn.apple.com/content/downloads/50/51/071-29699-A_YC8SX0OHH3/7479xojqghsvgtnt3dxjpnxuz9sjpmbmds/CLTools_macOSLMOS_SDK.pkg", + "version": "10.15.6", + "hash": "sha256-mPJQC+v4yNiOCKLQfhidB2WH2MMclSCP1odvOoGdVPw=" + }, "11": { "url": "https://swcdn.apple.com/content/downloads/02/62/071-54303-A_EU2CL1YVT7/943i95dpeyi2ghlnj2mgyq3t202t5gf18b/CLTools_macOSNMOS_SDK.pkg", "version": "11.3", diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 87b8d6f66d1c..12a2d549a3f8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23745,6 +23745,7 @@ with pkgs; apple-sdk_10_12 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.12"; }; apple-sdk_10_13 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.13"; }; apple-sdk_10_14 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.14"; }; + apple-sdk_10_15 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.15"; }; apple-sdk_11 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "11"; }; darwinMinVersionHook = From 689e8980bc987d54fd441338aeda1649a20a4506 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 20 Sep 2024 20:41:00 -0400 Subject: [PATCH 0253/1574] apple-sdk_12: init at 12.3 --- .../metadata/apple-oss-lockfile.json | 178 ++++++++++++++++++ .../ap/apple-sdk/metadata/versions.json | 5 + pkgs/top-level/all-packages.nix | 1 + 3 files changed, 184 insertions(+) diff --git a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json index 628dc09b3dec..1e4abc9c9379 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json @@ -888,5 +888,183 @@ "hash": "sha256-M1XWippH55VUJu4aosRFX8j9aOm/PONYVjPZOPufD80=", "version": "7195.101.1" } + }, + "12.3": { + "CarbonHeaders": { + "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", + "version": "18.1" + }, + "CommonCrypto": { + "hash": "sha256-HTGBUE6vHjS80CFTiIQ8F17m8Yd2ZRHccvFu2CA2P9U=", + "version": "60191.100.1" + }, + "IOAudioFamily": { + "hash": "sha256-CuBFZeX2JTKIab2xpp+Yvn66bCl4+aKOv9TvzJef20c=", + "version": "340.2" + }, + "IOBDStorageFamily": { + "hash": "sha256-UgLMsQBe1QLzlbScmPmASBN7VH4YBmNOUX2CEDezjmE=", + "version": "22" + }, + "IOCDStorageFamily": { + "hash": "sha256-p/2qM5zjXFDRb/DISpEHxQEdvmuLlRGt/Ygc71Yu2rI=", + "version": "61" + }, + "IODVDStorageFamily": { + "hash": "sha256-1Sa8aZBGNtqJBNHva+YXxET6Wcdm2PgVrTzYT/8qrN4=", + "version": "43" + }, + "IOFWDVComponents": { + "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", + "version": "208" + }, + "IOFireWireAVC": { + "hash": "sha256-ruAomp5Lv7zuPu9vHsNKoPtDvD1AIrRARsPMpcx/fh0=", + "version": "430" + }, + "IOFireWireFamily": { + "hash": "sha256-W0KOF4hkA7kFOnL1ThAeFU/YlhFVqoqk9uzGjcBppX8=", + "version": "487" + }, + "IOFireWireSBP2": { + "hash": "sha256-bItnRQIaGUxMyiU0q+4N8e5+jYiDEOUPmsrKhBFXvok=", + "version": "445" + }, + "IOFireWireSerialBusProtocolTransport": { + "hash": "sha256-P7egeaD9SSa+YyrIRzM44gILKbIL7vezXK3M6q3MBOI=", + "version": "260" + }, + "IOGraphics": { + "hash": "sha256-lzxBrPLlF01+2jFKRJtSnwpf0r05C0H3tM7Q0N1RUPA=", + "version": "594" + }, + "IOHIDFamily": { + "hash": "sha256-EQQHAS8WKUoTxZscixylc2ZMoD4UYBlHRUj2O7Ikgac=", + "version": "1787.100.13" + }, + "IOKitUser": { + "hash": "sha256-Cdfa/YXM0W4O15femcU0G1Xcpbm+iADWIBWIdzoeuTE=", + "version": "1955.100.5" + }, + "IONetworkingFamily": { + "hash": "sha256-odUZJQq8lb3UYk7F8dBi1Hds00M+kwdlyGwZkVkSwTg=", + "version": "160.100.2" + }, + "IOSerialFamily": { + "hash": "sha256-wVS4QTx6MBOS0VrwyCZ3s5Usezwaf8rWzmNnfdDTXTU=", + "version": "93" + }, + "IOStorageFamily": { + "hash": "sha256-2b32qe1z7Z+Od1dVlAGdM142DdF8cBaRC+ElysSuAQ4=", + "version": "290.100.6" + }, + "IOUSBFamily": { + "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", + "version": "630.4.5" + }, + "Libc": { + "hash": "sha256-obalDxsbE+7gm7YwznUbfxL7MCriamQFP3DrXleNwU4=", + "version": "1507.100.9" + }, + "Libinfo": { + "hash": "sha256-OjnnSHEcifcWarVyXiHvYg/9jbCQy5/lzaq6fJRriy0=", + "version": "554" + }, + "Libm": { + "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", + "version": "2026" + }, + "Libnotify": { + "hash": "sha256-JXG0kHEdoIs6krVZ4+KsRVES4AuNjnQi8qF+XKSp5jE=", + "version": "301" + }, + "Librpcsvc": { + "hash": "sha256-8e8E9TkRTAep3/miyqhF/mSkNdlym12W+AVhXF94+Bg=", + "version": "26" + }, + "Libsystem": { + "hash": "sha256-mPPAxo67wWLtemO+PuKg1Ui0zKEfjnYVj/qX1/0kNBs=", + "version": "1311.100.3" + }, + "OpenDirectory": { + "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", + "version": "146" + }, + "Security": { + "hash": "sha256-cIqfXcfQOZonxaKndH80xC5YmmveHw+TxHOxqvc9u8I=", + "version": "60158.100.133" + }, + "architecture": { + "hash": "sha256-PRNUrhzSOrwmxSPkKmV0LV7yEIik65sdkfKdBqcwFhU=", + "version": "280.100.2" + }, + "configd": { + "hash": "sha256-X34mjXdil4HeBLyqY4tyBWdmpjsOFTJDdDE81UQf708=", + "version": "1163.100.19.0.2" + }, + "copyfile": { + "hash": "sha256-3/zI3j/m9b13hebjCsOLry3Mf8ADdWJgrtQOdD0huG0=", + "version": "180.100.3" + }, + "dtrace": { + "hash": "sha256-q8H6slCN4RwJ5TxC5s3og6cIbjALySP5ODfVw6a/a+M=", + "version": "375" + }, + "dyld": { + "hash": "sha256-v1kk/Z3eI2sufNm2rx3FRbA/f9BeKJ3t9i9W7tTksXg=", + "version": "955" + }, + "eap8021x": { + "hash": "sha256-SayP1d2KWoRShykBA/NrQCuRnPoxlTiaLwifoqm0Gkg=", + "version": "315.100.2" + }, + "hfs": { + "hash": "sha256-q1yOIei98oudGAoBMNPRTV5EOYpXFL7iYmlCYsKsG0o=", + "version": "583.100.10" + }, + "launchd": { + "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", + "version": "842.1.4" + }, + "libclosure": { + "hash": "sha256-Ez75a0m+fJas7mGqFeDjjpc7sFDnyirRbtLMTYQDVxw=", + "version": "79.1" + }, + "libdispatch": { + "hash": "sha256-/VbSUtnWyToWOUyAAg/3wImbJ2w5k1tbJkt827x2lIE=", + "version": "1325.100.36" + }, + "libmalloc": { + "hash": "sha256-tyYce5nk0N923MbzoGzkGqunoKwArbTiZl8PCppYpso=", + "version": "374.100.5" + }, + "libplatform": { + "hash": "sha256-JUD2NdS310OhZ0F8gnOvoD8AgEtWRtPahKDw5iE2QJU=", + "version": "273.100.5" + }, + "libpthread": { + "hash": "sha256-al8QumtH7/D04oJ4LUSYW+6OdX0Ko3S3rwYU53n9/54=", + "version": "486.100.11" + }, + "mDNSResponder": { + "hash": "sha256-hsV0VYTPoO5YpaxrUXpXFy97LxlERzrQT0FRfCMOwic=", + "version": "1557.101.2" + }, + "objc4": { + "hash": "sha256-MKXnfZL46VtmAQMolqd7ATF9fYjCNstapGQfcH4uVwo=", + "version": "841.13" + }, + "ppp": { + "hash": "sha256-YyCE19T3rcM1G5jdXuYXuBXblJgR/nelvjpq+9maMhw=", + "version": "884" + }, + "removefile": { + "hash": "sha256-xF1VtTUhoiGsFQsvuFnFYemwiCdsKeriFJv51vRLqmw=", + "version": "60" + }, + "xnu": { + "hash": "sha256-bfFmDfRBSvoWMdQYVstsJRbcq+15lDjVFqk+0XYWpy8=", + "version": "8020.101.4" + } } } diff --git a/pkgs/by-name/ap/apple-sdk/metadata/versions.json b/pkgs/by-name/ap/apple-sdk/metadata/versions.json index 2a3565afe774..24e4f93a8908 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/versions.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/versions.json @@ -23,5 +23,10 @@ "url": "https://swcdn.apple.com/content/downloads/02/62/071-54303-A_EU2CL1YVT7/943i95dpeyi2ghlnj2mgyq3t202t5gf18b/CLTools_macOSNMOS_SDK.pkg", "version": "11.3", "hash": "sha256-/go8utcx3jprf6c8V/DUbXwsmNYSFchOAai1OaJs3Bg=" + }, + "12": { + "url": "https://swcdn.apple.com/content/downloads/24/42/002-83793-A_74JRE8GVAT/rlnkct919wgc5c0pjq986z5bb9h62uvni2/CLTools_macOSNMOS_SDK.pkg", + "version": "12.3", + "hash": "sha256-qG21ssNUmkqxPLTXALGP2N/RBHu8NMlI1dWvGlV+Wm8=" } } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 12a2d549a3f8..39a83bc47eeb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23747,6 +23747,7 @@ with pkgs; apple-sdk_10_14 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.14"; }; apple-sdk_10_15 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.15"; }; apple-sdk_11 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "11"; }; + apple-sdk_12 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "12"; }; darwinMinVersionHook = deploymentTarget: From 4283b8f00a2d4cb6cd36a77017f78c8bb8b2e056 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 20 Sep 2024 20:41:00 -0400 Subject: [PATCH 0254/1574] apple-sdk_13: init at 13.3 --- .../metadata/apple-oss-lockfile.json | 178 ++++++++++++++++++ .../ap/apple-sdk/metadata/versions.json | 5 + pkgs/top-level/all-packages.nix | 1 + 3 files changed, 184 insertions(+) diff --git a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json index 1e4abc9c9379..b25ff2b05b9d 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json @@ -1066,5 +1066,183 @@ "hash": "sha256-bfFmDfRBSvoWMdQYVstsJRbcq+15lDjVFqk+0XYWpy8=", "version": "8020.101.4" } + }, + "13.3": { + "CarbonHeaders": { + "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", + "version": "18.1" + }, + "CommonCrypto": { + "hash": "sha256-tftAQbs5xIOc5VZLVAKXAUvle9WO/i33/pQ3D64l/yI=", + "version": "600016.100.4" + }, + "IOAudioFamily": { + "hash": "sha256-CuBFZeX2JTKIab2xpp+Yvn66bCl4+aKOv9TvzJef20c=", + "version": "440.2" + }, + "IOBDStorageFamily": { + "hash": "sha256-UgLMsQBe1QLzlbScmPmASBN7VH4YBmNOUX2CEDezjmE=", + "version": "22" + }, + "IOCDStorageFamily": { + "hash": "sha256-p/2qM5zjXFDRb/DISpEHxQEdvmuLlRGt/Ygc71Yu2rI=", + "version": "61" + }, + "IODVDStorageFamily": { + "hash": "sha256-1Sa8aZBGNtqJBNHva+YXxET6Wcdm2PgVrTzYT/8qrN4=", + "version": "43" + }, + "IOFWDVComponents": { + "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", + "version": "208" + }, + "IOFireWireAVC": { + "hash": "sha256-IUytBKhhCgg0vtI+7q8d5kxpOUgO3tQD7TMy++jrorc=", + "version": "431" + }, + "IOFireWireFamily": { + "hash": "sha256-W0KOF4hkA7kFOnL1ThAeFU/YlhFVqoqk9uzGjcBppX8=", + "version": "487" + }, + "IOFireWireSBP2": { + "hash": "sha256-bItnRQIaGUxMyiU0q+4N8e5+jYiDEOUPmsrKhBFXvok=", + "version": "445" + }, + "IOFireWireSerialBusProtocolTransport": { + "hash": "sha256-P7egeaD9SSa+YyrIRzM44gILKbIL7vezXK3M6q3MBOI=", + "version": "260" + }, + "IOGraphics": { + "hash": "sha256-KubCz8DNwf1WuF7LrtARM2VJugFDP0wfHoUhnIz/faQ=", + "version": "596.1" + }, + "IOHIDFamily": { + "hash": "sha256-7UFMBdF5k9aVFVuoL2riozzKmn8uOt87Aitt8j6XkN8=", + "version": "1915.100.21" + }, + "IOKitUser": { + "hash": "sha256-hgFRHPAuoqSf6aRUBUyfU2y2+dBUA34DKwLHLwhPNms=", + "version": "2022.100.19" + }, + "IONetworkingFamily": { + "hash": "sha256-SwZvXLSB9cMHssZU4dCogGVoV64qYdGN1CGYV3FZ6tk=", + "version": "170" + }, + "IOSerialFamily": { + "hash": "sha256-wVS4QTx6MBOS0VrwyCZ3s5Usezwaf8rWzmNnfdDTXTU=", + "version": "93" + }, + "IOStorageFamily": { + "hash": "sha256-g4oCrxM5VtHm8h1M+zM81Ar1LsaaiJZLej5fT8EHPG4=", + "version": "302.100.1" + }, + "IOUSBFamily": { + "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", + "version": "630.4.5" + }, + "Libc": { + "hash": "sha256-dqbdWtBuaRq3IHnSUPH2aj8h/X4zCwUNSOeSdwfKvN8=", + "version": "1534.100.14" + }, + "Libinfo": { + "hash": "sha256-iUyndeUXx7FFZ/jgJ6jRwda3IChOaMs4dZW/ISuAJ1E=", + "version": "564.101.1" + }, + "Libm": { + "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", + "version": "2026" + }, + "Libnotify": { + "hash": "sha256-7AwTfogvCUMdoabxf413ENWXtFTOM6AUldccoPQ89sU=", + "version": "312" + }, + "Librpcsvc": { + "hash": "sha256-UWYdCQ9QsBqwM01bWr+igINAHSdSluB/FrOclC5AjTI=", + "version": "31" + }, + "Libsystem": { + "hash": "sha256-IIksf0yCg3GdME3HofYzD1MRC+ofsPhHcxddmNd7V2M=", + "version": "1319.100.3" + }, + "OpenDirectory": { + "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", + "version": "146" + }, + "Security": { + "hash": "sha256-lPq58QIx+H9DouTXAUJSMf1X7dj9V6xu3c8VWr2R1IY=", + "version": "60420.101.4" + }, + "architecture": { + "hash": "sha256-PRNUrhzSOrwmxSPkKmV0LV7yEIik65sdkfKdBqcwFhU=", + "version": "282" + }, + "configd": { + "hash": "sha256-M/fRAnUw2wObhCQp9a6zQbCGhACCQHpju4/1+KGlkjg=", + "version": "1241.100.11" + }, + "copyfile": { + "hash": "sha256-te3WcQudrXPqnTM1s/AtsTdu7VIXf5dIASy+IGnIxv0=", + "version": "191.100.3" + }, + "dtrace": { + "hash": "sha256-7jAG66hG9qmqpRbECazMD1Pyi53CWTOGNnZca1NpcxE=", + "version": "397" + }, + "dyld": { + "hash": "sha256-OkDOTV86EB44LxsqwTD4ZncMcr7iqSHXxw+6U+AP7oU=", + "version": "1066.8" + }, + "eap8021x": { + "hash": "sha256-FMG+IGVPpcwrRe2/OKpFycrY/EFPZkge2vX61NgorGg=", + "version": "336.100.6" + }, + "hfs": { + "hash": "sha256-Au5VDrYRBerI1I6rjC0lVDwB5IBwGARrAdcTI4M+Fx0=", + "version": "627.100.6" + }, + "launchd": { + "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", + "version": "842.1.4" + }, + "libclosure": { + "hash": "sha256-V1tpp/XG6baETunJt029rI6wp6moYSnFprt+bNGaQ40=", + "version": "87" + }, + "libdispatch": { + "hash": "sha256-d1VObN11bNdtNJlZQqp2y8yP4lit5Wbj+4/aN3StsPc=", + "version": "1415.100.11" + }, + "libmalloc": { + "hash": "sha256-jcR1AO/chcZzfAvELkC+U3q9tzxqPdwgLcHrnkQmN4M=", + "version": "425.100.7" + }, + "libplatform": { + "hash": "sha256-+BB23YGGT0hA326Dh+3k2UvAqBdEJ84A6yGA/ccrihg=", + "version": "292.100.1" + }, + "libpthread": { + "hash": "sha256-/l17vMWhfAs0YhIHi+l84vGVxpGFOzocvxxii7B+WUk=", + "version": "514.100.2" + }, + "mDNSResponder": { + "hash": "sha256-M4yfQsdlKwes5M2QOEEfjv7ldSVZw7oGXLISaDcObjs=", + "version": "1807.101.2" + }, + "objc4": { + "hash": "sha256-qOV9YfP59WP8Izp+IvM/aiYTW8fCoq21uxU64OcIHk8=", + "version": "876" + }, + "ppp": { + "hash": "sha256-Sg5c5qOSk5TaS4pgXZ+eAy/iuGBa1oFML0dkj463DcE=", + "version": "1010" + }, + "removefile": { + "hash": "sha256-oQorWHlJ0ctekCTUsLXHko8k1aCKBJ00A2FHkRd4B3E=", + "version": "68" + }, + "xnu": { + "hash": "sha256-w9/lDZ/E54YzYQkOWptNpX5GomgI/fvZLAy7NY3O+IQ=", + "version": "8796.101.5" + } } } diff --git a/pkgs/by-name/ap/apple-sdk/metadata/versions.json b/pkgs/by-name/ap/apple-sdk/metadata/versions.json index 24e4f93a8908..ec81bc0f1024 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/versions.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/versions.json @@ -28,5 +28,10 @@ "url": "https://swcdn.apple.com/content/downloads/24/42/002-83793-A_74JRE8GVAT/rlnkct919wgc5c0pjq986z5bb9h62uvni2/CLTools_macOSNMOS_SDK.pkg", "version": "12.3", "hash": "sha256-qG21ssNUmkqxPLTXALGP2N/RBHu8NMlI1dWvGlV+Wm8=" + }, + "13": { + "url": "https://swcdn.apple.com/content/downloads/15/62/032-84673-A_7A1TG1RF8Z/xpc8q44ggn2pkn82iwr0fi1zeb9cxi8ath/CLTools_macOSNMOS_SDK.pkg", + "version": "13.3", + "hash": "sha256-zZ4pbgoXunLGwdYDemxOfyH4CE5WGfMy2s5jN+0q4B4=" } } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 39a83bc47eeb..5075d18eb693 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23748,6 +23748,7 @@ with pkgs; apple-sdk_10_15 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "10.15"; }; apple-sdk_11 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "11"; }; apple-sdk_12 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "12"; }; + apple-sdk_13 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "13"; }; darwinMinVersionHook = deploymentTarget: From 8fae28553af6e18d7e15fff32f3981e6affa5bff Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 20 Sep 2024 20:41:00 -0400 Subject: [PATCH 0255/1574] apple-sdk_14: init at 14.4 --- .../metadata/apple-oss-lockfile.json | 178 ++++++++++++++++++ .../ap/apple-sdk/metadata/versions.json | 5 + pkgs/top-level/all-packages.nix | 1 + 3 files changed, 184 insertions(+) diff --git a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json index b25ff2b05b9d..62cf862049dc 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/apple-oss-lockfile.json @@ -1244,5 +1244,183 @@ "hash": "sha256-w9/lDZ/E54YzYQkOWptNpX5GomgI/fvZLAy7NY3O+IQ=", "version": "8796.101.5" } + }, + "14.4": { + "CarbonHeaders": { + "hash": "sha256-nIPXnLr21yVnpBhx9K5q3l/nPARA6JL/dED08MeyhP8=", + "version": "18.1" + }, + "CommonCrypto": { + "hash": "sha256-/VoOR9wJuKnmGE1CWGGXxX8SpmALHnEooNTa3QM+ITc=", + "version": "600028.100.1" + }, + "IOAudioFamily": { + "hash": "sha256-VSk3jvsITJugtL67Qt0m4qJ879i7Fj6B/NGBFVCwpiU=", + "version": "540.3" + }, + "IOBDStorageFamily": { + "hash": "sha256-UgLMsQBe1QLzlbScmPmASBN7VH4YBmNOUX2CEDezjmE=", + "version": "22" + }, + "IOCDStorageFamily": { + "hash": "sha256-p/2qM5zjXFDRb/DISpEHxQEdvmuLlRGt/Ygc71Yu2rI=", + "version": "61" + }, + "IODVDStorageFamily": { + "hash": "sha256-1Sa8aZBGNtqJBNHva+YXxET6Wcdm2PgVrTzYT/8qrN4=", + "version": "45" + }, + "IOFWDVComponents": { + "hash": "sha256-WkfkWnzRupEh20U7vjsTta89clhus6GTkOpXQWXw/bM=", + "version": "208" + }, + "IOFireWireAVC": { + "hash": "sha256-IUytBKhhCgg0vtI+7q8d5kxpOUgO3tQD7TMy++jrorc=", + "version": "431" + }, + "IOFireWireFamily": { + "hash": "sha256-W0KOF4hkA7kFOnL1ThAeFU/YlhFVqoqk9uzGjcBppX8=", + "version": "487" + }, + "IOFireWireSBP2": { + "hash": "sha256-bItnRQIaGUxMyiU0q+4N8e5+jYiDEOUPmsrKhBFXvok=", + "version": "445" + }, + "IOFireWireSerialBusProtocolTransport": { + "hash": "sha256-P7egeaD9SSa+YyrIRzM44gILKbIL7vezXK3M6q3MBOI=", + "version": "260" + }, + "IOGraphics": { + "hash": "sha256-Ag37fd3tZJLXLVq1yzHOCWGOYYfwwTkC8hnvNaTEaWg=", + "version": "598" + }, + "IOHIDFamily": { + "hash": "sha256-fmYTJsquAOBwzsgRmqPyjSJJi1hGcfnMmqLIcTe8W1s=", + "version": "2031.100.16" + }, + "IOKitUser": { + "hash": "sha256-1bqRiLvyr2GQfbWwhXHXXIOtIka9YDw5GbKV6bd2k4k=", + "version": "100076.101.1" + }, + "IONetworkingFamily": { + "hash": "sha256-J3cLeWKrQ8ypIaqgwRH9eU5JbjEDBVoezj3a2Lvwu5k=", + "version": "177" + }, + "IOSerialFamily": { + "hash": "sha256-wVS4QTx6MBOS0VrwyCZ3s5Usezwaf8rWzmNnfdDTXTU=", + "version": "93" + }, + "IOStorageFamily": { + "hash": "sha256-cllpJX11c3CX8zEYdOT2TC63sx7NUAHh33yRHhrG2Ro=", + "version": "315" + }, + "IOUSBFamily": { + "hash": "sha256-Z0E3TfKP49toYo1Fo9kElRap8CZ+mVDHy5RIexgJTpA=", + "version": "630.4.5" + }, + "Libc": { + "hash": "sha256-fxBM4KbPwQNVEJl7PCKP+1nUk9Oce/O2+0lVBxyngew=", + "version": "1592.100.35" + }, + "Libinfo": { + "hash": "sha256-zZr6Mmou8Q+G6/wS+k0k7R+XirB94TNCUGS5dhi96ZE=", + "version": "583.0.1" + }, + "Libm": { + "hash": "sha256-p4BndAag9d0XSMYWQ+c4myGv5qXbKx5E1VghudSbpTk=", + "version": "2026" + }, + "Libnotify": { + "hash": "sha256-7X+6S3C7ZOTXJUeDXOOg5EmoZyLZvtE06x3Is0TGgSU=", + "version": "317.100.2" + }, + "Librpcsvc": { + "hash": "sha256-UWYdCQ9QsBqwM01bWr+igINAHSdSluB/FrOclC5AjTI=", + "version": "31" + }, + "Libsystem": { + "hash": "sha256-HsItciWrwyXujQ2hwqzv0JKOkkuynXYIqejLAEPJbMc=", + "version": "1345.100.2" + }, + "OpenDirectory": { + "hash": "sha256-6fSl8PasCZSBfe0ftaePcBuSEO3syb6kK+mfDI6iR7A=", + "version": "146" + }, + "Security": { + "hash": "sha256-NgTGbaw5JkpboDQpt1fSgUr9NYGS+bIOrEMQX7mLAME=", + "version": "61123.100.169" + }, + "architecture": { + "hash": "sha256-PRNUrhzSOrwmxSPkKmV0LV7yEIik65sdkfKdBqcwFhU=", + "version": "282" + }, + "configd": { + "hash": "sha256-+3xesYxqfsNjWCW3T87OA7+Z1hBqmGEh/I8kP8Ajbso=", + "version": "1300.100.9" + }, + "copyfile": { + "hash": "sha256-rSCTgzdHr7QmnPk9rJ9P4fOAolnEQv8PHfgAY+qA0s4=", + "version": "196.100.4" + }, + "dtrace": { + "hash": "sha256-04Q35rCKnM5Csv5poFJKpK0VplWq4hvy251/Cb2Kl80=", + "version": "401.100.3" + }, + "dyld": { + "hash": "sha256-6P/Da6xP19vmaCROoYv9pl7DaW3/U+qZBJT8PD33bn0=", + "version": "1160.6" + }, + "eap8021x": { + "hash": "sha256-Ky6KSlJhyX1NRufGhVBcp+ZFmqYrAxwC/5QvJhC2PhU=", + "version": "354.100.3" + }, + "hfs": { + "hash": "sha256-+YUVOttZU7C8I14CC6t3ZH2KxAjjTA2nB0y5bPgLxZM=", + "version": "650.0.2" + }, + "launchd": { + "hash": "sha256-8mW9bnuHmRXCx9py8Wy28C5b2QPICW0rlAps5njYa00=", + "version": "842.1.4" + }, + "libclosure": { + "hash": "sha256-M/jnIHzKYvdFCO0tJ1JXiD/UcZtJhLIoulaCQQUbn30=", + "version": "90" + }, + "libdispatch": { + "hash": "sha256-igqIA5DMVHjG30WMHZZpYY7LRM9hZyMWItD+UxeTehY=", + "version": "1477.100.9" + }, + "libmalloc": { + "hash": "sha256-Sh4/z7lGWRMldOPURkP5vLOAb5Ou6AUsVJEWz9wk9hI=", + "version": "521.100.59" + }, + "libplatform": { + "hash": "sha256-gojt3sWOr7XO2yYI/B1CmNLTPFieSfoNtlOgQahOCok=", + "version": "316.100.10" + }, + "libpthread": { + "hash": "sha256-phjfN8+IU8ibPsflR6LktnSi3giy89ghI+cFyrhiQNo=", + "version": "519.101.1" + }, + "mDNSResponder": { + "hash": "sha256-0ECbWeMnIRTsi03BeBEe5boyR/84JJPbxzPQze8hHSA=", + "version": "2200.100.94.0.2" + }, + "objc4": { + "hash": "sha256-eUVSpbyTEOMEdHoxSv6lZIZwB+cW/YWIaTZTcHgGOjo=", + "version": "912.3" + }, + "ppp": { + "hash": "sha256-8+QUA79sHf85yvGSPE9qCmGsrZDT3NZnbgZVroJw/Hg=", + "version": "1016" + }, + "removefile": { + "hash": "sha256-L6I0u8S3h3uV1veKA5HvkSebbBCd78ymlf//KWbebZo=", + "version": "70.100.4" + }, + "xnu": { + "hash": "sha256-j5Ep1RX5DTJqTGszrF4d/JtzUqZ6nA6XoExqcIQ0RVQ=", + "version": "10063.101.15" + } } } diff --git a/pkgs/by-name/ap/apple-sdk/metadata/versions.json b/pkgs/by-name/ap/apple-sdk/metadata/versions.json index ec81bc0f1024..39d0f1cf16a2 100644 --- a/pkgs/by-name/ap/apple-sdk/metadata/versions.json +++ b/pkgs/by-name/ap/apple-sdk/metadata/versions.json @@ -33,5 +33,10 @@ "url": "https://swcdn.apple.com/content/downloads/15/62/032-84673-A_7A1TG1RF8Z/xpc8q44ggn2pkn82iwr0fi1zeb9cxi8ath/CLTools_macOSNMOS_SDK.pkg", "version": "13.3", "hash": "sha256-zZ4pbgoXunLGwdYDemxOfyH4CE5WGfMy2s5jN+0q4B4=" + }, + "14": { + "url": "https://swcdn.apple.com/content/downloads/14/48/052-59890-A_I0F5YGAY0Y/p9n40hio7892gou31o1v031ng6fnm9sb3c/CLTools_macOSNMOS_SDK.pkg", + "version": "14.4", + "hash": "sha256-QozDiwY0Czc0g45vPD7G4v4Ra+3DujCJbSads3fJjjM=" } } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5075d18eb693..01461c7dcbab 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23749,6 +23749,7 @@ with pkgs; apple-sdk_11 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "11"; }; apple-sdk_12 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "12"; }; apple-sdk_13 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "13"; }; + apple-sdk_14 = callPackage ../by-name/ap/apple-sdk/package.nix { darwinSdkMajorVersion = "14"; }; darwinMinVersionHook = deploymentTarget: From d1c25395231689272144d9903d18a42f7ed6564f Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 29 Sep 2024 18:25:05 -0400 Subject: [PATCH 0256/1574] darwin: add mkStub for deprecating frameworks --- pkgs/os-specific/darwin/apple-sdk/mk-stub.nix | 14 ++++++++++++++ pkgs/top-level/darwin-packages.nix | 2 ++ 2 files changed, 16 insertions(+) create mode 100644 pkgs/os-specific/darwin/apple-sdk/mk-stub.nix diff --git a/pkgs/os-specific/darwin/apple-sdk/mk-stub.nix b/pkgs/os-specific/darwin/apple-sdk/mk-stub.nix new file mode 100644 index 000000000000..0a0b258998e3 --- /dev/null +++ b/pkgs/os-specific/darwin/apple-sdk/mk-stub.nix @@ -0,0 +1,14 @@ +{ stdenvNoCC }: + +version: pname: +stdenvNoCC.mkDerivation { + inherit pname version; + + buildCommand = '' + mkdir -p "$out" + echo "Individual frameworks have been deprecated. See the stdenv documentation for how to use `apple-sdk`" \ + > "$out/README" + ''; + + passthru.isDarwinCompatStub = true; +} diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index c47cc3e565e7..b5fb2e0566b8 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -32,6 +32,8 @@ let pkg ) (old.extraBuildInputs or [ ]); }); + + mkStub = pkgs.callPackage ../os-specific/darwin/apple-sdk/mk-stub.nix { }; in makeScopeWithSplicing' { From 17aeace4d9a6632fcf0092ff95d7fcb9ab1b1507 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 21 Sep 2024 10:06:58 -0400 Subject: [PATCH 0257/1574] darwin: prepare for adding stub packages --- pkgs/top-level/darwin-packages.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index b5fb2e0566b8..97a3036062e9 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -93,9 +93,12 @@ makeScopeWithSplicing' { else appleSourcePackages ) Security; }; + + stubs = lib.genAttrs [ + ] (mkStub apple_sdk.version); in -impure-cmds // appleSourcePackages // chooseLibs // { +impure-cmds // appleSourcePackages // chooseLibs // stubs // { inherit apple_sdk apple_sdk_10_12 apple_sdk_11_0 apple_sdk_12_3; From fcd9dc8ac61c2c11be5b9b0b9fa730b9827a14af Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 25 Sep 2024 22:19:41 -0400 Subject: [PATCH 0258/1574] darwin.apple_sdk_11_0: convert frameworks and libs to stubs --- .../darwin/apple-sdk-11.0/apple_sdk.nix | 268 ----------- .../darwin/apple-sdk-11.0/cf-setup-hook.sh | 6 - .../darwin/apple-sdk-11.0/default.nix | 437 ++++++++++++------ .../darwin/apple-sdk-11.0/frameworks.nix | 196 -------- .../darwin/apple-sdk-11.0/libSystem.nix | 88 ---- .../darwin/apple-sdk-11.0/libcharset.nix | 16 - .../darwin/apple-sdk-11.0/libcompression.nix | 20 - .../darwin/apple-sdk-11.0/libnetwork.nix | 20 - .../darwin/apple-sdk-11.0/libobjc.nix | 24 - .../darwin/apple-sdk-11.0/libpm.nix | 23 - .../darwin/apple-sdk-11.0/libunwind.nix | 24 - .../apple-sdk-11.0/private-frameworks.nix | 32 -- pkgs/top-level/darwin-packages.nix | 10 +- 13 files changed, 295 insertions(+), 869 deletions(-) delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/cf-setup-hook.sh delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/frameworks.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/libSystem.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/libcharset.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/libcompression.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/libnetwork.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/libobjc.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/libpm.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/libunwind.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-11.0/private-frameworks.nix diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix deleted file mode 100644 index fdc3bd45e55e..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/apple_sdk.nix +++ /dev/null @@ -1,268 +0,0 @@ -{ lib, stdenvNoCC, buildPackages, fetchurl, xar, cpio, pkgs, python3, pbzx, MacOSX-SDK }: - -# TODO: reorganize to make this just frameworks, and move libs to default.nix - -let - stdenv = stdenvNoCC; - - standardFrameworkPath = name: private: - "/System/Library/${lib.optionalString private "Private"}Frameworks/${name}.framework"; - - mkDepsRewrites = deps: - let - mergeRewrites = x: y: { - prefix = lib.mergeAttrs (x.prefix or {}) (y.prefix or {}); - const = lib.mergeAttrs (x.const or {}) (y.const or {}); - }; - - rewriteArgs = { prefix ? {}, const ? {} }: lib.concatLists ( - (lib.mapAttrsToList (from: to: [ "-p" "${from}:${to}" ]) prefix) ++ - (lib.mapAttrsToList (from: to: [ "-c" "${from}:${to}" ]) const) - ); - - rewrites = depList: lib.fold mergeRewrites {} - (map (dep: dep.tbdRewrites) - (lib.filter (dep: dep ? tbdRewrites) depList)); - in - lib.escapeShellArgs (rewriteArgs (rewrites (builtins.attrValues deps))); - - mkFramework = { name, deps, private ? false }: - let self = stdenv.mkDerivation { - pname = "apple-${lib.optionalString private "private-"}framework-${name}"; - version = MacOSX-SDK.version; - - dontUnpack = true; - - # because we copy files from the system - preferLocalBuild = true; - - disallowedRequisites = [ MacOSX-SDK ]; - - nativeBuildInputs = [ buildPackages.darwin.rewrite-tbd ]; - - installPhase = '' - mkdir -p $out/Library/Frameworks - - cp -r ${MacOSX-SDK}${standardFrameworkPath name private} $out/Library/Frameworks - - if [[ -d ${MacOSX-SDK}/usr/lib/swift/${name}.swiftmodule ]]; then - mkdir -p $out/lib/swift - cp -r -t $out/lib/swift \ - ${MacOSX-SDK}/usr/lib/swift/${name}.swiftmodule \ - ${MacOSX-SDK}/usr/lib/swift/libswift${name}.tbd - fi - - # Fix and check tbd re-export references - chmod u+w -R $out - find $out -name '*.tbd' -type f | while read tbd; do - echo "Fixing re-exports in $tbd" - rewrite-tbd \ - -p ${standardFrameworkPath name private}/:$out/Library/Frameworks/${name}.framework/ \ - -p /usr/lib/swift/:$out/lib/swift/ \ - ${mkDepsRewrites deps} \ - -r ${builtins.storeDir} \ - "$tbd" - done - ''; - - propagatedBuildInputs = builtins.attrValues deps; - - passthru = { - tbdRewrites = { - prefix."${standardFrameworkPath name private}/" = "${self}/Library/Frameworks/${name}.framework/"; - }; - }; - - meta = with lib; { - description = "Apple SDK framework ${name}"; - maintainers = with maintainers; [ copumpkin ]; - platforms = platforms.darwin; - }; - }; - in self; - - framework = name: deps: mkFramework { inherit name deps; private = false; }; - privateFramework = name: deps: mkFramework { inherit name deps; private = true; }; -in rec { - libs = { - xpc = stdenv.mkDerivation { - name = "apple-lib-xpc"; - dontUnpack = true; - - installPhase = '' - mkdir -p $out/include - pushd $out/include >/dev/null - cp -r "${MacOSX-SDK}/usr/include/xpc" $out/include/xpc - cp "${MacOSX-SDK}/usr/include/launch.h" $out/include/launch.h - popd >/dev/null - ''; - }; - - Xplugin = stdenv.mkDerivation { - name = "apple-lib-Xplugin"; - dontUnpack = true; - - propagatedBuildInputs = with frameworks; [ - OpenGL ApplicationServices Carbon IOKit CoreGraphics CoreServices CoreText - ]; - - installPhase = '' - mkdir -p $out/include $out/lib - ln -s "${MacOSX-SDK}/include/Xplugin.h" $out/include/Xplugin.h - cp ${MacOSX-SDK}/usr/lib/libXplugin.1.tbd $out/lib - ln -s libXplugin.1.tbd $out/lib/libXplugin.tbd - ''; - }; - - utmp = stdenv.mkDerivation { - name = "apple-lib-utmp"; - dontUnpack = true; - - installPhase = '' - mkdir -p $out/include - pushd $out/include >/dev/null - ln -s "${MacOSX-SDK}/include/utmp.h" - ln -s "${MacOSX-SDK}/include/utmpx.h" - popd >/dev/null - ''; - }; - - sandbox = stdenv.mkDerivation { - name = "apple-lib-sandbox"; - - dontUnpack = true; - dontBuild = true; - - installPhase = '' - mkdir -p $out/include $out/lib - ln -s "${MacOSX-SDK}/usr/include/sandbox.h" $out/include/sandbox.h - cp "${MacOSX-SDK}/usr/lib/libsandbox.1.tbd" $out/lib - ln -s libsandbox.1.tbd $out/lib/libsandbox.tbd - ''; - }; - - libDER = stdenv.mkDerivation { - name = "apple-lib-libDER"; - dontUnpack = true; - installPhase = '' - mkdir -p $out/include - cp -r ${MacOSX-SDK}/usr/include/libDER $out/include - ''; - }; - - simd = stdenv.mkDerivation { - name = "apple-lib-simd"; - dontUnpack = true; - installPhase = '' - mkdir -p $out/include - cp -r ${MacOSX-SDK}/usr/include/simd $out/include - ''; - }; - }; - - frameworks = let - # Dependency map created by gen-frameworks.py. - generatedDeps = import ./frameworks.nix { - inherit frameworks libs; - }; - - # Additional dependencies that are not picked up by gen-frameworks.py. - # Some of these are simply private frameworks the generator does not see. - extraDeps = with libs; with frameworks; let - inherit (pkgs.darwin.apple_sdk_11_0) libnetwork; - libobjc = pkgs.darwin.apple_sdk_11_0.objc4; - in { - # Below this comment are entries migrated from before the generator was - # added. If, for a given framework, you are able to reverify the extra - # deps are really necessary on top of the generator deps, move it above - # this comment (and maybe document your findings). - AVFoundation = { inherit ApplicationServices AVFCapture AVFCore; }; - Accelerate = { inherit CoreWLAN IOBluetooth; }; - AddressBook = { inherit AddressBookCore ContactsPersistence libobjc; }; - AppKit = { inherit AudioToolbox AudioUnit UIFoundation; }; - AudioToolbox = { inherit AudioToolboxCore; }; - AudioUnit = { inherit Carbon CoreAudio; }; - Carbon = { inherit IOKit QuartzCore libobjc; }; - CoreAudio = { inherit IOKit; }; - CoreFoundation = { inherit libobjc; }; - CoreGraphics = { inherit SystemConfiguration; }; - CoreMIDIServer = { inherit CoreMIDI; }; - CoreMedia = { inherit ApplicationServices AudioToolbox AudioUnit; }; - CoreServices = { inherit CoreAudio NetFS ServiceManagement; }; - CoreWLAN = { inherit SecurityFoundation; }; - DiscRecording = { inherit IOKit libobjc; }; - Foundation = { inherit SystemConfiguration libobjc; }; - GameKit = { inherit GameCenterFoundation GameCenterUI GameCenterUICore ReplayKit; }; - ICADevices = { inherit Carbon libobjc; }; - IOBluetooth = { inherit CoreBluetooth; }; - JavaScriptCore = { inherit libobjc; }; - Kernel = { inherit IOKit; }; - LinkPresentation = { inherit URLFormatting; }; - MediaToolbox = { inherit AudioUnit; }; - MetricKit = { inherit SignpostMetrics; }; - Network = { inherit libnetwork; }; - PCSC = { inherit CoreData; }; - PassKit = { inherit PassKitCore; }; - QTKit = { inherit CoreMedia CoreMediaIO MediaToolbox VideoToolbox; }; - Quartz = { inherit QTKit; }; - QuartzCore = { inherit ApplicationServices CoreImage CoreVideo Metal OpenCL libobjc; }; - Security = { inherit IOKit libDER; }; - TWAIN = { inherit Carbon; }; - VideoDecodeAcceleration = { inherit CoreVideo; }; - WebKit = { inherit ApplicationServices Carbon libobjc; }; - }; - - # Overrides for framework derivations. - overrides = super: { - CoreFoundation = lib.overrideDerivation super.CoreFoundation (drv: { - setupHook = ./cf-setup-hook.sh; - }); - - # This framework doesn't exist in newer SDKs (somewhere around 10.13), but - # there are references to it in nixpkgs. - QuickTime = throw "QuickTime framework not available"; - - # Seems to be appropriate given https://developer.apple.com/forums/thread/666686 - JavaVM = super.JavaNativeFoundation; - - CoreVideo = lib.overrideDerivation super.CoreVideo (drv: { - installPhase = drv.installPhase + '' - # When used as a module, complains about a missing import for - # Darwin.C.stdint. Apparently fixed in later SDKs. - sed -e "/CFBase.h/ i #include " \ - -i $out/Library/Frameworks/CoreVideo.framework/Headers/CVBase.h - ''; - }); - - System = lib.overrideDerivation super.System (drv: { - installPhase = drv.installPhase + '' - # Contrarily to the other frameworks, System framework's TBD file - # is a symlink pointing to ${MacOSX-SDK}/usr/lib/libSystem.B.tbd. - # This produces an error when installing the framework as: - # 1. The original file is not copied into the output directory - # 2. Even if it was copied, the relative path wouldn't match - # Thus, it is easier to replace the file than to fix the symlink. - cp --remove-destination ${MacOSX-SDK}/usr/lib/libSystem.B.tbd \ - $out/Library/Frameworks/System.framework/Versions/B/System.tbd - ''; - }); - }; - - # Merge extraDeps into generatedDeps. - deps = generatedDeps // ( - lib.mapAttrs - (name: deps: generatedDeps.${name} // deps) - extraDeps - ); - - # Create derivations, and add private frameworks. - bareFrameworks = (lib.mapAttrs framework deps) // ( - lib.mapAttrs privateFramework (import ./private-frameworks.nix { - inherit frameworks; - libobjc = pkgs.darwin.apple_sdk_11_0.objc4; - }) - ); - in - # Apply derivation overrides. - bareFrameworks // overrides bareFrameworks; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/cf-setup-hook.sh b/pkgs/os-specific/darwin/apple-sdk-11.0/cf-setup-hook.sh deleted file mode 100644 index b64eb95f2ded..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/cf-setup-hook.sh +++ /dev/null @@ -1,6 +0,0 @@ -forceLinkCoreFoundationFramework() { - NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks${NIX_CFLAGS_COMPILE:+ }${NIX_CFLAGS_COMPILE-}" - NIX_LDFLAGS+=" @out@/Library/Frameworks/CoreFoundation.framework/CoreFoundation.tbd" -} - -preConfigureHooks+=(forceLinkCoreFoundationFramework) diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix index c64f011c0534..889f484b0475 100644 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk-11.0/default.nix @@ -1,160 +1,303 @@ -{ stdenvNoCC, fetchurl, newScope, lib, pkgs -, stdenv, overrideCC -, xar, cpio, python3, pbzx }: +# Compatibility stubs for packages that used the old SDK frameworks. +# TODO(@reckenrode) Make these stubs warn after framework usage has been cleaned up in nixpkgs. +{ + lib, + callPackage, + newScope, + overrideSDK, + pkgs, + stdenv, + stdenvNoCC, +}: let - mkSusDerivation = args: stdenvNoCC.mkDerivation (args // { - dontBuild = true; - darwinDontCodeSign = true; + mkStub = callPackage ../apple-sdk/mk-stub.nix { } "11.0"; - nativeBuildInputs = [ cpio pbzx ]; + stdenvs = + { + stdenv = overrideSDK stdenv "11.0"; + } + // builtins.listToAttrs ( + map + (v: { + name = "llvmPackages_${v}"; + value = pkgs."llvmPackages_${v}" // { + stdenv = overrideSDK pkgs."llvmPackages_${v}".stdenv "11.0"; + }; + }) + [ + "12" + "13" + "14" + "15" + "16" + ] + ); +in +stdenvs +// lib.genAttrs [ + "CLTools_Executables" + "IOKit" + "Libsystem" + "LibsystemCross" + "MacOSX-SDK" + "configd" + "darwin-stubs" + "libcharset" + "libcompression" + "libnetwork" + "libpm" + "libunwind" + "objc4" + "sdkRoot" +] mkStub +// { + frameworks = lib.genAttrs [ + "AGL" + "AVFCapture" + "AVFCore" + "AVFoundation" + "AVKit" + "Accelerate" + "Accessibility" + "Accounts" + "AdServices" + "AdSupport" + "AddressBook" + "AddressBookCore" + "AppKit" + "AppTrackingTransparency" + "Apple80211" + "AppleScriptKit" + "AppleScriptObjC" + "ApplicationServices" + "AudioToolbox" + "AudioToolboxCore" + "AudioUnit" + "AudioVideoBridging" + "AuthenticationServices" + "AutomaticAssessmentConfiguration" + "Automator" + "BackgroundTasks" + "BusinessChat" + "CFNetwork" + "CalendarStore" + "CallKit" + "Carbon" + "ClassKit" + "CloudKit" + "Cocoa" + "Collaboration" + "ColorSync" + "Combine" + "Contacts" + "ContactsPersistence" + "ContactsUI" + "CoreAudio" + "CoreAudioKit" + "CoreAudioTypes" + "CoreBluetooth" + "CoreData" + "CoreDisplay" + "CoreFoundation" + "CoreGraphics" + "CoreHaptics" + "CoreImage" + "CoreLocation" + "CoreMIDI" + "CoreMIDIServer" + "CoreML" + "CoreMedia" + "CoreMediaIO" + "CoreMotion" + "CoreServices" + "CoreSpotlight" + "CoreSymbolication" + "CoreTelephony" + "CoreText" + "CoreVideo" + "CoreWLAN" + "CryptoKit" + "CryptoTokenKit" + "DVDPlayback" + "DebugSymbols" + "DeveloperToolsSupport" + "DeviceCheck" + "DirectoryService" + "DiscRecording" + "DiscRecordingUI" + "DiskArbitration" + "DisplayServices" + "DriverKit" + "EventKit" + "ExceptionHandling" + "ExecutionPolicy" + "ExternalAccessory" + "FWAUserLib" + "FileProvider" + "FileProviderUI" + "FinderSync" + "ForceFeedback" + "Foundation" + "GLKit" + "GLUT" + "GSS" + "GameCenterFoundation" + "GameCenterUI" + "GameCenterUICore" + "GameController" + "GameKit" + "GameplayKit" + "HIDDriverKit" + "Hypervisor" + "ICADevices" + "IMServicePlugIn" + "IOBluetooth" + "IOBluetoothUI" + "IOKit" + "IOSurface" + "IOUSBHost" + "IdentityLookup" + "ImageCaptureCore" + "ImageIO" + "InputMethodKit" + "InstallerPlugins" + "InstantMessage" + "Intents" + "JavaNativeFoundation" + "JavaRuntimeSupport" + "JavaScriptCore" + "JavaVM" + "Kerberos" + "Kernel" + "KernelManagement" + "LDAP" + "LatentSemanticMapping" + "LinkPresentation" + "LocalAuthentication" + "MLCompute" + "MapKit" + "MediaAccessibility" + "MediaLibrary" + "MediaPlayer" + "MediaRemote" + "MediaToolbox" + "Message" + "Metal" + "MetalKit" + "MetalPerformanceShaders" + "MetalPerformanceShadersGraph" + "MetricKit" + "ModelIO" + "MultipeerConnectivity" + "MultitouchSupport" + "NaturalLanguage" + "NearbyInteraction" + "NetFS" + "Network" + "NetworkExtension" + "NetworkingDriverKit" + "NotificationCenter" + "OSAKit" + "OSLog" + "OpenAL" + "OpenCL" + "OpenDirectory" + "OpenGL" + "PCIDriverKit" + "PCSC" + "PDFKit" + "ParavirtualizedGraphics" + "PassKit" + "PassKitCore" + "PencilKit" + "Photos" + "PhotosUI" + "PreferencePanes" + "PushKit" + "Python" + "QTKit" + "Quartz" + "QuartzCore" + "QuickLook" + "QuickLookThumbnailing" + "QuickTime" + "RealityKit" + "ReplayKit" + "Ruby" + "SafariServices" + "SceneKit" + "ScreenSaver" + "ScreenTime" + "ScriptingBridge" + "Security" + "SecurityFoundation" + "SecurityInterface" + "SensorKit" + "ServiceManagement" + "SignpostMetrics" + "SkyLight" + "Social" + "SoundAnalysis" + "Speech" + "SpriteKit" + "StoreKit" + "SwiftUI" + "SyncServices" + "System" + "SystemConfiguration" + "SystemExtensions" + "TWAIN" + "Tcl" + "Tk" + "UIFoundation" + "URLFormatting" + "USBDriverKit" + "UniformTypeIdentifiers" + "UserNotifications" + "UserNotificationsUI" + "VideoDecodeAcceleration" + "VideoSubscriberAccount" + "VideoToolbox" + "Virtualization" + "Vision" + "WebKit" + "WidgetKit" + "iTunesLibrary" + "vmnet" + ] mkStub; - outputs = [ "out" ]; + libs = lib.genAttrs [ + "Xplugin" + "utmp" + "libDER" + "xpc" + "sandbox" + "simd" + ] mkStub; - unpackPhase = '' - pbzx $src | cpio -idm - ''; - - passthru = { - inherit (args) version; - }; - }); - - MacOSX-SDK = mkSusDerivation { - pname = "MacOSX-SDK"; - version = "11.0.0"; - - # https://swscan.apple.com/content/catalogs/others/index-11-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog - src = fetchurl { - url = "http://swcdn.apple.com/content/downloads/46/21/001-89745-A_56FM390IW5/v1um2qppgfdnam2e9cdqcqu2r6k8aa3lis/CLTools_macOSNMOS_SDK.pkg"; - sha256 = "0n425smj4q1vxbza8fzwnk323fyzbbq866q32w288c44hl5yhwsf"; - }; - - installPhase = '' - mv Library/Developer/CommandLineTools/SDKs/MacOSX11.1.sdk $out - ''; - }; - - CLTools_Executables = mkSusDerivation { - pname = "CLTools_Executables"; - version = "11.0.0"; - - # https://swscan.apple.com/content/catalogs/others/index-11-10.15-10.14-10.13-10.12-10.11-10.10-10.9-mountainlion-lion-snowleopard-leopard.merged-1.sucatalog - src = fetchurl { - url = "http://swcdn.apple.com/content/downloads/46/21/001-89745-A_56FM390IW5/v1um2qppgfdnam2e9cdqcqu2r6k8aa3lis/CLTools_Executables.pkg"; - sha256 = "0nvb1qx7l81l2wcl8wvgbpsg5rcn51ylhivqmlfr2hrrv3zrrpl0"; - }; - - installPhase = '' - mv Library/Developer/CommandLineTools $out - ''; - }; - - mkCc = cc: - if lib.versionAtLeast stdenv.hostPlatform.darwinSdkVersion "11" then cc - else - cc.override { - bintools = stdenv.cc.bintools.override { libc = packages.Libsystem; }; - libc = packages.Libsystem; - }; - - mkStdenv = stdenv: - if lib.versionAtLeast stdenv.hostPlatform.darwinSdkVersion "11" then stdenv - else - let - darwinMinVersion = "10.12"; - darwinSdkVersion = "11.0"; - in - (overrideCC stdenv (mkCc stdenv.cc)).override { - extraBuildInputs = [ pkgs.darwin.apple_sdk_11_0.frameworks.CoreFoundation ]; - buildPlatform = stdenv.buildPlatform // { inherit darwinMinVersion darwinSdkVersion; }; - hostPlatform = stdenv.hostPlatform // { inherit darwinMinVersion darwinSdkVersion; }; - targetPlatform = stdenv.targetPlatform // { inherit darwinMinVersion darwinSdkVersion; }; - }; - - stdenvs = { - stdenv = mkStdenv stdenv; - } // builtins.listToAttrs (map - (v: { - name = "llvmPackages_${v}"; - value = pkgs."llvmPackages_${v}" // { - stdenv = mkStdenv pkgs."llvmPackages_${v}".stdenv; - clang = mkCc pkgs."llvmPackages_${v}".clang; - }; - }) - [ "12" "13" "14" "15" "16" ] + callPackage = newScope ( + lib.optionalAttrs stdenv.isDarwin stdenvs // { inherit (pkgs.darwin.apple_sdk_11_0) rustPlatform; } ); - callPackage = newScope (packages // pkgs.darwin // { inherit MacOSX-SDK; }); - - packages = stdenvs // { - inherit (callPackage ./apple_sdk.nix { }) frameworks libs; - - # TODO: this is nice to be private. is it worth the callPackage above? - # Probably, I don't think that callPackage costs much at all. - inherit MacOSX-SDK CLTools_Executables; - - Libsystem = callPackage ./libSystem.nix { }; - LibsystemCross = pkgs.darwin.Libsystem; - libcharset = callPackage ./libcharset.nix { }; - libcompression = callPackage ./libcompression.nix { }; - libunwind = callPackage ./libunwind.nix { }; - libnetwork = callPackage ./libnetwork.nix { }; - libpm = callPackage ./libpm.nix { }; - # Avoid introducing a new objc4 if stdenv already has one, to prevent - # conflicting LLVM modules. - objc4 = stdenv.objc4 or (callPackage ./libobjc.nix { }); - - sdkRoot = pkgs.callPackage ../apple-sdk/sdkRoot.nix { sdkVersion = "11.0"; }; - - # questionable aliases - configd = pkgs.darwin.apple_sdk.frameworks.SystemConfiguration; - inherit (pkgs.darwin.apple_sdk.frameworks) IOKit; - - xcodebuild = pkgs.xcbuild.override { - inherit (pkgs.darwin.apple_sdk_11_0) stdenv; - inherit (pkgs.darwin.apple_sdk_11_0.frameworks) CoreServices CoreGraphics ImageIO; - }; - - rustPlatform = pkgs.makeRustPlatform { + rustPlatform = + pkgs.makeRustPlatform { inherit (pkgs.darwin.apple_sdk_11_0) stdenv; inherit (pkgs) rustc cargo; - } // { - inherit (pkgs.callPackage ../../../build-support/rust/hooks { - inherit (pkgs.darwin.apple_sdk_11_0) stdenv; - inherit (pkgs) cargo rustc; - clang = mkCc pkgs.clang; - }) bindgenHook; + } + // { + inherit + (pkgs.callPackage ../../../build-support/rust/hooks { + inherit (pkgs.darwin.apple_sdk_11_0) stdenv; + inherit (pkgs) cargo rustc; + }) + bindgenHook + ; }; - callPackage = newScope (lib.optionalAttrs stdenv.hostPlatform.isDarwin (stdenvs // rec { - inherit (pkgs.darwin.apple_sdk_11_0) xcodebuild rustPlatform; - darwin = pkgs.darwin.overrideScope (_: prev: { - inherit (prev.darwin.apple_sdk_11_0) - IOKit - Libsystem - LibsystemCross - Security - configd - libcharset - libunwind - objc4 - ; - apple_sdk = prev.darwin.apple_sdk_11_0; - CF = prev.darwin.apple_sdk_11_0.CoreFoundation; - }); - xcbuild = xcodebuild; - })); + stdenv = overrideSDK stdenv "11.0"; - darwin-stubs = stdenvNoCC.mkDerivation { - pname = "darwin-stubs"; - inherit (MacOSX-SDK) version; + xcodebuild = pkgs.xcodebuild; - buildCommand = '' - mkdir -p "$out" - ln -s ${MacOSX-SDK}/System "$out/System" - ln -s ${MacOSX-SDK}/usr "$out/usr" - ''; - }; - }; -in packages + version = "11.0"; +} diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/frameworks.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/frameworks.nix deleted file mode 100644 index fa6945f76718..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/frameworks.nix +++ /dev/null @@ -1,196 +0,0 @@ -# This file is generated by gen-frameworks.nix. -# Do not edit, put overrides in apple_sdk.nix instead. -{ libs, frameworks }: with libs; with frameworks; -{ - AGL = { inherit Carbon OpenGL; }; - AVFoundation = { inherit AudioToolbox CoreAudio CoreAudioTypes CoreFoundation CoreGraphics CoreImage CoreMIDI CoreMedia CoreVideo Foundation IOKit ImageIO MediaToolbox Metal QuartzCore UniformTypeIdentifiers simd; }; - AVKit = { inherit AVFoundation AppKit Cocoa Foundation; }; - Accelerate = { inherit CoreFoundation CoreGraphics CoreVideo Foundation IOKit Metal; }; - Accessibility = { inherit CoreGraphics Foundation; }; - Accounts = { inherit Foundation; }; - AdServices = { inherit Foundation; }; - AdSupport = { inherit Foundation; }; - AddressBook = { inherit Carbon Cocoa CoreFoundation Foundation; }; - AppKit = { inherit ApplicationServices CloudKit CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation IOKit Metal OpenGL QuartzCore; }; - AppTrackingTransparency = { inherit Foundation; }; - AppleScriptKit = {}; - AppleScriptObjC = { inherit Foundation; }; - ApplicationServices = { inherit ColorSync CoreFoundation CoreGraphics CoreServices CoreText ImageIO; }; - AudioToolbox = { inherit Carbon CoreAudio CoreAudioTypes CoreFoundation CoreMIDI Foundation; }; - AudioUnit = { inherit AudioToolbox; }; - AudioVideoBridging = { inherit Foundation IOKit; }; - AuthenticationServices = { inherit AppKit Foundation; }; - AutomaticAssessmentConfiguration = { inherit Foundation; }; - Automator = { inherit AppKit Cocoa Foundation OSAKit; }; - BackgroundTasks = { inherit Foundation; }; - BusinessChat = { inherit Cocoa Foundation; }; - CFNetwork = { inherit CoreFoundation; }; - CalendarStore = {}; - CallKit = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - Carbon = { inherit ApplicationServices CoreServices Foundation Security; }; - ClassKit = { inherit CoreGraphics Foundation; }; - CloudKit = { inherit CoreFoundation CoreGraphics CoreLocation Foundation IOKit; }; - Cocoa = { inherit AppKit CoreData Foundation; }; - Collaboration = { inherit AppKit CoreServices Foundation; }; - ColorSync = { inherit CoreFoundation; }; - Combine = {}; - Contacts = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - ContactsUI = { inherit AppKit; }; - CoreAudio = { inherit CoreAudioTypes CoreFoundation; }; - CoreAudioKit = { inherit AppKit AudioUnit Cocoa Foundation; }; - CoreAudioTypes = { inherit CoreFoundation; }; - CoreBluetooth = { inherit Foundation; }; - CoreData = { inherit CloudKit Combine CoreFoundation CoreGraphics CoreLocation Foundation IOKit; }; - CoreDisplay = {}; - CoreFoundation = {}; - CoreGraphics = { inherit CoreFoundation IOKit; }; - CoreHaptics = { inherit Foundation; }; - CoreImage = { inherit ApplicationServices CoreFoundation CoreGraphics CoreVideo Foundation IOKit IOSurface ImageIO Metal OpenGL; }; - CoreLocation = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - CoreMIDI = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - CoreMIDIServer = {}; - CoreML = { inherit CoreFoundation CoreGraphics CoreVideo Foundation IOKit ImageIO Metal; }; - CoreMedia = { inherit CoreAudio CoreAudioTypes CoreFoundation CoreGraphics CoreVideo Foundation IOKit Metal; }; - CoreMediaIO = { inherit CoreFoundation CoreMedia; }; - CoreMotion = { inherit Foundation; }; - CoreServices = { inherit CFNetwork CoreFoundation DiskArbitration Security; }; - CoreSpotlight = { inherit Foundation UniformTypeIdentifiers; }; - CoreTelephony = {}; - CoreText = { inherit CoreFoundation CoreGraphics; }; - CoreVideo = { inherit ApplicationServices CoreFoundation CoreGraphics IOSurface Metal OpenGL; }; - CoreWLAN = { inherit Foundation IOKit; }; - CryptoKit = { inherit CoreFoundation CoreGraphics Foundation IOKit LocalAuthentication Security; }; - CryptoTokenKit = { inherit CoreFoundation CoreGraphics Foundation IOKit Security; }; - DVDPlayback = { inherit ApplicationServices CoreFoundation Security; }; - DeveloperToolsSupport = { inherit Foundation; }; - DeviceCheck = { inherit Foundation; }; - DirectoryService = { inherit CoreFoundation; }; - DiscRecording = { inherit CoreServices Foundation; }; - DiscRecordingUI = { inherit Carbon Cocoa DiscRecording; }; - DiskArbitration = { inherit CoreFoundation IOKit; }; - DriverKit = {}; - EventKit = { inherit CoreGraphics CoreLocation Foundation; }; - ExceptionHandling = { inherit Foundation; }; - ExecutionPolicy = { inherit Foundation; }; - ExternalAccessory = { inherit Foundation; }; - FWAUserLib = { inherit IOKit; }; - FileProvider = { inherit CoreGraphics Foundation; }; - FileProviderUI = { inherit AppKit FileProvider Foundation; }; - FinderSync = { inherit AppKit Foundation; }; - ForceFeedback = { inherit CoreFoundation IOKit; }; - Foundation = { inherit ApplicationServices Combine CoreFoundation CoreGraphics CoreServices IOKit Security; }; - GLKit = { inherit AppKit CloudKit CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation IOKit Metal ModelIO OpenGL QuartzCore simd; }; - GLUT = { inherit OpenGL; }; - GSS = { inherit CoreFoundation; }; - GameController = { inherit AppKit Foundation IOKit; }; - GameKit = { inherit AppKit Cocoa Contacts CoreGraphics Foundation GameController GameplayKit Metal MetalKit ModelIO SceneKit SpriteKit simd; }; - GameplayKit = { inherit AppKit CloudKit CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation GLKit IOKit Metal ModelIO QuartzCore SceneKit SpriteKit simd; }; - HIDDriverKit = { inherit IOKit USBDriverKit; }; - Hypervisor = {}; - ICADevices = { inherit CoreFoundation CoreGraphics CoreServices IOBluetooth; }; - IMServicePlugIn = { inherit Foundation; }; - IOBluetooth = { inherit CoreAudio CoreFoundation CoreServices Foundation IOKit; }; - IOBluetoothUI = { inherit Cocoa IOBluetooth; }; - IOKit = { inherit CoreFoundation; }; - IOSurface = { inherit CoreFoundation Foundation IOKit; }; - IOUSBHost = { inherit Foundation IOKit; }; - IdentityLookup = { inherit Foundation; }; - ImageCaptureCore = { inherit Cocoa CoreGraphics Foundation; }; - ImageIO = { inherit CoreFoundation CoreGraphics; }; - InputMethodKit = { inherit Carbon Cocoa Foundation; }; - InstallerPlugins = {}; - InstantMessage = {}; - Intents = { inherit CoreFoundation CoreGraphics CoreLocation Foundation IOKit; }; - JavaNativeFoundation = { inherit Foundation; }; - JavaRuntimeSupport = { inherit ApplicationServices Cocoa Foundation QuartzCore; }; - JavaScriptCore = { inherit CoreFoundation CoreGraphics Foundation; }; - Kerberos = {}; - Kernel = {}; - KernelManagement = { inherit Foundation; }; - LDAP = {}; - LatentSemanticMapping = { inherit Carbon CoreFoundation; }; - LinkPresentation = { inherit AppKit Foundation; }; - LocalAuthentication = { inherit Foundation; }; - MLCompute = { inherit CoreFoundation CoreGraphics Foundation IOKit Metal; }; - MapKit = { inherit AppKit CloudKit CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation IOKit Metal QuartzCore; }; - MediaAccessibility = { inherit CoreFoundation CoreGraphics CoreText QuartzCore; }; - MediaLibrary = { inherit Foundation; }; - MediaPlayer = { inherit AVFoundation CoreGraphics Foundation; }; - MediaToolbox = { inherit AudioToolbox CoreFoundation CoreMedia; }; - Message = {}; - Metal = { inherit CoreFoundation CoreGraphics Foundation IOKit IOSurface; }; - MetalKit = { inherit AppKit CloudKit CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation IOKit Metal ModelIO QuartzCore simd; }; - MetalPerformanceShaders = { inherit CoreGraphics Foundation Metal simd; }; - MetalPerformanceShadersGraph = { inherit Foundation MetalPerformanceShaders; }; - MetricKit = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - ModelIO = { inherit CoreFoundation CoreGraphics Foundation IOKit simd; }; - MultipeerConnectivity = { inherit Cocoa Foundation; }; - NaturalLanguage = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - NearbyInteraction = { inherit CoreFoundation CoreGraphics Foundation IOKit simd; }; - NetFS = { inherit CoreFoundation; }; - Network = { inherit CoreFoundation Foundation Security; }; - NetworkExtension = { inherit Foundation Network Security; }; - NetworkingDriverKit = {}; - NotificationCenter = { inherit AppKit Foundation; }; - OSAKit = { inherit Carbon Cocoa; }; - OSLog = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - OpenAL = {}; - OpenCL = { inherit OpenGL; }; - OpenDirectory = { inherit CoreFoundation Foundation; }; - OpenGL = {}; - PCIDriverKit = { inherit IOKit; }; - PCSC = {}; - PDFKit = { inherit AppKit Cocoa; }; - ParavirtualizedGraphics = { inherit AppKit CoreVideo Foundation IOSurface Metal; }; - PassKit = { inherit AppKit Contacts CoreGraphics Foundation; }; - PencilKit = { inherit AppKit CloudKit Cocoa CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation IOKit Metal QuartzCore; }; - Photos = { inherit AVFoundation CoreAudio CoreFoundation CoreGraphics CoreImage CoreLocation CoreMIDI CoreMedia Foundation IOKit ImageIO Metal QuartzCore UniformTypeIdentifiers simd; }; - PhotosUI = { inherit AppKit Foundation MapKit Photos; }; - PreferencePanes = { inherit Cocoa; }; - PushKit = { inherit Foundation; }; - Python = { inherit Carbon; }; - QTKit = {}; - Quartz = { inherit AppKit ApplicationServices Cocoa Foundation ImageCaptureCore OpenGL PDFKit QuartzCore QuickLook; }; - QuartzCore = { inherit CoreFoundation CoreGraphics CoreImage CoreVideo Foundation IOKit Metal OpenGL; }; - QuickLook = { inherit ApplicationServices CoreFoundation; }; - QuickLookThumbnailing = { inherit CoreGraphics Foundation UniformTypeIdentifiers; }; - RealityKit = { inherit AVFoundation AppKit AudioToolbox CloudKit Combine CoreAudio CoreData CoreFoundation CoreGraphics CoreImage CoreLocation CoreMIDI CoreText Foundation IOKit Metal MultipeerConnectivity QuartzCore simd; }; - ReplayKit = { inherit AVFoundation AppKit Foundation; }; - Ruby = {}; - SafariServices = { inherit AppKit CloudKit CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation IOKit Metal QuartzCore; }; - SceneKit = { inherit AppKit CloudKit CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation GLKit IOKit Metal ModelIO QuartzCore simd; }; - ScreenSaver = { inherit AppKit Foundation; }; - ScreenTime = { inherit AppKit Foundation; }; - ScriptingBridge = { inherit ApplicationServices CoreServices Foundation; }; - Security = { inherit CoreFoundation; }; - SecurityFoundation = { inherit Foundation Security; }; - SecurityInterface = { inherit AppKit Cocoa Security SecurityFoundation; }; - SensorKit = { inherit CoreFoundation CoreLocation Foundation; }; - ServiceManagement = { inherit CoreFoundation Security; }; - Social = { inherit AppKit Foundation; }; - SoundAnalysis = { inherit AVFoundation CoreML CoreMedia Foundation; }; - Speech = { inherit AVFoundation CoreAudio CoreFoundation CoreGraphics CoreImage CoreMIDI CoreMedia Foundation IOKit Metal QuartzCore UniformTypeIdentifiers simd; }; - SpriteKit = { inherit AppKit CloudKit Cocoa CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation GLKit IOKit Metal ModelIO QuartzCore simd; }; - StoreKit = { inherit AppKit CoreGraphics Foundation; }; - SwiftUI = { inherit AppKit CloudKit Combine CoreData CoreFoundation CoreGraphics CoreImage CoreLocation DeveloperToolsSupport Foundation IOKit Metal QuartzCore UniformTypeIdentifiers; }; - SyncServices = {}; - System = {}; - SystemConfiguration = { inherit CoreFoundation Security; }; - SystemExtensions = { inherit Foundation; }; - TWAIN = {}; - Tcl = {}; - Tk = {}; - USBDriverKit = { inherit IOKit; }; - UniformTypeIdentifiers = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - UserNotifications = { inherit Foundation; }; - UserNotificationsUI = { inherit AppKit; }; - VideoDecodeAcceleration = {}; - VideoSubscriberAccount = { inherit Foundation; }; - VideoToolbox = { inherit CoreFoundation CoreGraphics CoreMedia CoreVideo; }; - Virtualization = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - Vision = { inherit CoreAudio CoreFoundation CoreGraphics CoreML CoreMedia CoreVideo Foundation IOKit ImageIO Metal simd; }; - WebKit = { inherit AppKit CloudKit CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation IOKit JavaScriptCore Metal OpenGL QuartzCore; }; - WidgetKit = { inherit Combine CoreFoundation CoreGraphics CoreVideo Foundation IOKit Intents Metal SwiftUI; }; - iTunesLibrary = { inherit Foundation; }; - vmnet = {}; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/libSystem.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/libSystem.nix deleted file mode 100644 index b661da75febe..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/libSystem.nix +++ /dev/null @@ -1,88 +0,0 @@ -{ stdenvNoCC, buildPackages, MacOSX-SDK }: - -stdenvNoCC.mkDerivation { - pname = "libSystem"; - version = MacOSX-SDK.version; - - dontBuild = true; - dontUnpack = true; - - nativeBuildInputs = [ buildPackages.darwin.rewrite-tbd ]; - - includeDirs = [ - "CommonCrypto" "_types" "architecture" "arpa" "atm" "bank" "bsd" "bsm" - "corecrypto" "corpses" "default_pager" "device" "dispatch" "hfs" "i386" - "iokit" "kern" "libkern" "mach" "mach-o" "mach_debug" "machine" "malloc" - "miscfs" "net" "netinet" "netinet6" "netkey" "nfs" "os" "osfmk" "pexpert" - "platform" "protocols" "pthread" "rpc" "rpcsvc" "secure" "security" - "servers" "sys" "uuid" "vfs" "voucher" "xlocale" - ] ++ [ - "arm" "xpc" "arm64" - ]; - - csu = [ - "bundle1.o" "crt0.o" "crt1.10.5.o" "crt1.10.6.o" "crt1.o" "dylib1.10.5.o" - "dylib1.o" "gcrt1.o" "lazydylib1.o" - ]; - - installPhase = '' - mkdir -p $out/{include,lib/swift} - - for dir in $includeDirs; do - from=${MacOSX-SDK}/usr/include/$dir - if [ -e "$from" ]; then - cp -dr $from $out/include - else - echo "Header directory '$from' doesn't exist: skipping" - fi - done - - cp -d \ - ${MacOSX-SDK}/usr/include/*.h \ - ${MacOSX-SDK}/usr/include/*.modulemap \ - ${MacOSX-SDK}/usr/include/*.apinotes \ - $out/include - - rm $out/include/tk*.h $out/include/tcl*.h - - cp -dr \ - ${MacOSX-SDK}/usr/lib/libSystem.* \ - ${MacOSX-SDK}/usr/lib/system \ - $out/lib - - # Extra libraries - for name in c dbm dl info m mx poll proc pthread rpcsvc util gcc_s.1 resolv; do - cp -d \ - ${MacOSX-SDK}/usr/lib/lib$name.tbd \ - ${MacOSX-SDK}/usr/lib/lib$name.*.tbd \ - $out/lib - done - - for name in os Dispatch; do - cp -dr \ - ${MacOSX-SDK}/usr/lib/swift/$name.swiftmodule \ - ${MacOSX-SDK}/usr/lib/swift/libswift$name.tbd \ - $out/lib/swift - done - - for f in $csu; do - from=${MacOSX-SDK}/usr/lib/$f - if [ -e "$from" ]; then - cp -d $from $out/lib - else - echo "Csu file '$from' doesn't exist: skipping" - fi - done - - chmod u+w -R $out/lib - find $out -name '*.tbd' -type f | while read tbd; do - rewrite-tbd \ - -c /usr/lib/libsystem.dylib:$out/lib/libsystem.dylib \ - -p /usr/lib/system/:$out/lib/system/ \ - -p /usr/lib/swift/:$out/lib/swift/ \ - -r ${builtins.storeDir} \ - "$tbd" - done - ''; -} - diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/libcharset.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/libcharset.nix deleted file mode 100644 index bf55037ab605..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/libcharset.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ stdenvNoCC, buildPackages, MacOSX-SDK }: - -stdenvNoCC.mkDerivation { - pname = "libcharset"; - version = MacOSX-SDK.version; - - dontUnpack = true; - dontBuild = true; - - nativeBuildInputs = [ buildPackages.darwin.checkReexportsHook ]; - - installPhase = '' - mkdir -p $out/{include,lib} - cp ${MacOSX-SDK}/usr/lib/libcharset* $out/lib - ''; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/libcompression.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/libcompression.nix deleted file mode 100644 index 92a45b7c5a50..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/libcompression.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ stdenvNoCC, buildPackages, MacOSX-SDK }: - -let self = stdenvNoCC.mkDerivation { - pname = "libcompression"; - version = MacOSX-SDK.version; - - dontUnpack = true; - dontBuild = true; - - installPhase = '' - mkdir -p $out/lib - cp ${MacOSX-SDK}/usr/lib/libcompression* $out/lib - ''; - - passthru = { - tbdRewrites = { - const."/usr/lib/libcompression.dylib" = "${self}/lib/libcompression.dylib"; - }; - }; -}; in self diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/libnetwork.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/libnetwork.nix deleted file mode 100644 index 2e5c0593bf40..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/libnetwork.nix +++ /dev/null @@ -1,20 +0,0 @@ -{ stdenvNoCC, buildPackages, MacOSX-SDK }: - -let self = stdenvNoCC.mkDerivation { - pname = "libnetwork"; - version = MacOSX-SDK.version; - - dontUnpack = true; - dontBuild = true; - - installPhase = '' - mkdir -p $out/lib - cp ${MacOSX-SDK}/usr/lib/libnetwork* $out/lib - ''; - - passthru = { - tbdRewrites = { - const."/usr/lib/libnetwork.dylib" = "${self}/lib/libnetwork.dylib"; - }; - }; -}; in self diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/libobjc.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/libobjc.nix deleted file mode 100644 index 9288097ef369..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/libobjc.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ stdenvNoCC, MacOSX-SDK, libcharset }: - -let self = stdenvNoCC.mkDerivation { - pname = "libobjc"; - version = MacOSX-SDK.version; - - dontUnpack = true; - dontBuild = true; - - installPhase = '' - mkdir -p $out/{include,lib/swift} - cp -r ${MacOSX-SDK}/usr/include/objc $out/include - cp ${MacOSX-SDK}/usr/lib/libobjc* $out/lib - cp -r ${MacOSX-SDK}/usr/lib/swift/ObjectiveC.swiftmodule $out/lib/swift - cp ${MacOSX-SDK}/usr/lib/swift/libswiftObjectiveC.tbd $out/lib/swift - ''; - - passthru = { - tbdRewrites = { - const."/usr/lib/libobjc.A.dylib" = "${self}/lib/libobjc.A.dylib"; - const."/usr/lib/swift/libswiftObjectiveC.dylib" = "${self}/lib/swift/libswiftObjectiveC.dylib"; - }; - }; -}; in self diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/libpm.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/libpm.nix deleted file mode 100644 index 995f2b20ce70..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/libpm.nix +++ /dev/null @@ -1,23 +0,0 @@ -{ stdenvNoCC, MacOSX-SDK, checkReexportsHook }: - -stdenvNoCC.mkDerivation { - pname = "libpm"; - version = MacOSX-SDK.version; - - dontUnpack = true; - dontBuild = true; - - nativeBuildInputs = [ checkReexportsHook ]; - - installPhase = '' - mkdir -p $out/lib - cp ${MacOSX-SDK}/usr/lib/libpm* $out/lib - ''; - - passthru = { - tbdRewrites = { - const."/usr/lib/libpmenergy.dylib" = "${placeholder "out"}/lib/libpmenergy.dylib"; - const."/usr/lib/libpmsample.dylib" = "${placeholder "out"}/lib/libpmsample.dylib"; - }; - }; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/libunwind.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/libunwind.nix deleted file mode 100644 index 885780eba75c..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/libunwind.nix +++ /dev/null @@ -1,24 +0,0 @@ -{ stdenvNoCC, buildPackages, MacOSX-SDK }: - -stdenvNoCC.mkDerivation { - pname = "libunwind"; - version = MacOSX-SDK.version; - - dontUnpack = true; - dontBuild = true; - - nativeBuildInputs = [ buildPackages.darwin.checkReexportsHook ]; - - installPhase = '' - mkdir -p $out/include/mach-o - - cp \ - ${MacOSX-SDK}/usr/include/libunwind.h \ - ${MacOSX-SDK}/usr/include/unwind.h \ - $out/include - - cp \ - ${MacOSX-SDK}/usr/include/mach-o/compact_unwind_encoding.h \ - $out/include/mach-o - ''; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-11.0/private-frameworks.nix b/pkgs/os-specific/darwin/apple-sdk-11.0/private-frameworks.nix deleted file mode 100644 index 4566c8af84f5..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-11.0/private-frameworks.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ frameworks, libobjc }: with frameworks; -# generated by hand to avoid exposing all private frameworks -# frameworks here are only the necessary ones used by public frameworks. -{ - Apple80211 = {}; - AVFCapture = {}; - AVFCore = {}; - AddressBookCore = { inherit ContactsPersistence; }; - AudioToolboxCore = {}; - ContactsPersistence = {}; - GameCenterFoundation = {}; - GameCenterUI = {}; - GameCenterUICore = {}; - MediaRemote = {}; - PassKitCore = {}; - SignpostMetrics = {}; - SkyLight = {}; - UIFoundation = {}; - URLFormatting = {}; - - # Also expose CoreSymbolication; used by `root` package. - CoreSymbolication = {}; - - # Also expose DebugSymbols; used by `llvmPackages_8.lldb` package. - DebugSymbols = {}; - - # Also expose DisplayServices; used by `sketchybar` package. - DisplayServices = { inherit libobjc; }; - - # Also expose MultitouchSupport; used by `chuck` package. - MultitouchSupport = {}; -} diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index 97a3036062e9..b09461150576 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -57,9 +57,7 @@ makeScopeWithSplicing' { }; # macOS 11.0 SDK - apple_sdk_11_0 = pkgs.callPackage ../os-specific/darwin/apple-sdk-11.0 { - fetchurl = fetchurlBoot; - }; + apple_sdk_11_0 = pkgs.callPackage ../os-specific/darwin/apple-sdk-11.0 { }; # macOS 12.3 SDK apple_sdk_12_3 = pkgs.callPackage ../os-specific/darwin/apple-sdk-12.3 { }; @@ -94,13 +92,15 @@ makeScopeWithSplicing' { ) Security; }; - stubs = lib.genAttrs [ + stubs = { + inherit apple_sdk_11_0; + } // lib.genAttrs [ ] (mkStub apple_sdk.version); in impure-cmds // appleSourcePackages // chooseLibs // stubs // { - inherit apple_sdk apple_sdk_10_12 apple_sdk_11_0 apple_sdk_12_3; + inherit apple_sdk apple_sdk_10_12 apple_sdk_12_3; stdenvNoCF = stdenv.override { extraBuildInputs = []; From 480227777b6217686ed7def88549dc0a46d968ff Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Thu, 26 Sep 2024 20:55:53 -0400 Subject: [PATCH 0259/1574] darwin.apple_sdk_12_3: convert frameworks and libs to stubs --- .../apple-sdk-12.3/CLTools_Executables.nix | 27 -- .../apple-sdk-12.3/CLTools_macOSNMOS_SDK.nix | 28 -- .../apple-sdk-12.3/apple-sdk-releases.json | 20 -- .../darwin/apple-sdk-12.3/default.nix | 295 +++++++++++++++--- .../apple-sdk-12.3/frameworks/default.nix | 146 --------- .../apple-sdk-12.3/frameworks/fixups.nix | 163 ---------- .../apple-sdk-12.3/frameworks/private.nix | 35 --- .../apple-sdk-12.3/frameworks/public.nix | 209 ------------- .../darwin/apple-sdk-12.3/libSystem.nix | 96 ------ .../darwin/apple-sdk-12.3/libnetwork.nix | 16 - .../darwin/apple-sdk-12.3/libobjc.nix | 22 -- .../darwin/apple-sdk-12.3/libpm.nix | 25 -- .../darwin/apple-sdk-12.3/libs/Xplugin.nix | 30 -- .../darwin/apple-sdk-12.3/libs/default.nix | 10 - .../darwin/apple-sdk-12.3/libs/libDER.nix | 11 - .../darwin/apple-sdk-12.3/libs/sandbox.nix | 13 - .../darwin/apple-sdk-12.3/libs/simd.nix | 11 - .../darwin/apple-sdk-12.3/libs/utmp.nix | 12 - .../darwin/apple-sdk-12.3/libs/xpc.nix | 12 - .../darwin/apple-sdk-12.3/libunwind.nix | 28 -- pkgs/top-level/darwin-packages.nix | 4 +- 21 files changed, 258 insertions(+), 955 deletions(-) delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_Executables.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_macOSNMOS_SDK.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/apple-sdk-releases.json delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/default.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/fixups.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/private.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/public.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libSystem.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libnetwork.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libobjc.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libpm.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libs/Xplugin.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libs/default.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libs/libDER.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libs/sandbox.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libs/simd.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libs/utmp.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libs/xpc.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk-12.3/libunwind.nix diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_Executables.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_Executables.nix deleted file mode 100644 index f3ff413d0cae..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_Executables.nix +++ /dev/null @@ -1,27 +0,0 @@ -{ - stdenvNoCC, - fetchurl, - cpio, - pbzx, - version, -}: - -let - releases = builtins.fromJSON (builtins.readFile ./apple-sdk-releases.json); -in -stdenvNoCC.mkDerivation (finalAttrs: { - pname = "CLTools_Executables"; - inherit version; - - src = fetchurl releases.${version}.${finalAttrs.pname}; - - nativeBuildInputs = [ - cpio - pbzx - ]; - - buildCommand = '' - pbzx $src | cpio -idm - mv Library/Developer/CommandLineTools $out - ''; -}) diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_macOSNMOS_SDK.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_macOSNMOS_SDK.nix deleted file mode 100644 index 7af2c48cc081..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/CLTools_macOSNMOS_SDK.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - lib, - stdenvNoCC, - fetchurl, - cpio, - pbzx, - version, -}: - -let - releases = builtins.fromJSON (builtins.readFile ./apple-sdk-releases.json); -in -stdenvNoCC.mkDerivation (finalAttrs: { - pname = "CLTools_macOSNMOS_SDK"; - inherit version; - - src = fetchurl releases.${version}.${finalAttrs.pname}; - - nativeBuildInputs = [ - cpio - pbzx - ]; - - buildCommand = '' - pbzx $src | cpio -idm - mv Library/Developer/CommandLineTools/SDKs/MacOSX${lib.versions.majorMinor version}.sdk $out - ''; -}) diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/apple-sdk-releases.json b/pkgs/os-specific/darwin/apple-sdk-12.3/apple-sdk-releases.json deleted file mode 100644 index 87e01f0039ce..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/apple-sdk-releases.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "12.3": { - "CLTools_Executables": { - "hash": "sha256-XlxHwCq+rtBF3Yyfdob3UEHN7YKzb7JF84lRmZbB/50=", - "url": "https://swcdn.apple.com/content/downloads/24/42/002-83793-A_74JRE8GVAT/rlnkct919wgc5c0pjq986z5bb9h62uvni2/CLTools_Executables.pkg" - }, - "CLTools_macOSLMOS_SDK": { - "hash": "sha256-mY9YTlyTujV6R89WaNmkJrfOQatXnoSW8gKxnawQz5Q=", - "url": "https://swcdn.apple.com/content/downloads/24/42/002-83793-A_74JRE8GVAT/rlnkct919wgc5c0pjq986z5bb9h62uvni2/CLTools_macOSLMOS_SDK.pkg" - }, - "CLTools_macOSNMOS_SDK": { - "hash": "sha256-Tr9VCeCP5udmh09U/zPQG2c4ky1LXscBwPfgpRy8uds=", - "url": "https://swcdn.apple.com/content/downloads/24/42/002-83793-A_74JRE8GVAT/rlnkct919wgc5c0pjq986z5bb9h62uvni2/CLTools_macOSNMOS_SDK.pkg" - }, - "CLTools_macOS_SDK": { - "hash": "sha256-2xwYLfiYuEdck7/8NY3iqiPKvoG9HAjXt8Ewyp9c0Es=", - "url": "https://swcdn.apple.com/content/downloads/24/42/002-83793-A_74JRE8GVAT/rlnkct919wgc5c0pjq986z5bb9h62uvni2/CLTools_macOS_SDK.pkg" - } - } -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/default.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/default.nix index 85444ec95e61..468465b19277 100644 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk-12.3/default.nix @@ -1,49 +1,266 @@ +# Compatibility stubs for packages that used the old SDK frameworks. +# TODO(@reckenrode) Make these stubs warn after framework usage has been cleaned up in nixpkgs. { lib, + callPackage, newScope, - overrideCC, + overrideSDK, pkgs, stdenv, stdenvNoCC, }: let - version = "12.3"; - - MacOSX-SDK = callPackage ./CLTools_macOSNMOS_SDK.nix { inherit version; }; - callPackage = newScope (pkgs.darwin // packages); - - packages = { - # Make sure we pass our special `callPackage` instead of using packages.callPackage which - # does not have necessary attributes in scope. - frameworks = callPackage ./frameworks { inherit callPackage; }; - libs = callPackage ./libs { inherit callPackage; }; - - CLTools_Executables = callPackage ./CLTools_Executables.nix { inherit version; }; - Libsystem = callPackage ./libSystem.nix { }; - LibsystemCross = callPackage ./libSystem.nix { }; - libunwind = callPackage ./libunwind.nix { }; - libnetwork = callPackage ./libnetwork.nix { }; - libpm = callPackage ./libpm.nix { }; - # Avoid introducing a new objc4 if stdenv already has one, to prevent - # conflicting LLVM modules. - objc4 = stdenv.objc4 or (callPackage ./libobjc.nix { }); - - darwin-stubs = stdenvNoCC.mkDerivation { - pname = "darwin-stubs"; - inherit (MacOSX-SDK) version; - - preferLocalBuild = true; - allowSubstitutes = false; - - buildCommand = '' - mkdir -p "$out" - ln -s ${MacOSX-SDK}/System "$out/System" - ln -s ${MacOSX-SDK}/usr "$out/usr" - ''; - }; - - sdkRoot = pkgs.callPackage ../apple-sdk/sdkRoot.nix { sdkVersion = version; }; - }; + mkStub = callPackage ../apple-sdk/mk-stub.nix { } "12.3"; in -packages +lib.genAttrs [ + "CLTools_Executables" + "Libsystem" + "LibsystemCross" + "darwin-stubs" + "libnetwork" + "libpm" + "libunwind" + "objc4" + "sdkRoot" +] mkStub +// { + frameworks = lib.genAttrs [ + "AGL" + "AVFAudio" + "AVFCapture" + "AVFCore" + "AVFoundation" + "AVKit" + "Accelerate" + "Accessibility" + "Accounts" + "AdServices" + "AdSupport" + "AddressBook" + "AddressBookCore" + "AppKit" + "AppTrackingTransparency" + "AppleScriptKit" + "AppleScriptObjC" + "ApplicationServices" + "AudioToolbox" + "AudioToolboxCore" + "AudioUnit" + "AudioVideoBridging" + "AuthenticationServices" + "AutomaticAssessmentConfiguration" + "Automator" + "BackgroundTasks" + "BusinessChat" + "CFNetwork" + "CHIP" + "CalendarStore" + "CallKit" + "Carbon" + "ClassKit" + "CloudKit" + "Cocoa" + "Collaboration" + "ColorSync" + "Combine" + "Contacts" + "ContactsPersistence" + "ContactsUI" + "CoreAudio" + "CoreAudioKit" + "CoreAudioTypes" + "CoreBluetooth" + "CoreData" + "CoreDisplay" + "CoreFoundation" + "CoreGraphics" + "CoreHaptics" + "CoreImage" + "CoreLocation" + "CoreMIDI" + "CoreMIDIServer" + "CoreML" + "CoreMedia" + "CoreMediaIO" + "CoreMotion" + "CoreServices" + "CoreSpotlight" + "CoreSymbolication" + "CoreTelephony" + "CoreText" + "CoreVideo" + "CoreWLAN" + "CreateML" + "CryptoKit" + "CryptoTokenKit" + "DVDPlayback" + "DataDetection" + "DebugSymbols" + "DeveloperToolsSupport" + "DeviceActivity" + "DeviceCheck" + "DirectoryService" + "DiscRecording" + "DiscRecordingUI" + "DiskArbitration" + "DisplayServices" + "DriverKit" + "EventKit" + "ExceptionHandling" + "ExecutionPolicy" + "ExposureNotification" + "ExternalAccessory" + "FWAUserLib" + "FileProvider" + "FileProviderUI" + "FinderSync" + "ForceFeedback" + "Foundation" + "GLKit" + "GLUT" + "GSS" + "GameCenterFoundation" + "GameCenterUI" + "GameCenterUICore" + "GameController" + "GameKit" + "GameplayKit" + "GroupActivities" + "Hypervisor" + "ICADevices" + "IMServicePlugIn" + "IOBluetooth" + "IOBluetoothUI" + "IOKit" + "IOSurface" + "IOUSBHost" + "IdentityLookup" + "ImageCaptureCore" + "ImageIO" + "InputMethodKit" + "InstallerPlugins" + "InstantMessage" + "Intents" + "IntentsUI" + "JavaNativeFoundation" + "JavaRuntimeSupport" + "JavaScriptCore" + "JavaVM" + "Kerberos" + "Kernel" + "KernelManagement" + "LDAP" + "LatentSemanticMapping" + "LinkPresentation" + "LocalAuthentication" + "LocalAuthenticationEmbeddedUI" + "MLCompute" + "MailKit" + "ManagedSettings" + "MapKit" + "MediaAccessibility" + "MediaLibrary" + "MediaPlayer" + "MediaToolbox" + "Message" + "Metal" + "MetalKit" + "MetalPerformanceShaders" + "MetalPerformanceShadersGraph" + "MetricKit" + "ModelIO" + "MultipeerConnectivity" + "MultitouchSupport" + "MusicKit" + "NaturalLanguage" + "NearbyInteraction" + "NetFS" + "Network" + "NetworkExtension" + "NotificationCenter" + "OSAKit" + "OSLog" + "OpenAL" + "OpenCL" + "OpenDirectory" + "OpenGL" + "PCSC" + "PDFKit" + "PHASE" + "ParavirtualizedGraphics" + "PassKit" + "PassKitCore" + "PencilKit" + "Photos" + "PhotosUI" + "PreferencePanes" + "PushKit" + "QTKit" + "Quartz" + "QuartzCore" + "QuickLook" + "QuickLookThumbnailing" + "QuickLookUI" + "QuickTime" + "RealityFoundation" + "RealityKit" + "ReplayKit" + "Ruby" + "SafariServices" + "SceneKit" + "ScreenCaptureKit" + "ScreenSaver" + "ScreenTime" + "ScriptingBridge" + "Security" + "SecurityFoundation" + "SecurityInterface" + "SensorKit" + "ServiceManagement" + "ShazamKit" + "SignpostMetrics" + "SkyLight" + "Social" + "SoundAnalysis" + "Speech" + "SpriteKit" + "StoreKit" + "SwiftUI" + "SyncServices" + "System" + "SystemConfiguration" + "SystemExtensions" + "TWAIN" + "TabularData" + "Tcl" + "Tk" + "UIFoundation" + "URLFormatting" + "UniformTypeIdentifiers" + "UserNotifications" + "UserNotificationsUI" + "VideoDecodeAcceleration" + "VideoSubscriberAccount" + "VideoToolbox" + "Virtualization" + "Vision" + "WebKit" + "WidgetKit" + "iTunesLibrary" + "vmnet" + ] mkStub; + + libs = lib.genAttrs [ + "Xplugin" + "utmp" + "libDER" + "xpc" + "sandbox" + "simd" + "utmp" + "xpc" + ] mkStub; + + version = "12.3"; +} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/default.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/default.nix deleted file mode 100644 index 8ae0cd649c93..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/default.nix +++ /dev/null @@ -1,146 +0,0 @@ -{ - lib, - stdenvNoCC, - buildPackages, - # macOS things - callPackage, - darwin-stubs, -}: - -let - inherit (darwin-stubs) version; - fixup-frameworks = callPackage ./fixups.nix { }; - private-frameworks = callPackage ./private.nix { }; - public-frameworks = callPackage ./public.nix { }; - - mkDepsRewrites = - deps: - let - mergeRewrites = x: y: { - prefix = lib.mergeAttrs (x.prefix or { }) (y.prefix or { }); - const = lib.mergeAttrs (x.const or { }) (y.const or { }); - }; - - rewriteArgs = - { - prefix ? { }, - const ? { }, - }: - lib.concatLists ( - (lib.mapAttrsToList (from: to: [ - "-p" - "${from}:${to}" - ]) prefix) - ++ (lib.mapAttrsToList (from: to: [ - "-c" - "${from}:${to}" - ]) const) - ); - - rewrites = - depList: - lib.fold mergeRewrites { } ( - map (dep: dep.tbdRewrites) (lib.filter (dep: dep ? tbdRewrites) depList) - ); - in - lib.escapeShellArgs (rewriteArgs (rewrites (lib.attrValues deps))); - - mkFramework = - { - name, - deps, - private ? false, - }: - let - standardFrameworkPath = - name: private: - "/System/Library/${lib.optionalString private "Private"}Frameworks/${name}.framework"; - - self = stdenvNoCC.mkDerivation { - pname = "apple-${lib.optionalString private "private-"}framework-${name}"; - inherit (darwin-stubs) version; - - # because we copy files from the system - preferLocalBuild = true; - - dontUnpack = true; - dontBuild = true; - - disallowedRequisites = [ darwin-stubs ]; - - nativeBuildInputs = [ buildPackages.darwin.rewrite-tbd ]; - - installPhase = '' - mkdir -p $out/Library/Frameworks - - cp -r ${darwin-stubs}${standardFrameworkPath name private} $out/Library/Frameworks - - if [[ -d ${darwin-stubs}/usr/lib/swift/${name}.swiftmodule ]]; then - mkdir -p $out/lib/swift - cp -r -t $out/lib/swift \ - ${darwin-stubs}/usr/lib/swift/${name}.swiftmodule \ - ${darwin-stubs}/usr/lib/swift/libswift${name}.tbd - fi - - # Fix and check tbd re-export references - chmod u+w -R $out - find $out -name '*.tbd' -type f | while IFS=$'\n' read tbd; do - echo "Fixing re-exports in $tbd" - rewrite-tbd \ - -p ${standardFrameworkPath name private}/:$out/Library/Frameworks/${name}.framework/ \ - -p /usr/lib/swift/:$out/lib/swift/ \ - ${mkDepsRewrites deps} \ - -r ${builtins.storeDir} \ - "$tbd" - done - ''; - - propagatedBuildInputs = lib.attrValues deps; - - passthru.tbdRewrites.prefix."${standardFrameworkPath name private}/" = "${self}/Library/Frameworks/${name}.framework/"; - - meta = with lib; { - description = "Apple SDK framework ${name}"; - maintainers = [ ]; - platforms = platforms.darwin; - }; - }; - in - self; - - # Helper functions for creating framework derivations. - framework = - name: deps: - mkFramework { - inherit name deps; - private = false; - }; - - # Helper functions for creating private framework derivations. - privateFramework = - name: deps: - mkFramework { - inherit name deps; - private = true; - }; - - # Merge addToFrameworks into public-frameworks and remove elements of removeFromFrameworks. - deps = - let - inherit (fixup-frameworks) addToFrameworks removeFromFrameworks; - fixupDeps = - name: deps: - lib.pipe deps [ - # Add dependencies from addToFrameworks. - (deps: lib.recursiveUpdate deps (addToFrameworks.${name} or { })) - # Keep dependencies not in removeFromFrameworks. - (lib.filterAttrs (depName: _: !(removeFromFrameworks.${name}.${depName} or false))) - ]; - in - lib.mapAttrs fixupDeps public-frameworks; - - # Create derivations and add private frameworks. - bareFrameworks = - (lib.mapAttrs framework deps) // (lib.mapAttrs privateFramework private-frameworks); -in -bareFrameworks // fixup-frameworks.overrideFrameworks bareFrameworks diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/fixups.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/fixups.nix deleted file mode 100644 index 6068395c4ae2..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/fixups.nix +++ /dev/null @@ -1,163 +0,0 @@ -{ - lib, - # macOS things - frameworks, - libnetwork, - libs, - darwin-stubs, - objc4, -}: - -{ - # Used to add dependencies which are not picked up by gen-frameworks.py. - # Some of these are simply private frameworks the generator does not see. - # Trial and error, building things and adding dependencies when they fail. - addToFrameworks = - let - inherit (libs) libDER; - libobjc = objc4; - in - with frameworks; - { - # Below this comment are entries migrated from before the generator was - # added. If, for a given framework, you are able to reverify the extra - # deps are really necessary on top of the generator deps, move it above - # this comment (and maybe document your findings). - AVFoundation = { - inherit ApplicationServices AVFCapture AVFCore; - }; - Accelerate = { - inherit CoreWLAN IOBluetooth; - }; - AddressBook = { - inherit AddressBookCore ContactsPersistence libobjc; - }; - AppKit = { - inherit AudioToolbox AudioUnit UIFoundation; - }; - AudioToolbox = { - inherit AudioToolboxCore; - }; - AudioUnit = { - inherit Carbon CoreAudio; - }; - Carbon = { - inherit IOKit QuartzCore libobjc; - }; - CoreAudio = { - inherit IOKit; - }; - CoreData = { - inherit CloudKit; - }; - CoreFoundation = { - inherit libobjc; - }; - CoreGraphics = { - inherit SystemConfiguration; - }; - CoreMIDIServer = { - inherit CoreMIDI; - }; - CoreMedia = { - inherit ApplicationServices AudioToolbox AudioUnit; - }; - CoreServices = { - inherit CoreAudio NetFS ServiceManagement; - }; - CoreWLAN = { - inherit SecurityFoundation; - }; - DiscRecording = { - inherit IOKit libobjc; - }; - Foundation = { - inherit SystemConfiguration libobjc; - }; - GameKit = { - inherit - GameCenterFoundation - GameCenterUI - GameCenterUICore - ReplayKit - ; - }; - ICADevices = { - inherit Carbon libobjc; - }; - IOBluetooth = { - inherit CoreBluetooth; - }; - JavaScriptCore = { - inherit libobjc; - }; - Kernel = { - inherit IOKit; - }; - LinkPresentation = { - inherit URLFormatting; - }; - MediaToolbox = { - inherit AudioUnit; - }; - MetricKit = { - inherit SignpostMetrics; - }; - Network = { - inherit libnetwork; - }; - PCSC = { - inherit CoreData; - }; - PassKit = { - inherit PassKitCore; - }; - QTKit = { - inherit - CoreMedia - CoreMediaIO - MediaToolbox - VideoToolbox - ; - }; - Quartz = { - inherit QTKit; - }; - QuartzCore = { - inherit - ApplicationServices - CoreImage - CoreVideo - Metal - OpenCL - libobjc - ; - }; - Security = { - inherit IOKit libDER; - }; - TWAIN = { - inherit Carbon; - }; - VideoDecodeAcceleration = { - inherit CoreVideo; - }; - WebKit = { - inherit ApplicationServices Carbon libobjc; - }; - }; - - # Used to remove dependencies which are picked up by gen-frameworks.py -- used mainly to break - # cyclic dependencies. - removeFromFrameworks = { }; - - # Overrides for framework derivations. - overrideFrameworks = super: { - # This framework doesn't exist in newer SDKs (somewhere around 10.13), but - # there are references to it in nixpkgs. - QuickTime = throw "QuickTime framework not available"; - - # Seems to be appropriate given https://developer.apple.com/forums/thread/666686 - JavaVM = super.JavaNativeFoundation; - }; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/private.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/private.nix deleted file mode 100644 index d58b28fa0271..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/private.nix +++ /dev/null @@ -1,35 +0,0 @@ -{ objc4, frameworks }: - -# generated by hand to avoid exposing all private frameworks -# frameworks here are only the necessary ones used by public frameworks. -{ - AVFCapture = { }; - AVFCore = { }; - AddressBookCore = { - inherit (frameworks) ContactsPersistence; - }; - AudioToolboxCore = { }; - ContactsPersistence = { }; - UIFoundation = { }; - GameCenterFoundation = { }; - GameCenterUI = { }; - GameCenterUICore = { }; - URLFormatting = { }; - SignpostMetrics = { }; - PassKitCore = { }; - SkyLight = { }; - - # Also expose CoreSymbolication; used by `root` package. - CoreSymbolication = { }; - - # Also expose DebugSymbols; used by `llvmPackages_8.lldb` package. - DebugSymbols = { }; - - # Also expose DisplayServices; used by `sketchybar` package. - DisplayServices = { - libobjc = objc4; - }; - - # Also expose MultitouchSupport; used by `chuck` package. - MultitouchSupport = { }; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/public.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/public.nix deleted file mode 100644 index 4488c84bf124..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/frameworks/public.nix +++ /dev/null @@ -1,209 +0,0 @@ -# This file is generated by gen-frameworks.nix. -# Do not edit, put overrides in apple_sdk.nix instead. -{ libs, frameworks }: with libs; with frameworks; -{ - AGL = { inherit Carbon OpenGL; }; - AVFAudio = { inherit AudioToolbox CoreAudioTypes CoreMIDI CoreMedia Foundation; }; - AVFoundation = { inherit AVFAudio CoreAudio CoreFoundation CoreGraphics CoreImage CoreMIDI CoreMedia CoreVideo Foundation IOKit ImageIO MediaToolbox Metal QuartzCore UniformTypeIdentifiers simd; }; - AVKit = { inherit AVFoundation AppKit Cocoa Foundation; }; - Accelerate = { inherit CoreFoundation CoreGraphics CoreVideo Foundation IOKit Metal; }; - Accessibility = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - Accounts = { inherit Foundation; }; - AdServices = { inherit Foundation; }; - AdSupport = { inherit Foundation; }; - AddressBook = { inherit Carbon Cocoa CoreFoundation Foundation; }; - AppKit = { inherit Accessibility ApplicationServices CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal OpenGL QuartzCore; }; - AppTrackingTransparency = { inherit Foundation; }; - AppleScriptKit = {}; - AppleScriptObjC = { inherit Foundation; }; - ApplicationServices = { inherit ColorSync CoreFoundation CoreGraphics CoreServices CoreText ImageIO; }; - AudioToolbox = { inherit Carbon CoreAudio CoreAudioTypes CoreFoundation CoreMIDI Foundation; }; - AudioUnit = { inherit AudioToolbox; }; - AudioVideoBridging = { inherit Foundation IOKit; }; - AuthenticationServices = { inherit AppKit Foundation; }; - AutomaticAssessmentConfiguration = { inherit Foundation; }; - Automator = { inherit AppKit Cocoa Foundation OSAKit; }; - BackgroundTasks = { inherit Foundation; }; - BusinessChat = { inherit Cocoa Foundation; }; - CFNetwork = { inherit CoreFoundation; }; - CHIP = { inherit Foundation Security; }; - CalendarStore = {}; - CallKit = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - Carbon = { inherit ApplicationServices CoreServices Foundation Security; }; - ClassKit = { inherit CoreGraphics Foundation; }; - CloudKit = { inherit CoreFoundation CoreGraphics CoreLocation Foundation IOKit; }; - Cocoa = { inherit AppKit CoreData Foundation; }; - Collaboration = { inherit AppKit CoreServices Foundation; }; - ColorSync = { inherit CoreFoundation; }; - Combine = {}; - Contacts = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - ContactsUI = { inherit AppKit; }; - CoreAudio = { inherit CoreAudioTypes CoreFoundation; }; - CoreAudioKit = { inherit AppKit AudioUnit Cocoa Foundation; }; - CoreAudioTypes = { inherit CoreFoundation; }; - CoreBluetooth = { inherit Foundation; }; - CoreData = { inherit Combine CoreFoundation CoreGraphics Foundation IOKit; }; - CoreDisplay = {}; - CoreFoundation = {}; - CoreGraphics = { inherit CoreFoundation IOKit; }; - CoreHaptics = { inherit Foundation; }; - CoreImage = { inherit ApplicationServices CoreFoundation CoreGraphics CoreVideo Foundation IOKit IOSurface ImageIO Metal OpenGL; }; - CoreLocation = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - CoreMIDI = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - CoreMIDIServer = {}; - CoreML = { inherit CoreFoundation CoreGraphics CoreVideo Foundation IOKit ImageIO Metal; }; - CoreMedia = { inherit CoreAudio CoreAudioTypes CoreFoundation CoreGraphics CoreVideo Foundation IOKit Metal; }; - CoreMediaIO = { inherit CoreAudio CoreFoundation CoreGraphics CoreMedia Foundation IOKit Metal; }; - CoreMotion = { inherit Foundation; }; - CoreServices = { inherit CFNetwork CoreFoundation DiskArbitration Security; }; - CoreSpotlight = { inherit Foundation UniformTypeIdentifiers; }; - CoreTelephony = {}; - CoreText = { inherit CoreFoundation CoreGraphics; }; - CoreVideo = { inherit ApplicationServices CoreFoundation CoreGraphics IOSurface Metal OpenGL; }; - CoreWLAN = { inherit Foundation IOKit; }; - CreateML = { inherit AVFoundation Combine CoreAudio CoreFoundation CoreGraphics CoreImage CoreML CoreMedia CoreServices CoreVideo Foundation IOKit ImageIO Metal MetalPerformanceShaders NaturalLanguage TabularData VideoToolbox Vision simd; }; - CryptoKit = { inherit CoreFoundation CoreGraphics Foundation IOKit LocalAuthentication Security; }; - CryptoTokenKit = { inherit CoreFoundation CoreGraphics Foundation IOKit Security; }; - DVDPlayback = { inherit ApplicationServices CoreFoundation Security; }; - DataDetection = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - DeveloperToolsSupport = {}; - DeviceActivity = { inherit Foundation ManagedSettings; }; - DeviceCheck = { inherit Foundation; }; - DirectoryService = { inherit CoreFoundation; }; - DiscRecording = { inherit CoreServices Foundation; }; - DiscRecordingUI = { inherit Carbon Cocoa DiscRecording; }; - DiskArbitration = { inherit CoreFoundation IOKit; }; - DriverKit = {}; - EventKit = { inherit CoreGraphics CoreLocation Foundation; }; - ExceptionHandling = { inherit Foundation; }; - ExecutionPolicy = { inherit Foundation; }; - ExposureNotification = { inherit Foundation; }; - ExternalAccessory = { inherit Foundation; }; - FWAUserLib = { inherit IOKit; }; - FileProvider = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - FileProviderUI = { inherit AppKit FileProvider Foundation; }; - FinderSync = { inherit AppKit Foundation; }; - ForceFeedback = { inherit CoreFoundation IOKit; }; - Foundation = { inherit Combine CoreFoundation CoreGraphics CoreServices IOKit Security; }; - GLKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal ModelIO OpenGL QuartzCore simd; }; - GLUT = { inherit OpenGL; }; - GSS = { inherit CoreFoundation; }; - GameController = { inherit AppKit Foundation IOKit; }; - GameKit = { inherit AppKit Cocoa Contacts CoreGraphics Foundation GameController GameplayKit Metal MetalKit ModelIO SceneKit SpriteKit simd; }; - GameplayKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation GLKit IOKit Metal ModelIO QuartzCore SceneKit SpriteKit simd; }; - GroupActivities = { inherit AVFoundation Combine CoreGraphics CryptoKit Foundation Network UniformTypeIdentifiers; }; - Hypervisor = {}; - ICADevices = { inherit CoreFoundation CoreGraphics CoreServices IOBluetooth; }; - IMServicePlugIn = { inherit Foundation; }; - IOBluetooth = { inherit CoreAudio CoreFoundation CoreServices Foundation IOKit; }; - IOBluetoothUI = { inherit Cocoa IOBluetooth; }; - IOKit = { inherit CoreFoundation; }; - IOSurface = { inherit CoreFoundation Foundation IOKit; }; - IOUSBHost = { inherit Foundation IOKit; }; - IdentityLookup = { inherit Foundation; }; - ImageCaptureCore = { inherit Cocoa CoreGraphics Foundation; }; - ImageIO = { inherit CoreFoundation CoreGraphics; }; - InputMethodKit = { inherit Carbon Cocoa Foundation; }; - InstallerPlugins = {}; - InstantMessage = {}; - Intents = { inherit CoreFoundation CoreGraphics CoreLocation Foundation IOKit UserNotifications; }; - IntentsUI = { inherit AppKit; }; - JavaNativeFoundation = { inherit Foundation; }; - JavaRuntimeSupport = { inherit ApplicationServices Cocoa Foundation QuartzCore; }; - JavaScriptCore = { inherit CoreFoundation CoreGraphics Foundation; }; - Kerberos = {}; - Kernel = {}; - KernelManagement = { inherit Foundation; }; - LDAP = {}; - LatentSemanticMapping = { inherit Carbon CoreFoundation; }; - LinkPresentation = { inherit AppKit Foundation; }; - LocalAuthentication = { inherit Foundation; }; - LocalAuthenticationEmbeddedUI = { inherit AppKit Foundation LocalAuthentication; }; - MLCompute = { inherit CoreFoundation CoreGraphics Foundation IOKit Metal; }; - MailKit = { inherit AppKit Foundation; }; - ManagedSettings = { inherit Combine Foundation; }; - MapKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage CoreLocation Foundation IOKit Metal QuartzCore; }; - MediaAccessibility = { inherit CoreFoundation CoreGraphics CoreText; }; - MediaLibrary = { inherit Foundation; }; - MediaPlayer = { inherit AVFoundation CoreGraphics Foundation; }; - MediaToolbox = { inherit AudioToolbox CoreFoundation CoreMedia; }; - Message = {}; - Metal = { inherit CoreFoundation CoreGraphics Foundation IOKit IOSurface; }; - MetalKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal ModelIO QuartzCore simd; }; - MetalPerformanceShaders = { inherit CoreGraphics Foundation Metal simd; }; - MetalPerformanceShadersGraph = { inherit Foundation MetalPerformanceShaders; }; - MetricKit = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - ModelIO = { inherit CoreFoundation CoreGraphics Foundation IOKit simd; }; - MultipeerConnectivity = { inherit Cocoa Foundation; }; - MusicKit = { inherit Combine CoreGraphics Foundation; }; - NaturalLanguage = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - NearbyInteraction = { inherit CoreFoundation CoreGraphics Foundation IOKit simd; }; - NetFS = { inherit CoreFoundation; }; - Network = { inherit CoreFoundation Foundation Security; }; - NetworkExtension = { inherit Foundation Network Security; }; - NotificationCenter = { inherit AppKit Foundation; }; - OSAKit = { inherit Carbon Cocoa; }; - OSLog = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - OpenAL = {}; - OpenCL = { inherit OpenGL; }; - OpenDirectory = { inherit CoreFoundation Foundation; }; - OpenGL = {}; - PCSC = {}; - PDFKit = { inherit AppKit Cocoa; }; - PHASE = { inherit AVFAudio AVFoundation CoreAudioTypes Foundation ModelIO simd; }; - ParavirtualizedGraphics = { inherit AppKit CoreVideo Foundation IOSurface Metal; }; - PassKit = { inherit AppKit Contacts CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal QuartzCore; }; - PencilKit = { inherit AppKit Cocoa CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal QuartzCore; }; - Photos = { inherit AVFoundation CoreAudio CoreFoundation CoreGraphics CoreImage CoreLocation CoreMIDI CoreMedia Foundation IOKit ImageIO Metal QuartzCore UniformTypeIdentifiers simd; }; - PhotosUI = { inherit AppKit Foundation MapKit Photos; }; - PreferencePanes = { inherit Cocoa; }; - PushKit = { inherit Foundation; }; - QTKit = {}; - Quartz = { inherit AppKit ApplicationServices Cocoa Foundation ImageCaptureCore OpenGL PDFKit QuartzCore QuickLookUI; }; - QuartzCore = { inherit CoreFoundation CoreGraphics CoreImage CoreVideo Foundation IOKit Metal OpenGL; }; - QuickLook = { inherit ApplicationServices CoreFoundation; }; - QuickLookThumbnailing = { inherit CoreGraphics Foundation UniformTypeIdentifiers; }; - QuickLookUI = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal PDFKit QuartzCore QuickLook UniformTypeIdentifiers; }; - RealityFoundation = { inherit AVFAudio AVFoundation AppKit AudioToolbox Combine CoreAudio CoreFoundation CoreGraphics CoreMIDI CoreMedia CoreMotion CoreText CoreVideo Foundation IOKit Metal QuartzCore simd; }; - RealityKit = { inherit AppKit Combine CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal MultipeerConnectivity QuartzCore RealityFoundation simd; }; - ReplayKit = { inherit AVFoundation AppKit Foundation; }; - Ruby = {}; - SafariServices = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal QuartzCore; }; - SceneKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation GLKit IOKit Metal ModelIO QuartzCore simd; }; - ScreenCaptureKit = { inherit AppKit CoreGraphics CoreMedia Foundation; }; - ScreenSaver = { inherit AppKit Foundation; }; - ScreenTime = { inherit AppKit Foundation; }; - ScriptingBridge = { inherit ApplicationServices CoreServices Foundation; }; - Security = { inherit CoreFoundation; }; - SecurityFoundation = { inherit Foundation Security; }; - SecurityInterface = { inherit AppKit Cocoa Security SecurityFoundation; }; - SensorKit = { inherit CoreFoundation CoreLocation Foundation; }; - ServiceManagement = { inherit CoreFoundation Security; }; - ShazamKit = { inherit AVFAudio CoreAudio CoreFoundation CoreGraphics CoreMIDI CoreMedia Foundation IOKit Metal MusicKit; }; - Social = { inherit AppKit Foundation; }; - SoundAnalysis = { inherit AVFoundation CoreAudio CoreFoundation CoreGraphics CoreImage CoreMIDI CoreML CoreMedia Foundation IOKit Metal QuartzCore UniformTypeIdentifiers simd; }; - Speech = { inherit AVFoundation CoreAudio CoreFoundation CoreGraphics CoreImage CoreMIDI CoreMedia Foundation IOKit Metal QuartzCore UniformTypeIdentifiers simd; }; - SpriteKit = { inherit AppKit Cocoa CoreData CoreFoundation CoreGraphics CoreImage Foundation GLKit IOKit Metal ModelIO QuartzCore simd; }; - StoreKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage CryptoKit Foundation IOKit Metal QuartzCore Security; }; - SwiftUI = { inherit Accessibility AppKit Combine CoreData CoreFoundation CoreGraphics CoreImage DeveloperToolsSupport Foundation IOKit Metal QuartzCore UniformTypeIdentifiers; }; - SyncServices = {}; - System = {}; - SystemConfiguration = { inherit CoreFoundation Security; }; - SystemExtensions = { inherit Foundation; }; - TWAIN = {}; - TabularData = { inherit Combine Foundation; }; - Tcl = {}; - Tk = {}; - UniformTypeIdentifiers = { inherit CoreFoundation CoreGraphics Foundation IOKit; }; - UserNotifications = { inherit Foundation; }; - UserNotificationsUI = { inherit AppKit; }; - VideoDecodeAcceleration = {}; - VideoSubscriberAccount = { inherit Foundation; }; - VideoToolbox = { inherit CoreFoundation CoreGraphics CoreMedia CoreVideo; }; - Virtualization = { inherit AppKit Cocoa CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit Metal QuartzCore; }; - Vision = { inherit CoreAudio CoreFoundation CoreGraphics CoreML CoreMedia CoreVideo Foundation IOKit ImageIO Metal simd; }; - WebKit = { inherit AppKit CoreData CoreFoundation CoreGraphics CoreImage Foundation IOKit JavaScriptCore Metal QuartzCore; }; - WidgetKit = { inherit Combine CoreFoundation CoreGraphics Foundation IOKit Intents SwiftUI UniformTypeIdentifiers; }; - iTunesLibrary = { inherit Foundation; }; - vmnet = {}; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libSystem.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libSystem.nix deleted file mode 100644 index 5d57038a4657..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libSystem.nix +++ /dev/null @@ -1,96 +0,0 @@ -{ - stdenvNoCC, - buildPackages, - darwin-stubs, -}: - -stdenvNoCC.mkDerivation { - pname = "libSystem"; - inherit (darwin-stubs) version; - - nativeBuildInputs = [ buildPackages.darwin.rewrite-tbd ]; - - csu = [ - "bundle1.o" - "crt0.o" - "crt1.10.5.o" - "crt1.10.6.o" - "crt1.o" - "dylib1.10.5.o" - "dylib1.o" - "gcrt1.o" - "lazydylib1.o" - ]; - - buildCommand = - '' - mkdir -p $out/{include,lib/swift} - '' - # Copy each directory in ${darwin-stubs}/usr/include into $out/include - + '' - for dir in $(ls -d ${darwin-stubs}/usr/include/*/); do - cp -dr $dir $out/include - done - '' - # Copy each header and modulemap file in ${darwin-stubs}/usr/include into $out/include - + '' - cp -d \ - ${darwin-stubs}/usr/include/*.h \ - ${darwin-stubs}/usr/include/*.modulemap \ - $out/include - '' - # Remove curses.h, ncurses.h, ncurses_dll.h, and unctrl.h which conflict with ncurses. - # Then, remove the module map for ncurses. - # NOTE: The sed expression expects the module map to use consistent indentation across - # releases. If this changes, the sed expression will need to be updated. - # - # For example, right now we assume that there is one leading space before the - # "explicit" keyword and that the closing brace is on its own line (also with one - # leading space). - + '' - rm $out/include/{curses,ncurses,ncurses_dll,unctrl}.h - sed -i -e '/^ explicit module ncurses {/,/^ }$/d' $out/include/module.modulemap - '' - + '' - rm $out/include/tk*.h $out/include/tcl*.h - - cp -dr \ - ${darwin-stubs}/usr/lib/libSystem.* \ - ${darwin-stubs}/usr/lib/system \ - $out/lib - - # Extra libraries - for name in c dbm dl info m mx poll proc pthread rpcsvc util gcc_s.1 resolv; do - cp -d \ - ${darwin-stubs}/usr/lib/lib$name.tbd \ - ${darwin-stubs}/usr/lib/lib$name.*.tbd \ - $out/lib - done - - for name in os Dispatch; do - cp -dr \ - ${darwin-stubs}/usr/lib/swift/$name.swiftmodule \ - ${darwin-stubs}/usr/lib/swift/libswift$name.tbd \ - $out/lib/swift - done - - for f in $csu; do - from=${darwin-stubs}/usr/lib/$f - if [ -e "$from" ]; then - cp -d $from $out/lib - else - echo "Csu file '$from' doesn't exist: skipping" - fi - done - - chmod u+w -R $out/lib - find $out -name '*.tbd' -type f | while read tbd; do - rewrite-tbd \ - -c /usr/lib/libsystem.dylib:$out/lib/libsystem.dylib \ - -p /usr/lib/system/:$out/lib/system/ \ - -p /usr/lib/swift/:$out/lib/swift/ \ - -r ${builtins.storeDir} \ - "$tbd" - done - ''; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libnetwork.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libnetwork.nix deleted file mode 100644 index e7bae2fc77a0..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libnetwork.nix +++ /dev/null @@ -1,16 +0,0 @@ -{ stdenvNoCC, darwin-stubs }: - -let - self = stdenvNoCC.mkDerivation { - pname = "libnetwork"; - inherit (darwin-stubs) version; - - buildCommand = '' - mkdir -p $out/lib - cp ${darwin-stubs}/usr/lib/libnetwork* $out/lib - ''; - - passthru.tbdRewrites.const."/usr/lib/libnetwork.dylib" = "${self}/lib/libnetwork.dylib"; - }; -in -self diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libobjc.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libobjc.nix deleted file mode 100644 index 14d7e92c8a54..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libobjc.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ stdenvNoCC, darwin-stubs }: - -let - self = stdenvNoCC.mkDerivation { - pname = "libobjc"; - inherit (darwin-stubs) version; - - buildCommand = '' - mkdir -p $out/{include,lib/swift} - cp -r ${darwin-stubs}/usr/include/objc $out/include - cp ${darwin-stubs}/usr/lib/libobjc* $out/lib - cp -r ${darwin-stubs}/usr/lib/swift/ObjectiveC.swiftmodule $out/lib/swift - cp ${darwin-stubs}/usr/lib/swift/libswiftObjectiveC.tbd $out/lib/swift - ''; - - passthru.tbdRewrites = { - const."/usr/lib/libobjc.A.dylib" = "${self}/lib/libobjc.A.dylib"; - const."/usr/lib/swift/libswiftObjectiveC.dylib" = "${self}/lib/swift/libswiftObjectiveC.dylib"; - }; - }; -in -self diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libpm.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libpm.nix deleted file mode 100644 index 110b9a1ab478..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libpm.nix +++ /dev/null @@ -1,25 +0,0 @@ -{ - stdenvNoCC, - buildPackages, - darwin-stubs, -}: - -stdenvNoCC.mkDerivation { - pname = "libpm"; - inherit (darwin-stubs) version; - - dontUnpack = true; - dontBuild = true; - - nativeBuildInputs = [ buildPackages.darwin.checkReexportsHook ]; - - installPhase = '' - mkdir -p $out/lib - cp ${darwin-stubs}/usr/lib/libpm* $out/lib - ''; - - passthru.tbdRewrites = { - const."/usr/lib/libpmenergy.dylib" = "${placeholder "out"}/lib/libpmenergy.dylib"; - const."/usr/lib/libpmsample.dylib" = "${placeholder "out"}/lib/libpmsample.dylib"; - }; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/Xplugin.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libs/Xplugin.nix deleted file mode 100644 index 6e125c001183..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/Xplugin.nix +++ /dev/null @@ -1,30 +0,0 @@ -{ - frameworks, - darwin-stubs, - stdenvNoCC, -}: - -stdenvNoCC.mkDerivation { - pname = "apple-lib-Xplugin"; - inherit (darwin-stubs) version; - - dontUnpack = true; - dontBuild = true; - - propagatedBuildInputs = with frameworks; [ - OpenGL - ApplicationServices - Carbon - IOKit - CoreGraphics - CoreServices - CoreText - ]; - - installPhase = '' - mkdir -p $out/include $out/lib - cp "${darwin-stubs}/include/Xplugin.h" $out/include/Xplugin.h - cp ${darwin-stubs}/usr/lib/libXplugin.1.tbd $out/lib - ln -s libXplugin.1.tbd $out/lib/libXplugin.tbd - ''; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/default.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libs/default.nix deleted file mode 100644 index 87a36ba32b62..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/default.nix +++ /dev/null @@ -1,10 +0,0 @@ -{ callPackage }: - -{ - libDER = callPackage ./libDER.nix { }; - sandbox = callPackage ./sandbox.nix { }; - simd = callPackage ./simd.nix { }; - utmp = callPackage ./utmp.nix { }; - xpc = callPackage ./xpc.nix { }; - Xplugin = callPackage ./Xplugin.nix { }; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/libDER.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libs/libDER.nix deleted file mode 100644 index 4aa8e2bd9550..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/libDER.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ darwin-stubs, stdenvNoCC }: - -stdenvNoCC.mkDerivation { - pname = "apple-lib-libDER"; - inherit (darwin-stubs) version; - - buildCommand = '' - mkdir -p $out/include - cp -r ${darwin-stubs}/usr/include/libDER $out/include - ''; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/sandbox.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libs/sandbox.nix deleted file mode 100644 index f4e9955a0b9b..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/sandbox.nix +++ /dev/null @@ -1,13 +0,0 @@ -{ darwin-stubs, stdenvNoCC }: - -stdenvNoCC.mkDerivation { - pname = "apple-lib-sandbox"; - inherit (darwin-stubs) version; - - buildCommand = '' - mkdir -p $out/include $out/lib - cp "${darwin-stubs}/usr/include/sandbox.h" $out/include/sandbox.h - cp "${darwin-stubs}/usr/lib/libsandbox.1.tbd" $out/lib - ln -s libsandbox.1.tbd $out/lib/libsandbox.tbd - ''; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/simd.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libs/simd.nix deleted file mode 100644 index 45226a5bec59..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/simd.nix +++ /dev/null @@ -1,11 +0,0 @@ -{ darwin-stubs, stdenvNoCC }: - -stdenvNoCC.mkDerivation { - pname = "apple-lib-simd"; - inherit (darwin-stubs) version; - - buildCommand = '' - mkdir -p $out/include - cp -r ${darwin-stubs}/usr/include/simd $out/include - ''; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/utmp.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libs/utmp.nix deleted file mode 100644 index bc85b9be35b5..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/utmp.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ darwin-stubs, stdenvNoCC }: - -stdenvNoCC.mkDerivation { - pname = "apple-lib-utmp"; - inherit (darwin-stubs) version; - - buildCommand = '' - mkdir -p $out/include - cp "${darwin-stubs}/include/utmp.h" $out/include - cp "${darwin-stubs}/include/utmpx.h" $out/include - ''; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/xpc.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libs/xpc.nix deleted file mode 100644 index 8c9848daf9ca..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libs/xpc.nix +++ /dev/null @@ -1,12 +0,0 @@ -{ darwin-stubs, stdenvNoCC }: - -stdenvNoCC.mkDerivation { - pname = "apple-lib-xpc"; - inherit (darwin-stubs) version; - - buildCommand = '' - mkdir -p $out/include - cp -r "${darwin-stubs}/usr/include/xpc" $out/include/xpc - cp "${darwin-stubs}/usr/include/launch.h" $out/include/launch.h - ''; -} diff --git a/pkgs/os-specific/darwin/apple-sdk-12.3/libunwind.nix b/pkgs/os-specific/darwin/apple-sdk-12.3/libunwind.nix deleted file mode 100644 index c1846a9bf92f..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk-12.3/libunwind.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ - stdenvNoCC, - buildPackages, - darwin-stubs, -}: - -stdenvNoCC.mkDerivation { - pname = "libunwind"; - inherit (darwin-stubs) version; - - dontUnpack = true; - dontBuild = true; - - nativeBuildInputs = [ buildPackages.darwin.checkReexportsHook ]; - - installPhase = '' - mkdir -p $out/include/mach-o - - cp \ - ${darwin-stubs}/usr/include/libunwind.h \ - ${darwin-stubs}/usr/include/unwind.h \ - $out/include - - cp \ - ${darwin-stubs}/usr/include/mach-o/compact_unwind_encoding.h \ - $out/include/mach-o - ''; -} diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index b09461150576..823825e10c7d 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -93,14 +93,14 @@ makeScopeWithSplicing' { }; stubs = { - inherit apple_sdk_11_0; + inherit apple_sdk_11_0 apple_sdk_12_3; } // lib.genAttrs [ ] (mkStub apple_sdk.version); in impure-cmds // appleSourcePackages // chooseLibs // stubs // { - inherit apple_sdk apple_sdk_10_12 apple_sdk_12_3; + inherit apple_sdk apple_sdk_10_12; stdenvNoCF = stdenv.override { extraBuildInputs = []; From 0a3c487571ac6ad4ceef83562cbb15c3c1c7a6bd Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 25 Sep 2024 22:16:56 -0400 Subject: [PATCH 0260/1574] darwin.apple_sdk: convert frameworks and libs to stubs --- .../darwin/apple-sdk/cf-setup-hook.sh | 9 - pkgs/os-specific/darwin/apple-sdk/default.nix | 602 ++++++++---------- .../darwin/apple-sdk/frameworks.nix | 130 ---- .../darwin/apple-sdk/impure-deps.nix | 256 -------- .../private-frameworks-setup-hook.sh | 8 - pkgs/os-specific/darwin/apple-sdk/sdkRoot.nix | 68 -- .../darwin/apple-sdk/security-setup-hook.sh | 10 - pkgs/top-level/darwin-packages.nix | 10 +- 8 files changed, 259 insertions(+), 834 deletions(-) delete mode 100644 pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh delete mode 100644 pkgs/os-specific/darwin/apple-sdk/frameworks.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk/impure-deps.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk/private-frameworks-setup-hook.sh delete mode 100644 pkgs/os-specific/darwin/apple-sdk/sdkRoot.nix delete mode 100644 pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh diff --git a/pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh b/pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh deleted file mode 100644 index 5d0f58f48b48..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk/cf-setup-hook.sh +++ /dev/null @@ -1,9 +0,0 @@ -linkSystemCoreFoundationFramework() { - NIX_CFLAGS_COMPILE="-F@out@/Library/Frameworks${NIX_CFLAGS_COMPILE:+ }${NIX_CFLAGS_COMPILE-}" - # gross! many symbols (such as _OBJC_CLASS_$_NSArray) are defined in system CF, but not - # in the opensource release - # if the package needs private headers, we assume they also want to link with system CF - NIX_LDFLAGS+=" @out@/Library/Frameworks/CoreFoundation.framework/CoreFoundation.tbd" -} - -preConfigureHooks+=(linkSystemCoreFoundationFramework) diff --git a/pkgs/os-specific/darwin/apple-sdk/default.nix b/pkgs/os-specific/darwin/apple-sdk/default.nix index 1cd5afe19301..388de3730380 100644 --- a/pkgs/os-specific/darwin/apple-sdk/default.nix +++ b/pkgs/os-specific/darwin/apple-sdk/default.nix @@ -1,360 +1,272 @@ -{ stdenv, stdenvNoCC, fetchurl, cpio, pbzx, pkgs, lib, darwin-stubs, print-reexports }: +# Compatibility stubs for packages that used the old SDK frameworks. +# TODO(@reckenrode) Make these stubs warn after framework usage has been cleaned up in nixpkgs. +{ lib, callPackage }: let - # sadly needs to be exported because security_tool needs it - sdk = stdenv.mkDerivation rec { - pname = "MacOS_SDK"; - version = "10.12"; + mkStub = callPackage ./mk-stub.nix { } "10.12"; - # This URL comes from https://swscan.apple.com/content/catalogs/others/index-10.12.merged-1.sucatalog, which we found by: - # 1. Google: site:swscan.apple.com and look for a name that seems appropriate for your version - # 2. In the resulting file, search for a file called DevSDK ending in .pkg - # 3. ??? - # 4. Profit - src = fetchurl { - url = "http://swcdn.apple.com/content/downloads/33/36/041-90419-A_7JJ4H9ZHO2/xs88ob5wjz6riz7g6764twblnvksusg4ps/DevSDK_OSX1012.pkg"; - sha256 = "13xq34sb7383b37hwy076gnhf96prpk1b4087p87xnwswxbrisih"; - }; - - nativeBuildInputs = [ cpio pbzx ]; - - outputs = [ "out" "dev" "man" ]; - - unpackPhase = '' - pbzx $src | cpio -idm - ''; - - sourceRoot = "."; - - installPhase = '' - mkdir -p $out - - cp -R System/Library $out - cp -R usr/* $out - - pushd $out/lib - cp ${darwin-stubs}/usr/lib/libcups*.tbd . - ln -s libcups.2.tbd libcups.tbd - ln -s libcupscgi.1.tbd libcupscgi.tbd - ln -s libcupsimage.2.tbd libcupsimage.tbd - ln -s libcupsmime.1.tbd libcupsmime.tbd - ln -s libcupsppdc.1.tbd libcupsppdc.tbd - popd - ''; - - meta = with lib; { - description = "Apple SDK ${version}"; - maintainers = with maintainers; [ copumpkin ]; - platforms = platforms.darwin; - }; - }; - - mkFrameworkSubs = name: deps: - let - deps' = deps // { "${name}" = placeholder "out"; }; - substArgs = lib.concatMap (x: [ "--subst-var-by" x deps'."${x}" ]) (lib.attrNames deps'); - in lib.escapeShellArgs substArgs; - - framework = name: deps: stdenv.mkDerivation { - name = "apple-framework-${name}"; - - dontUnpack = true; - - # because we copy files from the system - preferLocalBuild = true; - - disallowedRequisites = [ sdk ]; - - nativeBuildInputs = [ print-reexports ]; - - extraTBDFiles = []; - - installPhase = '' - linkFramework() { - local path="$1" - local nested_path="$1" - if [ "$path" == "JavaNativeFoundation.framework" ]; then - local nested_path="JavaVM.framework/Versions/A/Frameworks/JavaNativeFoundation.framework" - fi - if [ "$path" == "JavaRuntimeSupport.framework" ]; then - local nested_path="JavaVM.framework/Versions/A/Frameworks/JavaRuntimeSupport.framework" - fi - local name="$(basename "$path" .framework)" - local current="$(readlink "/System/Library/Frameworks/$nested_path/Versions/Current")" - if [ -z "$current" ]; then - current=A - fi - - local dest="$out/Library/Frameworks/$path" - - mkdir -p "$dest/Versions/$current" - pushd "$dest/Versions/$current" >/dev/null - - if [ -d "${sdk.out}/Library/Frameworks/$nested_path/Versions/$current/Headers" ]; then - cp -R "${sdk.out}/Library/Frameworks/$nested_path/Versions/$current/Headers" . - elif [ -d "${sdk.out}/Library/Frameworks/$name.framework/Versions/$current/Headers" ]; then - current="$(readlink "/System/Library/Frameworks/$name.framework/Versions/Current")" - cp -R "${sdk.out}/Library/Frameworks/$name.framework/Versions/$current/Headers" . - fi - - local tbd_source=${darwin-stubs}/System/Library/Frameworks/$nested_path/Versions/$current - if [ "${name}" != "Kernel" ]; then - # The Kernel.framework has headers but no actual library component. - cp -v $tbd_source/*.tbd . - fi - - if [ -d "$tbd_source/Libraries" ]; then - mkdir Libraries - cp -v $tbd_source/Libraries/*.tbd Libraries/ - fi - - ln -s -L "/System/Library/Frameworks/$nested_path/Versions/$current/Resources" - - if [ -f "/System/Library/Frameworks/$nested_path/module.map" ]; then - ln -s "/System/Library/Frameworks/$nested_path/module.map" - fi - - pushd "${sdk.out}/Library/Frameworks/$nested_path/Versions/$current" >/dev/null - local children=$(echo Frameworks/*.framework) - popd >/dev/null - - for child in $children; do - childpath="$path/Versions/$current/$child" - linkFramework "$childpath" - done - - pushd ../.. >/dev/null - ln -s "$current" Versions/Current - ln -s Versions/Current/* . - popd >/dev/null - - popd >/dev/null - } - - linkFramework "${name}.framework" - - # linkFramework is recursive, the rest of the processing is not. - - local tbd_source=${darwin-stubs}/System/Library/Frameworks/${name}.framework - for tbd in $extraTBDFiles; do - local tbd_dest_dir=$out/Library/Frameworks/${name}.framework/$(dirname "$tbd") - mkdir -p "$tbd_dest_dir" - cp -v "$tbd_source/$tbd" "$tbd_dest_dir" - done - - # Fix and check tbd re-export references - find $out -name '*.tbd' | while read tbd; do - echo "Fixing re-exports in $tbd" - substituteInPlace "$tbd" ${mkFrameworkSubs name deps} - - echo "Checking re-exports in $tbd" - print-reexports "$tbd" | while read target; do - local expected="''${target%.dylib}.tbd" - if ! [ -e "$expected" ]; then - echo -e "Re-export missing:\n\t$target\n\t(expected $expected)" - echo -e "While processing\n\t$tbd" - exit 1 - else - echo "Re-exported target $target ok" - fi - done - done - ''; - - propagatedBuildInputs = builtins.attrValues deps; - - meta = with lib; { - description = "Apple SDK framework ${name}"; - maintainers = with maintainers; [ copumpkin ]; - platforms = platforms.darwin; - }; - }; - - tbdOnlyFramework = name: { private ? true }: stdenv.mkDerivation { - name = "apple-framework-${name}"; - dontUnpack = true; - installPhase = '' - mkdir -p $out/Library/Frameworks/ - cp -r ${darwin-stubs}/System/Library/${lib.optionalString private "Private"}Frameworks/${name}.framework \ - $out/Library/Frameworks - - cd $out/Library/Frameworks/${name}.framework - - versions=(./Versions/*) - if [ "''${#versions[@]}" != 1 ]; then - echo "Unable to determine current version of framework ${name}" - exit 1 - fi - current=$(basename ''${versions[0]}) - - chmod u+w -R . - ln -s "$current" Versions/Current - ln -s Versions/Current/* . - - # NOTE there's no re-export checking here, this is probably wrong - ''; - }; -in rec { - libs = { - xpc = stdenv.mkDerivation { - name = "apple-lib-xpc"; - dontUnpack = true; - - installPhase = '' - mkdir -p $out/include - pushd $out/include >/dev/null - cp -r "${lib.getDev sdk}/include/xpc" $out/include/xpc - cp "${lib.getDev sdk}/include/launch.h" $out/include/launch.h - popd >/dev/null - ''; - }; - - Xplugin = stdenv.mkDerivation { - name = "apple-lib-Xplugin"; - dontUnpack = true; - - # Not enough - __propagatedImpureHostDeps = [ "/usr/lib/libXplugin.1.dylib" ]; - - propagatedBuildInputs = with frameworks; [ - OpenGL ApplicationServices Carbon IOKit CoreGraphics CoreServices CoreText - ]; - - installPhase = '' - mkdir -p $out/include $out/lib - ln -s "${lib.getDev sdk}/include/Xplugin.h" $out/include/Xplugin.h - cp ${darwin-stubs}/usr/lib/libXplugin.1.tbd $out/lib - ln -s libXplugin.1.tbd $out/lib/libXplugin.tbd - ''; - }; - - utmp = stdenv.mkDerivation { - name = "apple-lib-utmp"; - dontUnpack = true; - - installPhase = '' - mkdir -p $out/include - pushd $out/include >/dev/null - ln -s "${lib.getDev sdk}/include/utmp.h" - ln -s "${lib.getDev sdk}/include/utmpx.h" - popd >/dev/null - ''; - }; - - sandbox = stdenv.mkDerivation { - name = "apple-lib-sandbox"; - dontUnpack = true; - - installPhase = '' - mkdir -p $out/include $out/lib - ln -s "${lib.getDev sdk}/include/sandbox.h" $out/include/sandbox.h - cp "${darwin-stubs}/usr/lib/libsandbox.1.tbd" $out/lib - ln -s libsandbox.1.tbd $out/lib/libsandbox.tbd - ''; - }; - - simd = stdenvNoCC.mkDerivation { - name = "apple-lib-simd"; - - preferLocalBuild = true; - allowSubstitutes = false; - - buildCommand = "echo 'simd library not available in the 10.12 SDK'; exit 1"; - }; - }; - - overrides = super: { - AppKit = lib.overrideDerivation super.AppKit (drv: { - __propagatedImpureHostDeps = drv.__propagatedImpureHostDeps or [] ++ [ - "/System/Library/PrivateFrameworks/" - ]; - }); - - Carbon = lib.overrideDerivation super.Carbon (drv: { - extraTBDFiles = [ "Versions/A/Frameworks/HTMLRendering.framework/Versions/A/HTMLRendering.tbd" ]; - }); - - CoreFoundation = lib.overrideDerivation super.CoreFoundation (drv: { - setupHook = ./cf-setup-hook.sh; - }); - - CoreMedia = lib.overrideDerivation super.CoreMedia (drv: { - __propagatedImpureHostDeps = drv.__propagatedImpureHostDeps or [] ++ [ - "/System/Library/Frameworks/CoreImage.framework" - ]; - }); - - CoreMIDI = lib.overrideDerivation super.CoreMIDI (drv: { - __propagatedImpureHostDeps = drv.__propagatedImpureHostDeps or [] ++ [ - "/System/Library/PrivateFrameworks/" - ]; - setupHook = ./private-frameworks-setup-hook.sh; - }); - - IMServicePlugIn = lib.overrideDerivation super.IMServicePlugIn (drv: { - extraTBDFiles = [ "Versions/A/Frameworks/IMServicePlugInSupport.framework/Versions/A/IMServicePlugInSupport.tbd" ]; - }); - - Security = lib.overrideDerivation super.Security (drv: { - setupHook = ./security-setup-hook.sh; - }); - - QuartzCore = lib.overrideDerivation super.QuartzCore (drv: { - installPhase = drv.installPhase + '' - f="$out/Library/Frameworks/QuartzCore.framework/Headers/CoreImage.h" - substituteInPlace "$f" \ - --replace "QuartzCore/../Frameworks/CoreImage.framework/Headers" "CoreImage" - ''; - }); - - MetalKit = lib.overrideDerivation super.MetalKit (drv: { - installPhase = drv.installPhase + '' - mkdir -p $out/include/simd - cp ${lib.getDev sdk}/include/simd/*.h $out/include/simd/ - ''; - }); - - System = lib.overrideDerivation super.System (drv: { - installPhase = '' - mkdir -p $out/Library/Frameworks/System.framework/Versions/B - ln -s $out/Library/Frameworks/System.framework/Versions/{B,Current} - ln -s ${pkgs.darwin.Libsystem}/lib/libSystem.B.tbd $out/Library/Frameworks/System.framework/Versions/B/System.tbd - ln -s $out/Library/Frameworks/System.framework/{Versions/Current/,}System.tbd - ''; - }); - - WebKit = lib.overrideDerivation super.WebKit (drv: { - extraTBDFiles = [ - "Versions/A/Frameworks/WebCore.framework/Versions/A/WebCore.tbd" - "Versions/A/Frameworks/WebKitLegacy.framework/Versions/A/WebKitLegacy.tbd" - ]; - }); - } // lib.genAttrs [ + frameworks = lib.genAttrs [ + "AGL" + "AVFoundation" + "AVKit" + "Accelerate" + "Accounts" + "AddressBook" + "AppKit" + "AppKitScripting" + "AppleScriptKit" + "AppleScriptObjC" + "ApplicationServices" + "AudioToolbox" + "AudioUnit" + "AudioVideoBridging" + "Automator" + "CFNetwork" + "CalendarStore" + "Carbon" + "Cocoa" + "Collaboration" "ContactsPersistence" + "CoreAudio" + "CoreAudioKit" + "CoreBluetooth" + "CoreData" + "CoreFoundation" + "CoreGraphics" + "CoreImage" + "CoreLocation" + "CoreMIDI" + "CoreMIDIServer" + "CoreMedia" + "CoreMediaIO" + "CoreServices" "CoreSymbolication" + "CoreText" + "CoreVideo" + "CoreWLAN" + "DVDPlayback" "DebugSymbols" + "DirectoryService" + "DiscRecording" + "DiscRecordingUI" + "DiskArbitration" "DisplayServices" + "EventKit" + "ExceptionHandling" + "FWAUserLib" + "ForceFeedback" + "Foundation" + "GLKit" + "GLUT" + "GSS" "GameCenter" + "GameController" + "GameKit" + "GameplayKit" + "Hypervisor" + "ICADevices" + "IMServicePlugIn" + "IOBluetooth" + "IOBluetoothUI" + "IOKit" + "IOSurface" + "ImageCaptureCore" + "ImageIO" + "InputMethodKit" + "InstallerPlugins" + "InstantMessage" + "JavaFrameEmbedding" + "JavaNativeFoundation" + "JavaRuntimeSupport" + "JavaScriptCore" + "JavaVM" + "Kerberos" + "Kernel" + "LDAP" + "LatentSemanticMapping" + "LocalAuthentication" + "MapKit" + "MediaAccessibility" + "MediaPlayer" + "MediaToolbox" + "Metal" + "MetalKit" + "ModelIO" "MultitouchSupport" + "NetFS" + "OSAKit" + "OpenAL" + "OpenCL" + "OpenDirectory" + "OpenGL" + "PCSC" + "PreferencePanes" + "PubSub" + "QTKit" + "Quartz" + "QuartzCore" + "QuickLook" + "QuickTime" + "SceneKit" + "ScreenSaver" + "Scripting" + "ScriptingBridge" + "Security" + "SecurityFoundation" + "SecurityInterface" + "ServiceManagement" "SkyLight" + "Social" + "SpriteKit" + "StoreKit" + "SyncServices" + "System" + "SystemConfiguration" + "TWAIN" + "Tcl" "UIFoundation" - ] - (x: tbdOnlyFramework x {}); + "VideoDecodeAcceleration" + "VideoToolbox" + "WebKit" + "vmnet" + ] mkStub; - bareFrameworks = lib.mapAttrs framework (import ./frameworks.nix { - inherit frameworks libs; - inherit (pkgs.darwin) libobjc; - }); + bareFrameworks = lib.genAttrs [ + "AGL" + "AVFoundation" + "AVKit" + "Accelerate" + "Accounts" + "AddressBook" + "AppKit" + "AppKitScripting" + "AppleScriptKit" + "AppleScriptObjC" + "ApplicationServices" + "AudioToolbox" + "AudioUnit" + "AudioVideoBridging" + "Automator" + "CFNetwork" + "CalendarStore" + "Carbon" + "Cocoa" + "Collaboration" + "CoreAudio" + "CoreAudioKit" + "CoreBluetooth" + "CoreData" + "CoreFoundation" + "CoreGraphics" + "CoreImage" + "CoreLocation" + "CoreMIDI" + "CoreMIDIServer" + "CoreMedia" + "CoreMediaIO" + "CoreServices" + "CoreText" + "CoreVideo" + "CoreWLAN" + "DVDPlayback" + "DirectoryService" + "DiscRecording" + "DiscRecordingUI" + "DiskArbitration" + "EventKit" + "ExceptionHandling" + "FWAUserLib" + "ForceFeedback" + "Foundation" + "GLKit" + "GLUT" + "GSS" + "GameCenter" + "GameController" + "GameKit" + "GameplayKit" + "Hypervisor" + "ICADevices" + "IMServicePlugIn" + "IOBluetooth" + "IOBluetoothUI" + "IOKit" + "IOSurface" + "ImageCaptureCore" + "ImageIO" + "InputMethodKit" + "InstallerPlugins" + "InstantMessage" + "JavaFrameEmbedding" + "JavaNativeFoundation" + "JavaRuntimeSupport" + "JavaScriptCore" + "JavaVM" + "Kerberos" + "Kernel" + "LDAP" + "LatentSemanticMapping" + "LocalAuthentication" + "MapKit" + "MediaAccessibility" + "MediaPlayer" + "MediaToolbox" + "Metal" + "MetalKit" + "ModelIO" + "NetFS" + "OSAKit" + "OpenAL" + "OpenCL" + "OpenDirectory" + "OpenGL" + "PCSC" + "PreferencePanes" + "PubSub" + "QTKit" + "Quartz" + "QuartzCore" + "QuickLook" + "QuickTime" + "SceneKit" + "ScreenSaver" + "Scripting" + "ScriptingBridge" + "Security" + "SecurityFoundation" + "SecurityInterface" + "ServiceManagement" + "Social" + "SpriteKit" + "StoreKit" + "SyncServices" + "System" + "SystemConfiguration" + "TWAIN" + "Tcl" + "VideoDecodeAcceleration" + "VideoToolbox" + "WebKit" + "vmnet" + ] mkStub; +in +{ + inherit bareFrameworks frameworks; - frameworks = bareFrameworks // overrides bareFrameworks; + libs = lib.genAttrs [ + "Xplugin" + "sandbox" + "simd" + "utmp" + "xpc" + ] mkStub; - inherit darwin-stubs; - - objc4 = pkgs.darwin.libobjc; - - sdkRoot = pkgs.callPackage ./sdkRoot.nix { sdkVersion = "10.12.4"; }; - - inherit (pkgs.darwin) Libsystem; - - inherit sdk; + version = "10.12"; } +// lib.genAttrs [ + "darwin-stubs" + "Libsystem" + "objc4" + "sdk" + "sdkRoot" +] mkStub diff --git a/pkgs/os-specific/darwin/apple-sdk/frameworks.nix b/pkgs/os-specific/darwin/apple-sdk/frameworks.nix deleted file mode 100644 index a9fbcc066a3c..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk/frameworks.nix +++ /dev/null @@ -1,130 +0,0 @@ -# Current as of 10.12 -# Epic weird knot-tying happening here. -# TODO: clean up the process for generating this and include it - -{ frameworks, libs, libobjc, }: - -with frameworks; with libs; { - AGL = { inherit Carbon OpenGL; }; - AVFoundation = { inherit ApplicationServices CoreGraphics CoreMedia MediaToolbox; }; - AVKit = {}; - Accounts = {}; - AddressBook = { inherit libobjc Carbon ContactsPersistence; }; - AppKit = { inherit ApplicationServices AudioToolbox AudioUnit Foundation QuartzCore UIFoundation; }; - AppKitScripting = {}; - AppleScriptKit = {}; - AppleScriptObjC = {}; - AudioToolbox = { inherit CoreAudio CoreMIDI; }; - AudioUnit = { inherit AudioToolbox Carbon CoreAudio; }; - AudioVideoBridging = { inherit Foundation; }; - Automator = {}; - CFNetwork = {}; - CalendarStore = {}; - Cocoa = { inherit AppKit CoreData; }; - Collaboration = {}; - # Impure version of CoreFoundation, this should not be used unless another - # framework includes headers that are not available in the pure version. - CoreFoundation = {}; - CoreAudio = { inherit IOKit; }; - CoreAudioKit = { inherit AudioUnit; }; - CoreData = {}; - CoreGraphics = { inherit Accelerate IOKit IOSurface SystemConfiguration; }; - CoreImage = {}; - CoreLocation = {}; - CoreMIDI = {}; - CoreMIDIServer = { inherit CoreMIDI; }; - CoreMedia = { inherit ApplicationServices AudioToolbox AudioUnit CoreAudio CoreGraphics CoreVideo; }; - CoreMediaIO = { inherit CoreMedia; }; - CoreText = { inherit CoreGraphics; }; - CoreVideo = { inherit ApplicationServices CoreGraphics IOSurface OpenGL; }; - CoreWLAN = { inherit SecurityFoundation; }; - DVDPlayback = {}; - DirectoryService = {}; - DiscRecording = { inherit libobjc CoreServices IOKit; }; - DiscRecordingUI = {}; - DiskArbitration = { inherit IOKit; }; - EventKit = {}; - ExceptionHandling = {}; - FWAUserLib = {}; - ForceFeedback = { inherit IOKit; }; - Foundation = { inherit libobjc CoreFoundation Security ApplicationServices SystemConfiguration; }; - GLKit = {}; - GLUT = { inherit OpenGL; }; - GSS = {}; - GameCenter = {}; - GameController = {}; - GameKit = { inherit Cocoa Foundation GameCenter GameController GameplayKit Metal MetalKit ModelIO SceneKit SpriteKit; }; - GameplayKit = {}; - Hypervisor = {}; - ICADevices = { inherit libobjc Carbon IOBluetooth; }; - IMServicePlugIn = {}; - IOBluetoothUI = { inherit IOBluetooth; }; - IOKit = {}; - IOSurface = { inherit IOKit xpc; }; - ImageCaptureCore = {}; - ImageIO = { inherit CoreGraphics; }; - InputMethodKit = { inherit Carbon; }; - InstallerPlugins = {}; - InstantMessage = {}; - JavaFrameEmbedding = {}; - JavaNativeFoundation = {}; - JavaRuntimeSupport = {}; - JavaScriptCore = { inherit libobjc; }; - Kerberos = {}; - Kernel = { inherit IOKit; }; - LDAP = {}; - LatentSemanticMapping = { inherit Carbon; }; - LocalAuthentication = {}; - MapKit = {}; - MediaAccessibility = { inherit CoreGraphics CoreText QuartzCore; }; - MediaPlayer = {}; - MediaToolbox = { inherit AudioToolbox AudioUnit CoreMedia; }; - Metal = {}; - MetalKit = { inherit ModelIO Metal; }; - ModelIO = {}; - NetFS = {}; - OSAKit = { inherit Carbon; }; - OpenAL = {}; - OpenCL = { inherit IOSurface OpenGL; }; - OpenGL = {}; - PCSC = { inherit CoreData; }; - PreferencePanes = {}; - PubSub = {}; - QTKit = { inherit CoreMediaIO CoreMedia MediaToolbox QuickTime VideoToolbox; }; - QuickLook = { inherit ApplicationServices; }; - SceneKit = {}; - ScreenSaver = {}; - Scripting = {}; - ScriptingBridge = {}; - Security = { inherit IOKit; }; - SecurityFoundation = {}; - SecurityInterface = { inherit Security SecurityFoundation; }; - ServiceManagement = { inherit Security; }; - Social = {}; - SpriteKit = {}; - StoreKit = {}; - SyncServices = {}; - System = {}; - SystemConfiguration = { inherit Security; }; - TWAIN = { inherit Carbon; }; - Tcl = {}; - VideoDecodeAcceleration = { inherit CoreVideo; }; - VideoToolbox = { inherit CoreMedia CoreVideo; }; - WebKit = { inherit libobjc ApplicationServices Carbon JavaScriptCore OpenGL; }; - - # Umbrellas - Accelerate = { inherit CoreWLAN IOBluetooth; }; - ApplicationServices = { inherit CoreGraphics CoreServices CoreText ImageIO; }; - Carbon = { inherit libobjc ApplicationServices CoreServices Foundation IOKit Security QuartzCore; }; - CoreBluetooth = {}; - # TODO: figure out which part of the umbrella depends on CoreFoundation and move it there. - CoreServices = { inherit CFNetwork CoreFoundation CoreAudio CoreData DiskArbitration Security NetFS OpenDirectory ServiceManagement; }; - IOBluetooth = { inherit CoreBluetooth IOKit; }; - JavaVM = {}; - OpenDirectory = {}; - Quartz = { inherit QuartzCore QuickLook QTKit; }; - QuartzCore = { inherit libobjc ApplicationServices CoreVideo OpenCL CoreImage Metal; }; - QuickTime = { inherit ApplicationServices AudioUnit Carbon CoreAudio CoreServices OpenGL QuartzCore; }; - - vmnet = {}; -} diff --git a/pkgs/os-specific/darwin/apple-sdk/impure-deps.nix b/pkgs/os-specific/darwin/apple-sdk/impure-deps.nix deleted file mode 100644 index c111492f2b3d..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk/impure-deps.nix +++ /dev/null @@ -1,256 +0,0 @@ -rec { - CFNetwork = [ - "/System/Library/Frameworks/CFNetwork.framework" - "/usr/lib/libsqlite3.dylib" - "/usr/lib/libxml2.2.dylib" - ]; - ForceFeedback = [ - "/System/Library/Frameworks/ForceFeedback.framework" - ]; - AGL = [ - "/System/Library/Frameworks/AGL.framework" - ]; - IOKit = [ - "/System/Library/Frameworks/IOKit.framework" - ]; - JavaScriptCore = [ - "/System/Library/Frameworks/JavaScriptCore.framework" - ]; - QuickLook = [ - "/System/Library/Frameworks/QuickLook.framework" - ]; - Quartz = [ - "/System/Library/Frameworks/Quartz.framework" - "/System/Library/PrivateFrameworks/AppleSystemInfo.framework/Versions/A/AppleSystemInfo" - "/System/Library/PrivateFrameworks/CorePDF.framework/Versions/A/CorePDF" - "/usr/lib/libspindump.dylib" - ]; - ImageCaptureCore = [ - "/System/Library/Frameworks/ImageCaptureCore.framework" - ]; - VideoToolbox = [ - "/System/Library/Frameworks/VideoToolbox.framework" - "/System/Library/PrivateFrameworks/AppleVA.framework/Versions/A/AppleVA" - ]; - QuickTime = [ - "/System/Library/Frameworks/QuickTime.framework" - ]; - CoreMedia = [ - "/System/Library/Frameworks/CoreMedia.framework" - ]; - CoreMediaIO = [ - "/System/Library/Frameworks/CoreMediaIO.framework" - "/System/Library/PrivateFrameworks/AppSandbox.framework/Versions/A/AppSandbox" - "/System/Library/PrivateFrameworks/AppContainer.framework/Versions/A/AppContainer" - "/System/Library/PrivateFrameworks/SecCodeWrapper.framework/Versions/A/SecCodeWrapper" - "/System/Library/PrivateFrameworks/XPCService.framework/Versions/A/XPCService" - "/usr/lib/libsandbox.1.dylib" - "/usr/lib/libMatch.1.dylib" - ]; - MediaToolbox = [ - "/System/Library/Frameworks/MediaToolbox.framework" - "/System/Library/PrivateFrameworks/CoreAUC.framework/Versions/A/CoreAUC" - "/System/Library/PrivateFrameworks/NetworkStatistics.framework/Versions/A/NetworkStatistics" - ]; - QTKit = [ - "/System/Library/Frameworks/QTKit.framework" - "/System/Library/PrivateFrameworks/CoreMediaAuthoring.framework/Versions/A/CoreMediaAuthoring" - ]; - OSAKit = [ - "/System/Library/Frameworks/OSAKit.framework" - "/usr/lib/libexslt.0.dylib" - ]; - WebKit = [ - "/System/Library/Frameworks/WebKit.framework" - ]; - DiskArbitration = [ - "/System/Library/Frameworks/DiskArbitration.framework" - ]; - Security = [ - "/System/Library/Frameworks/Security.framework" - "/usr/lib/libbsm.0.dylib" - "/usr/lib/libbz2.1.0.dylib" - "/usr/lib/libpam.2.dylib" - "/usr/lib/libxar.1.dylib" - "/usr/lib/libxml2.2.dylib" - "/usr/lib/libsqlite3.dylib" - ]; - GSS = [ - "/System/Library/Frameworks/GSS.framework" - ]; - Kerberos = [ - "/System/Library/Frameworks/Kerberos.framework" - ]; - CoreServices = [ - "/System/Library/Frameworks/CoreServices.framework" - "/System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore" - "/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC" - "/System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling" - "/usr/lib/libmecabra.dylib" - "/usr/lib/libcmph.dylib" - "/usr/lib/libiconv.2.dylib" - "/usr/lib/libxslt.1.dylib" - ] ++ Foundation; - IOSurface = [ - "/System/Library/Frameworks/IOSurface.framework" - ]; - CoreGraphics = [ - "/System/Library/Frameworks/CoreGraphics.framework" - "/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport" - "/usr/lib/libbsm.0.dylib" - "/usr/lib/libz.1.dylib" - ]; - CoreText = [ - "/System/Library/Frameworks/CoreText.framework" - ]; - ImageIO = [ - "/System/Library/Frameworks/ImageIO.framework" - ]; - ApplicationServices = [ - "/System/Library/Frameworks/ApplicationServices.framework" - "/usr/lib/libcups.2.dylib" - "/usr/lib/libresolv.9.dylib" - ] ++ AudioToolbox; - OpenGL = [ - "/System/Library/Frameworks/OpenGL.framework" - ]; - CoreVideo = [ - "/System/Library/Frameworks/CoreVideo.framework" - ]; - QuartzCore = [ - "/System/Library/Frameworks/QuartzCore.framework" - "/System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport" - ]; - PCSC = [ - "/System/Library/Frameworks/PCSC.framework" - ]; - AppKit = [ - "/System/Library/Frameworks/AppKit.framework" - "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211" - "/System/Library/PrivateFrameworks/AppleJPEG.framework/Versions/A/AppleJPEG" - "/System/Library/PrivateFrameworks/AppleVPA.framework/Versions/A/AppleVPA" - "/System/Library/PrivateFrameworks/Backup.framework/Versions/A/Backup" - "/System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary" - "/System/Library/PrivateFrameworks/CommonAuth.framework/Versions/A/CommonAuth" - "/System/Library/PrivateFrameworks/CoreSymbolication.framework/Versions/A/CoreSymbolication" - "/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI" - "/System/Library/PrivateFrameworks/CoreWiFi.framework/Versions/A/CoreWiFi" - "/System/Library/PrivateFrameworks/CrashReporterSupport.framework/Versions/A/CrashReporterSupport" - "/System/Library/PrivateFrameworks/DataDetectorsCore.framework/Versions/A/DataDetectorsCore" - "/System/Library/PrivateFrameworks/DebugSymbols.framework/Versions/A/DebugSymbols" - "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv" - "/System/Library/PrivateFrameworks/FaceCore.framework/Versions/A/FaceCore" - "/System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage" - "/System/Library/PrivateFrameworks/Heimdal.framework/Heimdal" - "/System/Library/PrivateFrameworks/Heimdal.framework/Versions/Current" - "/System/Library/PrivateFrameworks/Heimdal.framework/Versions/A/Heimdal" - "/System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices" - "/System/Library/PrivateFrameworks/LanguageModeling.framework/Versions/A/LanguageModeling" - "/System/Library/PrivateFrameworks/MultitouchSupport.framework/Versions/A/MultitouchSupport" - "/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth" - "/System/Library/PrivateFrameworks/PerformanceAnalysis.framework/Versions/A/PerformanceAnalysis" - "/System/Library/PrivateFrameworks/RemoteViewServices.framework/Versions/A/RemoteViewServices" - "/System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing" - "/System/Library/PrivateFrameworks/SpeechRecognitionCore.framework/Versions/A/SpeechRecognitionCore" - "/System/Library/PrivateFrameworks/Symbolication.framework/Versions/A/Symbolication" - "/System/Library/PrivateFrameworks/TCC.framework/Versions/A/TCC" - "/System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation" - "/System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport" - "/usr/lib/libCRFSuite.dylib" - "/usr/lib/libOpenScriptingUtil.dylib" - "/usr/lib/libarchive.2.dylib" - "/usr/lib/libbsm.0.dylib" - "/usr/lib/libbz2.1.0.dylib" - "/usr/lib/libc++.1.dylib" - "/usr/lib/libc++abi.dylib" - "/usr/lib/libcmph.dylib" - "/usr/lib/libcups.2.dylib" - "/usr/lib/libextension.dylib" - "/usr/lib/libheimdal-asn1.dylib" - "/usr/lib/libiconv.2.dylib" - "/usr/lib/libicucore.A.dylib" - "/usr/lib/liblangid.dylib" - "/usr/lib/liblzma.5.dylib" - "/usr/lib/libmecabra.dylib" - "/usr/lib/libpam.2.dylib" - "/usr/lib/libresolv.9.dylib" - "/usr/lib/libsqlite3.dylib" - "/usr/lib/libxar.1.dylib" - "/usr/lib/libxml2.2.dylib" - "/usr/lib/libxslt.1.dylib" - "/usr/lib/libz.1.dylib" - ]; - Foundation = [ - "/System/Library/Frameworks/Foundation.framework" - "/usr/lib/libextension.dylib" - "/usr/lib/libarchive.2.dylib" - "/usr/lib/liblzma.5.dylib" - "/usr/lib/liblangid.dylib" - "/usr/lib/libCRFSuite.dylib" - ]; - CoreData = [ - "/System/Library/Frameworks/CoreData.framework" - ]; - Cocoa = [ - "/System/Library/Frameworks/Cocoa.framework" - "/System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A/UIFoundation" - "/System/Library/PrivateFrameworks/UIFoundation.framework/Versions/A" - ]; - Carbon = [ - "/System/Library/Frameworks/Carbon.framework" - "/System/Library/PrivateFrameworks/CoreUI.framework/Versions/A/CoreUI" - "/System/Library/PrivateFrameworks/DesktopServicesPriv.framework/Versions/A/DesktopServicesPriv" - "/System/Library/PrivateFrameworks/IconServices.framework/Versions/A/IconServices" - "/System/Library/PrivateFrameworks/ChunkingLibrary.framework/Versions/A/ChunkingLibrary" - "/System/Library/PrivateFrameworks/Sharing.framework/Versions/A/Sharing" - "/System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Apple80211" - "/System/Library/PrivateFrameworks/GenerationalStorage.framework/Versions/A/GenerationalStorage" - ]; - CoreAudio = [ - "/System/Library/Frameworks/CoreAudio.framework" - ]; - AudioUnit = [ - "/System/Library/Frameworks/AudioUnit.framework" - ]; - CoreMIDI = [ - "/System/Library/Frameworks/CoreMIDI.framework" - ]; - AudioToolbox = [ - "/System/Library/Frameworks/AudioToolbox.framework" - ]; - SystemConfiguration = [ - "/System/Library/Frameworks/SystemConfiguration.framework" - ]; - NetFS = [ - "/System/Library/Frameworks/NetFS.framework" - "/System/Library/PrivateFrameworks/NetAuth.framework/Versions/A/NetAuth" - "/System/Library/PrivateFrameworks/login.framework/Versions/A/Frameworks/loginsupport.framework/Versions/A/loginsupport" - ]; - Accelerate = [ - "/System/Library/Frameworks/Accelerate.framework" - ]; - OpenDirectory = [ - "/System/Library/Frameworks/OpenDirectory.framework" - ]; - ServiceManagement = [ - "/System/Library/Frameworks/ServiceManagement.framework" - ]; - OpenCL = [ - "/System/Library/Frameworks/OpenCL.framework" - ]; - CoreWLAN = [ - "/System/Library/Frameworks/CoreWLAN.framework" - ]; - IOBluetooth = [ - "/System/Library/Frameworks/IOBluetooth.framework" - ] ++ AudioUnit ++ CoreBluetooth; - CoreBluetooth = [ - "/System/Library/Frameworks/CoreBluetooth.framework" - ]; - SecurityFoundation = [ - "/System/Library/Frameworks/SecurityFoundation.framework" - ]; - Kernel = [ - "/System/Library/Frameworks/Kernel.framework" - ]; -} diff --git a/pkgs/os-specific/darwin/apple-sdk/private-frameworks-setup-hook.sh b/pkgs/os-specific/darwin/apple-sdk/private-frameworks-setup-hook.sh deleted file mode 100644 index a351c39de130..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk/private-frameworks-setup-hook.sh +++ /dev/null @@ -1,8 +0,0 @@ -addPrivateFrameworks() { - flag="-F/System/Library/PrivateFrameworks" - if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then - NIX_CFLAGS_COMPILE+=" $flag" - fi -} - -addEnvHooks "$hostOffset" addPrivateFrameworks diff --git a/pkgs/os-specific/darwin/apple-sdk/sdkRoot.nix b/pkgs/os-specific/darwin/apple-sdk/sdkRoot.nix deleted file mode 100644 index 67d9cbe03105..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk/sdkRoot.nix +++ /dev/null @@ -1,68 +0,0 @@ -{ - lib, - runCommand, - writeText, - sdkVersion, -}: - -let - sdkName = "MacOSX${sdkVersion}"; - toolchainName = "com.apple.dt.toolchain.XcodeDefault"; - productBuildVer = null; - - inherit (lib.generators) toPlist toJSON; - - SDKSettings = { - CanonicalName = "macosx${sdkVersion}"; - DisplayName = "macOS ${sdkVersion}"; - Toolchains = [ toolchainName ]; - Version = sdkVersion; - MaximumDeploymentTarget = "${sdkVersion}.99"; - isBaseSDK = "YES"; - }; - - SystemVersion = - lib.optionalAttrs (productBuildVer != null) { ProductBuildVersion = productBuildVer; } - // { - ProductName = "macOS"; - ProductVersion = sdkVersion; - }; -in -runCommand "sdkroot-${sdkVersion}" { } '' - sdk="$out/${sdkName}.sdk" - - install -D ${writeText "SDKSettings.plist" (toPlist { } SDKSettings)} "$sdk/SDKSettings.plist" - install -D ${writeText "SDKSettings.json" (toJSON { } SDKSettings)} "$sdk/SDKSettings.json" - install -D ${ - writeText "SystemVersion.plist" (toPlist { } SystemVersion) - } "$sdk/System/Library/CoreServices/SystemVersion.plist" - - ln -s "$sdk" "$sdk/usr" - - install -D '${../../../build-support/setup-hooks/role.bash}' "$out/nix-support/setup-hook" - cat >> "$out/nix-support/setup-hook" <<-hook - # - # See comments in cc-wrapper's setup hook. This works exactly the same way. - # - [[ -z \''${strictDeps-} ]] || (( "\$hostOffset" < 0 )) || return 0 - - sdkRootHook() { - # See ../../../build-support/setup-hooks/role.bash - local role_post - getHostRoleEnvHook - - # Only set the SDK root if one has not been set via this hook or some other means. - if [[ ! \$NIX_CFLAGS_COMPILE =~ isysroot ]]; then - export NIX_CFLAGS_COMPILE\''${role_post}+=' -isysroot $out/${sdkName}.sdk' - fi - } - - # See ../../../build-support/setup-hooks/role.bash - getTargetRole - - addEnvHooks "\$targetOffset" sdkRootHook - - # No local scope in sourced file - unset -v role_post - hook -'' diff --git a/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh b/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh deleted file mode 100644 index 35cea773f98b..000000000000 --- a/pkgs/os-specific/darwin/apple-sdk/security-setup-hook.sh +++ /dev/null @@ -1,10 +0,0 @@ -noDeprecatedDeclarations() { - # Security.framework has about 2000 deprecated constants, all of which the user will be - # warned about at compilation time - flag="-Wno-deprecated-declarations" - if [[ "${NIX_CFLAGS_COMPILE-}" != *$flag* ]]; then - NIX_CFLAGS_COMPILE+=" $flag" - fi -} - -addEnvHooks "$hostOffset" noDeprecatedDeclarations diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index 823825e10c7d..82be7b181a47 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -50,11 +50,7 @@ makeScopeWithSplicing' { impure-cmds = pkgs.callPackage ../os-specific/darwin/impure-cmds { }; # macOS 10.12 SDK - apple_sdk_10_12 = pkgs.callPackage ../os-specific/darwin/apple-sdk { - inherit (buildPackages.darwin) print-reexports; - inherit (self) darwin-stubs; - fetchurl = fetchurlBoot; - }; + apple_sdk_10_12 = pkgs.callPackage ../os-specific/darwin/apple-sdk { }; # macOS 11.0 SDK apple_sdk_11_0 = pkgs.callPackage ../os-specific/darwin/apple-sdk-11.0 { }; @@ -93,15 +89,13 @@ makeScopeWithSplicing' { }; stubs = { - inherit apple_sdk_11_0 apple_sdk_12_3; + inherit apple_sdk apple_sdk_10_12 apple_sdk_11_0 apple_sdk_12_3; } // lib.genAttrs [ ] (mkStub apple_sdk.version); in impure-cmds // appleSourcePackages // chooseLibs // stubs // { - inherit apple_sdk apple_sdk_10_12; - stdenvNoCF = stdenv.override { extraBuildInputs = []; }; From 9ecb69c827e608f916b161431d90b7f34009145b Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 5 Oct 2024 21:23:20 -0400 Subject: [PATCH 0261/1574] darwin.apple_sdk: drop gen-frameworks.py (replaced by new SDK pattern) --- pkgs/os-specific/darwin/gen-frameworks.py | 147 ---------------------- 1 file changed, 147 deletions(-) delete mode 100755 pkgs/os-specific/darwin/gen-frameworks.py diff --git a/pkgs/os-specific/darwin/gen-frameworks.py b/pkgs/os-specific/darwin/gen-frameworks.py deleted file mode 100755 index ec2a6c7c16ec..000000000000 --- a/pkgs/os-specific/darwin/gen-frameworks.py +++ /dev/null @@ -1,147 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i python -p python3 swiftPackages.swift-unwrapped - -""" -Generate a frameworks.nix for a macOS SDK. - -You may point this tool at an Xcode bundled SDK, but more ideal is using the -SDK from Nixpkgs. For example: - -SDK_PATH="$(nix-build --no-link -A darwin.apple_sdk_11_0.MacOSX-SDK)" -./gen-frameworks.py "$SDK_PATH" > ./new-frameworks.nix -""" - -import json -import os -import subprocess -import sys - -ALLOWED_LIBS = ["simd"] - -HEADER = """\ -# This file is generated by gen-frameworks.nix. -# Do not edit, put overrides in apple_sdk.nix instead. -{ libs, frameworks }: with libs; with frameworks; -{ -""" - -FOOTER = """\ -} -""" - - -def eprint(*args): - print(*args, file=sys.stderr) - - -def name_from_ident(ident): - return ident.get("swift", ident.get("clang")) - - -def scan_sdk(sdk): - # Find frameworks by scanning the SDK frameworks directory. - frameworks = [ - framework.removesuffix(".framework") - for framework in os.listdir(f"{sdk}/System/Library/Frameworks") - if not framework.startswith("_") - ] - frameworks.sort() - - # Determine the longest name for padding output. - width = len(max(frameworks, key=len)) - - output = HEADER - - for framework in frameworks: - deps = [] - - # Use Swift to scan dependencies, because a module may have both Clang - # and Swift parts. Using Clang only imports the Clang module, whereas - # using Swift will usually import both Clang + Swift overlay. - # - # TODO: The above is an assumption. Not sure if it's possible a Swift - # module completely shadows a Clang module. (Seems unlikely) - # - # TODO: Handle "module 'Foobar' is incompatible with feature 'swift'" - # - # If there were a similar Clang invocation for scanning, we could fix - # the above todos, but that doesn't appear to exist. - eprint(f"# scanning {framework}") - result = subprocess.run( - [ - "swiftc", - "-scan-dependencies", - # We provide a source snippet via stdin. - "-", - # Use the provided SDK. - "-sdk", - sdk, - # This search path is normally added automatically by the - # compiler based on the SDK, but we have a patch in place that - # removes that for SDKs in /nix/store, because our xcbuild stub - # SDK doesn't have the directory. - # (swift-prevent-sdk-dirs-warning.patch) - "-I", - f"{sdk}/usr/lib/swift", - # For some reason, 'lib/swift/shims' from both the SDK and - # Swift compiler are picked up, causing redefinition errors. - # This eliminates the latter. - "-resource-dir", - f"{sdk}/usr/lib/swift", - ], - input=f"import {framework}".encode(), - stdout=subprocess.PIPE, - ) - if result.returncode != 0: - eprint(f"# Scanning {framework} failed (exit code {result.returncode})") - result.stdout = b"" - - # Parse JSON output. - if len(result.stdout) != 0: - data = json.loads(result.stdout) - - # Entries in the modules list come in pairs. The first is an - # identifier (`{ swift: "foobar" }` or `{ clang: "foobar" }`), and - # the second metadata for that module. Here we look for the pair - # that matches the framework we're scanning (and ignore the rest). - modules = data["modules"] - for i in range(0, len(modules), 2): - ident, meta = modules[i : i + 2] - - # NOTE: We may match twice, for a Swift module _and_ for a - # Clang module. So matching here doesn't break from the loop, - # and deps is appended to. - if name_from_ident(ident) == framework: - dep_idents = meta["directDependencies"] - deps += [name_from_ident(ident) for ident in dep_idents] - # List unfiltered deps in progress output. - eprint(ident, "->", dep_idents) - - # Filter out modules that are not separate derivations. - # Also filter out duplicates (when a Swift overlay imports the Clang module) - allowed = frameworks + ALLOWED_LIBS - deps = set([dep for dep in deps if dep in allowed]) - - # Filter out self-references. (Swift overlay importing Clang module.) - if framework in deps: - deps.remove(framework) - - # Generate a Nix attribute line. - if len(deps) != 0: - deps = list(deps) - deps.sort() - deps = " ".join(deps) - output += f" {framework.ljust(width)} = {{ inherit {deps}; }};\n" - else: - output += f" {framework.ljust(width)} = {{}};\n" - - output += FOOTER - sys.stdout.write(output) - - -if __name__ == "__main__": - if len(sys.argv) != 2: - eprint(f"Usage: {sys.argv[0]} ") - sys.exit(64) - - scan_sdk(sys.argv[1]) From c218ce1e4de9ff13ff0ae58385c78e9c055367b0 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 21 Sep 2024 10:06:58 -0400 Subject: [PATCH 0262/1574] darwin: replace framework chooser with stubs --- pkgs/top-level/darwin-packages.nix | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index 82be7b181a47..5317cab970fc 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -65,36 +65,13 @@ makeScopeWithSplicing' { }.${stdenv.hostPlatform.darwinSdkVersion} or (throw "Unsupported sdk: ${stdenv.hostPlatform.darwinSdkVersion}"); - # Pick the source of libraries: either Apple's open source releases, or the - # SDK. - useAppleSDKLibs = lib.versionAtLeast stdenv.hostPlatform.darwinSdkVersion "11"; - - selectAttrs = attrs: names: - lib.listToAttrs (lib.concatMap (n: lib.optionals (attrs ? "${n}") [(lib.nameValuePair n attrs."${n}")]) names); - - chooseLibs = ( - # There are differences in which libraries are exported. Avoid evaluation - # errors when a package is not provided. - selectAttrs ( - if useAppleSDKLibs - then apple_sdk - else appleSourcePackages - ) ["Libsystem" "LibsystemCross" "libcharset" "libunwind" "objc4" "configd" "IOKit"] - ) // { - inherit ( - if useAppleSDKLibs - then apple_sdk.frameworks - else appleSourcePackages - ) Security; - }; - stubs = { inherit apple_sdk apple_sdk_10_12 apple_sdk_11_0 apple_sdk_12_3; } // lib.genAttrs [ ] (mkStub apple_sdk.version); in -impure-cmds // appleSourcePackages // chooseLibs // stubs // { +impure-cmds // appleSourcePackages // stubs // { stdenvNoCF = stdenv.override { extraBuildInputs = []; From 97d75cb619e2bd83547ac6a7c899784d97af4401 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 29 Sep 2024 13:54:47 -0400 Subject: [PATCH 0263/1574] {bintools,cc}-wrapper: set up Darwin SDK paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Some compilers may know to check these paths when `SDKROOT` is set, but it’s not assumed they do. `SDKROOT` is instead derived from the `DEVELOPER_DIR`, and `NIX_CFLAGS_COMPILE` is set up with the sysroot and necessary framework and include search paths. --- .../add-darwin-ldflags-before.sh | 10 ++++++++++ pkgs/build-support/cc-wrapper/add-flags.sh | 18 +++++++++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/bintools-wrapper/add-darwin-ldflags-before.sh b/pkgs/build-support/bintools-wrapper/add-darwin-ldflags-before.sh index 75d9484846a8..afcfce8ea9d5 100644 --- a/pkgs/build-support/bintools-wrapper/add-darwin-ldflags-before.sh +++ b/pkgs/build-support/bintools-wrapper/add-darwin-ldflags-before.sh @@ -79,3 +79,13 @@ if [ ! "$havePlatformVersionFlag" ]; then extraBefore+=(-@darwinPlatform@_version_min "${@darwinMinVersionVariable@_@suffixSalt@:-@darwinMinVersion@}") fi fi + +mangleVarSingle DEVELOPER_DIR ${role_suffixes[@]+"${role_suffixes[@]}"} + +# Allow wrapped bintools to do something useful when no `DEVELOPER_DIR` is set, which can happen when +# the compiler is run outside of a stdenv or intentionally in an environment with no environment variables set. +DEVELOPER_DIR=${DEVELOPER_DIR_@suffixSalt@} + +# Darwin looks for frameworks in the SDK located at `DEVELOPER_DIR`. +extraBefore+=("-F$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks") +extraBefore+=("-L$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/lib") diff --git a/pkgs/build-support/cc-wrapper/add-flags.sh b/pkgs/build-support/cc-wrapper/add-flags.sh index 2c3dc8884023..6683337b77b9 100644 --- a/pkgs/build-support/cc-wrapper/add-flags.sh +++ b/pkgs/build-support/cc-wrapper/add-flags.sh @@ -78,12 +78,28 @@ if [ -e @out@/nix-support/cc-cflags-before ]; then NIX_CFLAGS_COMPILE_BEFORE_@suffixSalt@="$(< @out@/nix-support/cc-cflags-before) $NIX_CFLAGS_COMPILE_BEFORE_@suffixSalt@" fi -# Only add darwin min version flag if a default darwin min version is set, +# Only add darwin min version flag and set up `DEVELOPER_DIR` if a default darwin min version is set, # which is a signal that we're targetting darwin. if [ "@darwinMinVersion@" ]; then mangleVarSingle @darwinMinVersionVariable@ ${role_suffixes[@]+"${role_suffixes[@]}"} NIX_CFLAGS_COMPILE_BEFORE_@suffixSalt@="-m@darwinPlatformForCC@-version-min=${@darwinMinVersionVariable@_@suffixSalt@:-@darwinMinVersion@} $NIX_CFLAGS_COMPILE_BEFORE_@suffixSalt@" + + # `DEVELOPER_DIR` is used to dynamically locate libSystem (and the SDK frameworks) based on the SDK at that path. + mangleVarSingle DEVELOPER_DIR ${role_suffixes[@]+"${role_suffixes[@]}"} + + # Allow wrapped compilers to do something useful when no `DEVELOPER_DIR` is set, which can happen when + # the compiler is run outside of a stdenv or intentionally in an environment with no environment variables set. + DEVELOPER_DIR=${DEVELOPER_DIR_@suffixSalt@} + + # xcbuild needs `SDKROOT` to be the name of the SDK, which it sets in its own wrapper, + # but compilers expect it to point to the absolute path. + SDKROOT="$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk" + + # Set up various library paths since compilers may not support (or may have disabled) finding them in the sysroot. + NIX_CFLAGS_COMPILE_BEFORE_@suffixSalt@+=" -isysroot $SDKROOT" + NIX_CFLAGS_COMPILE_@suffixSalt@+=" -idirafter $SDKROOT/usr/include" + NIX_CFLAGS_COMPILE_@suffixSalt@+=" -iframework $SDKROOT/System/Library/Frameworks" fi # That way forked processes will not extend these environment variables again. From 51755b0c00881bfe1602db0eb689efd2c66bcc20 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 29 Sep 2024 13:54:47 -0400 Subject: [PATCH 0264/1574] {bintools,cc}-wrapper: use a fallback SDK when `DEVELOPER_DIR` is not set It is unusual to invoke a wrapped compiler without setting `DEVELOPER_DIR`, but it can happen when a user adds a compiler to their installed packages or when a package intentionally invokes the compiler without an environment (such as the GHC binary packages). --- .../bintools-wrapper/add-darwin-ldflags-before.sh | 2 +- pkgs/build-support/bintools-wrapper/default.nix | 4 ++++ pkgs/build-support/cc-wrapper/add-flags.sh | 2 +- pkgs/build-support/cc-wrapper/default.nix | 4 ++++ 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/bintools-wrapper/add-darwin-ldflags-before.sh b/pkgs/build-support/bintools-wrapper/add-darwin-ldflags-before.sh index afcfce8ea9d5..79f0546403f7 100644 --- a/pkgs/build-support/bintools-wrapper/add-darwin-ldflags-before.sh +++ b/pkgs/build-support/bintools-wrapper/add-darwin-ldflags-before.sh @@ -84,7 +84,7 @@ mangleVarSingle DEVELOPER_DIR ${role_suffixes[@]+"${role_suffixes[@]}"} # Allow wrapped bintools to do something useful when no `DEVELOPER_DIR` is set, which can happen when # the compiler is run outside of a stdenv or intentionally in an environment with no environment variables set. -DEVELOPER_DIR=${DEVELOPER_DIR_@suffixSalt@} +DEVELOPER_DIR=${DEVELOPER_DIR_@suffixSalt@:-@fallback_sdk@} # Darwin looks for frameworks in the SDK located at `DEVELOPER_DIR`. extraBefore+=("-F$DEVELOPER_DIR/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks") diff --git a/pkgs/build-support/bintools-wrapper/default.nix b/pkgs/build-support/bintools-wrapper/default.nix index b64e97345ab5..4a6457350102 100644 --- a/pkgs/build-support/bintools-wrapper/default.nix +++ b/pkgs/build-support/bintools-wrapper/default.nix @@ -10,6 +10,7 @@ , stdenvNoCC , runtimeShell , bintools ? null, libc ? null, coreutils ? null, gnugrep ? null +, apple-sdk ? null , netbsd ? null , sharedLibraryLoader ? if libc == null then @@ -412,6 +413,9 @@ stdenvNoCC.mkDerivation { inherit dynamicLinker targetPrefix suffixSalt coreutils_bin; inherit bintools_bin libc_bin libc_dev libc_lib; default_hardening_flags_str = builtins.toString defaultHardeningFlags; + } // lib.optionalAttrs (apple-sdk != null && stdenvNoCC.targetPlatform.isDarwin) { + # Wrapped compilers should do something useful even when no SDK is provided at `DEVELOPER_DIR`. + fallback_sdk = apple-sdk.__spliced.buildTarget or apple-sdk; }; meta = diff --git a/pkgs/build-support/cc-wrapper/add-flags.sh b/pkgs/build-support/cc-wrapper/add-flags.sh index 6683337b77b9..cd5396f45f8b 100644 --- a/pkgs/build-support/cc-wrapper/add-flags.sh +++ b/pkgs/build-support/cc-wrapper/add-flags.sh @@ -90,7 +90,7 @@ if [ "@darwinMinVersion@" ]; then # Allow wrapped compilers to do something useful when no `DEVELOPER_DIR` is set, which can happen when # the compiler is run outside of a stdenv or intentionally in an environment with no environment variables set. - DEVELOPER_DIR=${DEVELOPER_DIR_@suffixSalt@} + DEVELOPER_DIR=${DEVELOPER_DIR_@suffixSalt@:-@fallback_sdk@} # xcbuild needs `SDKROOT` to be the name of the SDK, which it sets in its own wrapper, # but compilers expect it to point to the absolute path. diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index 01f91b408e38..ed55e37cb76a 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -10,6 +10,7 @@ , stdenvNoCC , runtimeShell , cc ? null, libc ? null, bintools, coreutils ? null +, apple-sdk ? null , zlib ? null , nativeTools, noLibc ? false, nativeLibc, nativePrefix ? "" , propagateDoc ? cc != null && cc ? man @@ -749,6 +750,9 @@ stdenvNoCC.mkDerivation { inherit libc_bin libc_dev libc_lib; inherit darwinPlatformForCC darwinMinVersion darwinMinVersionVariable; default_hardening_flags_str = builtins.toString defaultHardeningFlags; + } // lib.optionalAttrs (apple-sdk != null && stdenvNoCC.targetPlatform.isDarwin) { + # Wrapped compilers should do something useful even when no SDK is provided at `DEVELOPER_DIR`. + fallback_sdk = apple-sdk.__spliced.buildTarget or apple-sdk; }; meta = From 826edbf7190c7249394f9180652bc8969aa8198a Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 29 Sep 2024 13:54:47 -0400 Subject: [PATCH 0265/1574] {bintools,cc}-wrapper: fix static builds on Darwin Without this change, all Darwin platforms mangle to the same suffix salt. That is normally not an issue because build = host should mean a non-cross build, but it causes issues on Darwin with static builds because `DEVELOPER_DIR_FOR_BUILD` and `DEVELOPER_DIR` will refer to different SDKs but mangle to the same `DEVELOPER_DIR` with suffix salt. The fix is to mangle static builds differently from non-static ones on Darwin, which allows building for a static Darwin target on a same-architecture Darwin host. This fix is applied only to Dariwn because the issue does not appear to affect other platforms. --- pkgs/build-support/bintools-wrapper/default.nix | 3 ++- pkgs/build-support/cc-wrapper/default.nix | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/build-support/bintools-wrapper/default.nix b/pkgs/build-support/bintools-wrapper/default.nix index 4a6457350102..868bc8cdae1f 100644 --- a/pkgs/build-support/bintools-wrapper/default.nix +++ b/pkgs/build-support/bintools-wrapper/default.nix @@ -108,7 +108,8 @@ let coreutils_bin = optionalString (!nativeTools) (getBin coreutils); # See description in cc-wrapper. - suffixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config; + suffixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config + + lib.optionalString (targetPlatform.isDarwin && targetPlatform.isStatic) "_static"; # The dynamic linker has different names on different platforms. This is a # shell glob that ought to match it. diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix index ed55e37cb76a..34b23acc80e3 100644 --- a/pkgs/build-support/cc-wrapper/default.nix +++ b/pkgs/build-support/cc-wrapper/default.nix @@ -115,7 +115,8 @@ let # without interfering. For the moment, it is defined as the target triple, # adjusted to be a valid bash identifier. This should be considered an # unstable implementation detail, however. - suffixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config; + suffixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config + + lib.optionalString (targetPlatform.isDarwin && targetPlatform.isStatic) "_static"; useGccForLibs = useCcForLibs && libcxx == null From a556a81f121a852a423159422ca619bc82d31e52 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 7 Sep 2024 22:01:39 -0400 Subject: [PATCH 0266/1574] atf: build with the bootstrap stdenv on Darwin --- pkgs/top-level/all-packages.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 01461c7dcbab..936f30814985 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23761,6 +23761,17 @@ with pkgs; }; } ../os-specific/darwin/darwin-min-version-hook/setup-hook.sh; + ### DEVELOPMENT / TESTING TOOLS + + atf = callPackage ../by-name/at/atf/package.nix { + stdenv = + # atf is a dependency of libiconv. Avoid an infinite recursion with `pkgsStatic` by using a bootstrap stdenv. + if stdenv.hostPlatform.isDarwin then + darwin.bootstrapStdenv + else + stdenv; + }; + ### DEVELOPMENT / LIBRARIES / AGDA agdaPackages = callPackage ./agda-packages.nix { From 54d591b2b4a7b29479e04ffde0f1338d208a4171 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 30 Aug 2024 21:48:43 -0400 Subject: [PATCH 0267/1574] cmake: undo `/var/empty` workaround for Darwin SDK paths MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit With this workaround enabled, CMake looks for SDK headers and libraries in `${SDKROOT}/var/empty`, which ensures it will not find them. Disabling the workaround in just this case allows CMake’s SDK support to work with the SDKs in nixpkgs while still not including other, impure paths in its search paths. --- pkgs/by-name/cm/cmake/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/cm/cmake/package.nix b/pkgs/by-name/cm/cmake/package.nix index 985b07cfb8a6..4ccac7799541 100644 --- a/pkgs/by-name/cm/cmake/package.nix +++ b/pkgs/by-name/cm/cmake/package.nix @@ -181,6 +181,14 @@ stdenv.mkDerivation (finalAttrs: { sed -i 's|bin/cmake|${buildPackages.cmakeMinimal}/bin/cmake|g' Makefile ''; + # Undo some of `fixCmakeFiles` for Darwin to make sure that checks for libraries in the SDK find them + # (e.g., `find_library(MATH_LIBRARY m)` should find `$SDKROOT/usr/lib/libm.tbd`). + postFixup = lib.optionalString stdenv.hostPlatform.isDarwin '' + substituteInPlace "$out/share/cmake-${lib.versions.majorMinor finalAttrs.version}/Modules/Platform/Darwin.cmake" \ + --replace-fail '/var/empty/include' '/usr/include' \ + --replace-fail '/var/empty/lib' '/usr/lib' + ''; + dontUseCmakeConfigure = true; enableParallelBuilding = true; From 472d10b75bd462bb1e94625d23f9da5f15457d24 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 16 Aug 2024 20:15:45 -0400 Subject: [PATCH 0268/1574] cmake: do in fact use the Darwin SDK in the setup hook --- pkgs/by-name/cm/cmake/setup-hook.sh | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/by-name/cm/cmake/setup-hook.sh b/pkgs/by-name/cm/cmake/setup-hook.sh index 0bb0426bca82..3df8b9bd986b 100755 --- a/pkgs/by-name/cm/cmake/setup-hook.sh +++ b/pkgs/by-name/cm/cmake/setup-hook.sh @@ -57,9 +57,6 @@ cmakeConfigurePhase() { # because we usually do not package the framework prependToVar cmakeFlags "-DCMAKE_FIND_FRAMEWORK=LAST" - # we never want to use the global macOS SDK - prependToVar cmakeFlags "-DCMAKE_OSX_SYSROOT=" - # correctly detect our clang compiler prependToVar cmakeFlags "-DCMAKE_POLICY_DEFAULT_CMP0025=NEW" From a79ed0daec90cfe0e053fd3f5be8c84fca865e48 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 16 Aug 2024 20:15:45 -0400 Subject: [PATCH 0269/1574] gnutar: make sure libiconv is linked MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gnutar’s `configure` detects libiconv but fails to link it on Darwin. --- pkgs/tools/archivers/gnutar/default.nix | 13 ++++------- .../archivers/gnutar/link-libiconv.patch | 23 +++++++++++++++++++ 2 files changed, 28 insertions(+), 8 deletions(-) create mode 100644 pkgs/tools/archivers/gnutar/link-libiconv.patch diff --git a/pkgs/tools/archivers/gnutar/default.nix b/pkgs/tools/archivers/gnutar/default.nix index f9b5415b4f8e..292b39738dfc 100644 --- a/pkgs/tools/archivers/gnutar/default.nix +++ b/pkgs/tools/archivers/gnutar/default.nix @@ -17,12 +17,9 @@ stdenv.mkDerivation rec { sha256 = "sha256-TWL/NzQux67XSFNTI5MMfPlKz3HDWRiCsmp+pQ8+3BY="; }; - # avoid retaining reference to CF during stdenv bootstrap - configureFlags = lib.optionals stdenv.hostPlatform.isDarwin [ - "gt_cv_func_CFPreferencesCopyAppValue=no" - "gt_cv_func_CFLocaleCopyCurrent=no" - "gt_cv_func_CFLocaleCopyPreferredLanguages=no" - ]; + # GNU tar fails to link libiconv even though the configure script detects it. + # https://savannah.gnu.org/bugs/index.php?64441 + patches = [ ./link-libiconv.patch ]; # gnutar tries to call into gettext between `fork` and `exec`, # which is not safe on darwin. @@ -33,8 +30,8 @@ stdenv.mkDerivation rec { outputs = [ "out" "info" ]; - nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin autoreconfHook - ++ lib.optional (!stdenv.hostPlatform.isDarwin) updateAutotoolsGnuConfigScriptsHook; + nativeBuildInputs = [ autoreconfHook ]; + # Add libintl on Darwin specifically as it fails to link (or skip) # NLS on it's own: # "_libintl_textdomain", referenced from: diff --git a/pkgs/tools/archivers/gnutar/link-libiconv.patch b/pkgs/tools/archivers/gnutar/link-libiconv.patch new file mode 100644 index 000000000000..a515c37c39ca --- /dev/null +++ b/pkgs/tools/archivers/gnutar/link-libiconv.patch @@ -0,0 +1,23 @@ +From 8632df398b2f548465ebe68b8f494c0d6f8d913d Mon Sep 17 00:00:00 2001 +From: Sergey Poznyakoff +Date: Tue, 18 Jul 2023 17:02:23 +0300 +Subject: Fix savannah bug #64441 + +* src/Makefile.am (tar_LDADD): Add libiconv libraries. +--- + src/Makefile.am | 3 ++- + 1 file changed, 2 insertions(+), 1 deletion(-) + +diff --git a/src/Makefile.am b/src/Makefile.am +index 36c9543..e2ec58d 100644 +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -52,4 +52,5 @@ AM_CFLAGS = $(WARN_CFLAGS) $(WERROR_CFLAGS) + tar_LDADD = $(LIBS) ../lib/libtar.a ../gnu/libgnu.a\ + $(LIB_ACL) $(LIB_CLOCK_GETTIME) $(LIB_EACCESS)\ + $(LIB_GETRANDOM) $(LIB_HARD_LOCALE) $(FILE_HAS_ACL_LIB) $(LIB_MBRTOWC)\ +- $(LIB_SELINUX) $(LIB_SETLOCALE_NULL) ++ $(LIB_SELINUX) $(LIB_SETLOCALE_NULL) \ ++ $(LIBINTL) $(LIBICONV) +-- +cgit v1.1 From f1480a23ece3d3ae7596235cc3626444e4a62c36 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 7 Sep 2024 22:01:39 -0400 Subject: [PATCH 0270/1574] libpng: build with the bootstrap stdenv on Darwin Using the bootstrap stdenv avoids an infinite recursion from xcbuild depending on libpng depending on xcrun from xcbuild, which is propagated by the non-bootstrap stdenv. --- pkgs/top-level/all-packages.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 936f30814985..4f3b647767f8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21470,7 +21470,16 @@ with pkgs; libplacebo = callPackage ../development/libraries/libplacebo { }; - libpng = callPackage ../development/libraries/libpng { }; + libpng = callPackage ../development/libraries/libpng { + stdenv = + # libpng is a dependency of xcbuild. Avoid an infinite recursion by using a bootstrap stdenv + # that does not propagate xcrun. + if stdenv.hostPlatform.isDarwin then + darwin.bootstrapStdenv + else + stdenv; + }; + libpng12 = callPackage ../development/libraries/libpng/12.nix { }; libpostal = callPackage ../development/libraries/libpostal { }; From 1ebcfd5758083575ecaf172aace1afd3d3d1b8d5 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 29 Sep 2024 14:12:55 -0400 Subject: [PATCH 0271/1574] libuv: Use darwin.libutil on Darwin The Darwin SDK used to provide `libutil.tbd`, but it has been replaced by `libutil.dylib` in the darwin.libutil package. --- pkgs/development/libraries/libuv/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/libraries/libuv/default.nix b/pkgs/development/libraries/libuv/default.nix index 8d1d36344d7e..7f9aac48e725 100644 --- a/pkgs/development/libraries/libuv/default.nix +++ b/pkgs/development/libraries/libuv/default.nix @@ -3,6 +3,7 @@ , fetchFromGitHub , autoconf , automake +, darwin , libtool , pkg-config , pkgsStatic @@ -86,6 +87,8 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ automake autoconf libtool pkg-config ]; + buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ darwin.libutil ]; + preConfigure = '' LIBTOOLIZE=libtoolize ./autogen.sh ''; From 5a60ff8315b67c0d95540329deb207b75c58cfbd Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 7 Sep 2024 22:01:39 -0400 Subject: [PATCH 0272/1574] libxml2: build with the bootstrap stdenv on Darwin Using the bootstrap stdenv avoids an infinite recursion from xcbuild depending on libxml2 depending on xcrun from xcbuild, which is propagated by the non-bootstrap stdenv. --- pkgs/top-level/all-packages.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4f3b647767f8..e822d46ec9e1 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21800,6 +21800,13 @@ with pkgs; libxml2 = callPackage ../development/libraries/libxml2 { python = python3; + stdenv = + # libxml2 is a dependency of xcbuild. Avoid an infinite recursion by using a bootstrap stdenv + # that does not propagate xcrun. + if stdenv.hostPlatform.isDarwin then + darwin.bootstrapStdenv + else + stdenv; }; libxml2Python = let From 25c6fe1dc384173795d50ddbe701f0d87d5049b1 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 22:24:15 -0400 Subject: [PATCH 0273/1574] llvmPackages.clang: backport __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Newer SDKs use this on Darwin. Without it, using the 14.4 and 15.0 SDKs won’t work with clang 16. --- .../compilers/llvm/common/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 72eafab19660..681e563d65a7 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -540,6 +540,23 @@ let libllvmLibdir = "${tools.libllvm.lib}/lib"; }) ] + # Backport version logic from Clang 16. This is needed by the following patch. + ++ lib.optional (lib.versionOlder (lib.versions.major metadata.release_version) "16") (fetchpatch { + name = "clang-darwin-Use-consistent-version-define-stringifying-logic.patch"; + url = "https://github.com/llvm/llvm-project/commit/60a33ded751c86fff9ac1c4bdd2b341fbe4b0649.patch?full_index=1"; + includes = [ "lib/Basic/Targets/OSTargets.cpp" ]; + stripLen = 1; + hash = "sha256-YVTSg5eZLz3po2AUczPNXCK26JA3CuTh6Iqp7hAAKIs="; + }) + # Backport `__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__` support from Clang 17. + # This is needed by newer SDKs (14+). + ++ lib.optional (lib.versionOlder (lib.versions.major metadata.release_version) "17") (fetchpatch { + name = "clang-darwin-An-OS-version-preprocessor-define.patch"; + url = "https://github.com/llvm/llvm-project/commit/c8e2dd8c6f490b68e41fe663b44535a8a21dfeab.patch?full_index=1"; + includes = [ "lib/Basic/Targets/OSTargets.cpp" ]; + stripLen = 1; + hash = "sha256-Vs32kql7N6qtLqc12FtZHURcbenA7+N3E/nRRX3jdig="; + }) ++ lib.optional (lib.versions.major metadata.release_version == "18") (fetchpatch { name = "tweak-tryCaptureVariable-for-unevaluated-lambdas.patch"; url = "https://github.com/llvm/llvm-project/commit/3d361b225fe89ce1d8c93639f27d689082bd8dad.patch"; From 4dc3227d4c4646bec09e13c11087b5f89682c0fe Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 22:06:54 -0400 Subject: [PATCH 0274/1574] llvmPackages.clang: use the system libunwind on Darwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While the Darwin stdenv bootstrap sets up its own clang wrappers and doesn’t provide these wrappers in the final stdenv, it does use them indirectly via the LLVM bootstrap to build LLVM and its libraries. Note on using the system libunwind: It is possible to build and use the LLVM libunwind on Darwin, but using the system by default one ensures everything is using the same unwinder. --- .../compilers/llvm/common/default.nix | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 681e563d65a7..c863d0d8a82a 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -781,16 +781,20 @@ let bintools = bintools'; extraPackages = [ targetLlvmLibraries.compiler-rt-no-libc ] - ++ lib.optionals (!stdenv.targetPlatform.isWasm && !stdenv.targetPlatform.isFreeBSD) [ - targetLlvmLibraries.libunwind - ]; + ++ lib.optionals + ( + !stdenv.targetPlatform.isWasm && !stdenv.targetPlatform.isFreeBSD && !stdenv.targetPlatform.isDarwin + ) + [ + targetLlvmLibraries.libunwind + ]; extraBuildCommands = lib.optionalString (lib.versions.major metadata.release_version == "13") ( '' echo "-rtlib=compiler-rt -Wno-unused-command-line-argument" >> $out/nix-support/cc-cflags echo "-B${targetLlvmLibraries.compiler-rt-no-libc}/lib" >> $out/nix-support/cc-cflags '' - + lib.optionalString (!stdenv.targetPlatform.isWasm) '' + + lib.optionalString (!stdenv.targetPlatform.isWasm && !stdenv.targetPlatform.isDarwin) '' echo "--unwindlib=libunwind" >> $out/nix-support/cc-cflags echo "-L${targetLlvmLibraries.libunwind}/lib" >> $out/nix-support/cc-ldflags '' @@ -811,7 +815,7 @@ let "-B${targetLlvmLibraries.compiler-rt-no-libc}/lib" ] ++ lib.optional ( - !stdenv.targetPlatform.isWasm && !stdenv.targetPlatform.isFreeBSD + !stdenv.targetPlatform.isWasm && !stdenv.targetPlatform.isFreeBSD && !stdenv.targetPlatform.isDarwin ) "--unwindlib=libunwind" ++ lib.optional ( !stdenv.targetPlatform.isWasm @@ -820,7 +824,7 @@ let ) "-lunwind" ++ lib.optional stdenv.targetPlatform.isWasm "-fno-exceptions"; nixSupport.cc-ldflags = lib.optionals ( - !stdenv.targetPlatform.isWasm && !stdenv.targetPlatform.isFreeBSD + !stdenv.targetPlatform.isWasm && !stdenv.targetPlatform.isFreeBSD && !stdenv.targetPlatform.isDarwin ) [ "-L${targetLlvmLibraries.libunwind}/lib" ]; } ); From d3114e05d777039ae04a9c39ce798140ccb81ed9 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 22:06:54 -0400 Subject: [PATCH 0275/1574] llvmPackages.compiler-rt: align Darwin bootstrap with other platforms Instead of using overrides in the stdenv bootstrap, Darwin will be relying on the LLVM bootstrap to build compiler-rt. The only special handling it needs is to use a stdenv with a bootstrap SDK instead of the default one (to avoid infinite recursions). --- .../compilers/llvm/common/default.nix | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index c863d0d8a82a..35525e379f2b 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -1012,14 +1012,11 @@ let let # temp rename to avoid infinite recursion stdenv = - if args.stdenv.hostPlatform.useLLVM or false then + # Darwin needs to use a bootstrap stdenv to avoid an infinite recursion when cross-compiling. + if args.stdenv.hostPlatform.isDarwin then + overrideCC darwin.bootstrapStdenv buildLlvmTools.clangWithLibcAndBasicRtAndLibcxx + else if args.stdenv.hostPlatform.useLLVM or false then overrideCC args.stdenv buildLlvmTools.clangWithLibcAndBasicRtAndLibcxx - else if - lib.versionAtLeast metadata.release_version "16" - && args.stdenv.hostPlatform.isDarwin - && args.stdenv.hostPlatform.isStatic - then - overrideCC args.stdenv buildLlvmTools.clangNoCompilerRtWithLibc else args.stdenv; in @@ -1038,10 +1035,10 @@ let patches = compiler-rtPatches; doFakeLibgcc = stdenv.hostPlatform.useLLVM or false; stdenv = - if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform then - stdenv + # Darwin needs to use a bootstrap stdenv to avoid an infinite recursion when cross-compiling. + if stdenv.hostPlatform.isDarwin then + overrideCC darwin.bootstrapStdenv buildLlvmTools.clangNoLibcNoRt else - # TODO: make this branch unconditional next rebuild overrideCC stdenv buildLlvmTools.clangNoLibcNoRt; }; From 654e19fb8311738c9112dce9409ca37ef4d2103f Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 21:19:20 -0400 Subject: [PATCH 0276/1574] llvmPackages.compiler-rt: always build sanitizers on Darwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also enable TSAN since the SDK has xpc. There’s no reason to disable it. --- .../llvm/common/compiler-rt/default.nix | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index a6d727739d27..d26ce0628c63 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -7,6 +7,8 @@ , src ? null , monorepoSrc ? null , runCommand +, apple-sdk +, apple-sdk_10_13 , cmake , ninja , python3 @@ -46,6 +48,14 @@ let baseName = "compiler-rt"; pname = baseName + lib.optionalString (haveLibc) "-libc"; + # Sanitizers require 10.13 or newer. Instead of disabling them for most x86_64-darwin users, + # build them with a newer SDK and the default (10.12) deployment target. + apple-sdk' = + if lib.versionOlder (lib.getVersion apple-sdk) "10.13" then + apple-sdk_10_13.override { enableBootstrap = true; } + else + apple-sdk.override { enableBootstrap = true; }; + src' = if monorepoSrc != null then runCommand "${baseName}-src-${version}" {} '' mkdir -p "$out" @@ -129,29 +139,20 @@ stdenv.mkDerivation ({ "-DDARWIN_macosx_OVERRIDE_SDK_VERSION=ON" "-DDARWIN_osx_ARCHS=${stdenv.hostPlatform.darwinArch}" "-DDARWIN_osx_BUILTIN_ARCHS=${stdenv.hostPlatform.darwinArch}" + "-DSANITIZER_MIN_OSX_VERSION=${stdenv.hostPlatform.darwinMinVersion}" ] ++ lib.optionals (lib.versionAtLeast release_version "15") [ # `COMPILER_RT_DEFAULT_TARGET_ONLY` does not apply to Darwin: # https://github.com/llvm/llvm-project/blob/27ef42bec80b6c010b7b3729ed0528619521a690/compiler-rt/cmake/base-config-ix.cmake#L153 "-DCOMPILER_RT_ENABLE_IOS=OFF" - ]) ++ lib.optionals (lib.versionAtLeast version "19" && stdenv.hostPlatform.isDarwin && lib.versionOlder stdenv.hostPlatform.darwinMinVersion "10.13") [ - "-DSANITIZER_MIN_OSX_VERSION=10.10" - ] ++ lib.optionals (noSanitizers && lib.versionAtLeast release_version "19") [ + ]) ++ lib.optionals (noSanitizers && lib.versionAtLeast release_version "19") [ "-DCOMPILER_RT_BUILD_CTX_PROFILE=OFF" ] ++ devExtraCmakeFlags; outputs = [ "out" "dev" ]; - # TSAN requires XPC on Darwin, which we have no public/free source files for. We can depend on the Apple frameworks - # to get it, but they're unfree. Since LLVM is rather central to the stdenv, we patch out TSAN support so that Hydra - # can build this. If we didn't do it, basically the entire nixpkgs on Darwin would have an unfree dependency and we'd - # get no binary cache for the entire platform. If you really find yourself wanting the TSAN, make this controllable by - # a flag and turn the flag off during the stdenv build. postPatch = lib.optionalString (!stdenv.hostPlatform.isDarwin) '' substituteInPlace cmake/builtin-config-ix.cmake \ --replace 'set(X86 i386)' 'set(X86 i386 i486 i586 i686)' - '' + lib.optionalString stdenv.hostPlatform.isDarwin '' - substituteInPlace cmake/config-ix.cmake \ - --replace 'set(COMPILER_RT_HAS_TSAN TRUE)' 'set(COMPILER_RT_HAS_TSAN FALSE)' '' + lib.optionalString (!haveLibc) ((lib.optionalString (lib.versionAtLeast release_version "18") '' substituteInPlace lib/builtins/aarch64/sme-libc-routines.c \ --replace "" "" From 7647c6834a3b1390634842d8097dfa839cab0c89 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 21:19:20 -0400 Subject: [PATCH 0277/1574] llvmPackages.compiler-rt: avoid propagating the SDK in static builds --- .../compilers/llvm/common/compiler-rt/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index d26ce0628c63..bc8a1e82c834 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -81,7 +81,10 @@ stdenv.mkDerivation ({ ++ lib.optional stdenv.hostPlatform.isDarwin xcbuild.xcrun; buildInputs = lib.optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isRiscV) linuxHeaders - ++ lib.optional (stdenv.hostPlatform.isFreeBSD) freebsd.include; + ++ lib.optional (stdenv.hostPlatform.isFreeBSD) freebsd.include + # Adding the bootstrap SDK to `buildInputs` on static builds propagates it, breaking `xcrun`. + # This can be removed once the minimum SDK >10.12 on x86_64-darwin. + ++ lib.optionals (stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isStatic) [ apple-sdk' ]; env.NIX_CFLAGS_COMPILE = toString ([ "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" From 2fd9a1abeb51a0cc5a43d07151752f4e40908ff1 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 21:19:20 -0400 Subject: [PATCH 0278/1574] llvmPackages.compiler-rt: drop use of xcbuild compiler-rt supports specifying the SDK path and version, so do that to avoid needing to include `xcrun` as a native build input, which simplifies the bootstrap. --- .../compilers/llvm/common/compiler-rt/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index bc8a1e82c834..dad5c504f08a 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -12,7 +12,6 @@ , cmake , ninja , python3 -, xcbuild , libllvm , libcxx , linuxHeaders @@ -77,8 +76,7 @@ stdenv.mkDerivation ({ nativeBuildInputs = [ cmake ] ++ (lib.optional (lib.versionAtLeast release_version "15") ninja) - ++ [ python3 libllvm.dev ] - ++ lib.optional stdenv.hostPlatform.isDarwin xcbuild.xcrun; + ++ [ python3 libllvm.dev ]; buildInputs = lib.optional (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isRiscV) linuxHeaders ++ lib.optional (stdenv.hostPlatform.isFreeBSD) freebsd.include @@ -139,7 +137,8 @@ stdenv.mkDerivation ({ ] ++ lib.optionals (stdenv.hostPlatform.isDarwin) (lib.optionals (lib.versionAtLeast release_version "16") [ "-DCMAKE_LIPO=${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}lipo" ] ++ [ - "-DDARWIN_macosx_OVERRIDE_SDK_VERSION=ON" + "-DDARWIN_macosx_CACHED_SYSROOT=${apple-sdk'.sdkroot}" + "-DDARWIN_macosx_OVERRIDE_SDK_VERSION=${lib.versions.majorMinor (lib.getVersion apple-sdk)}" "-DDARWIN_osx_ARCHS=${stdenv.hostPlatform.darwinArch}" "-DDARWIN_osx_BUILTIN_ARCHS=${stdenv.hostPlatform.darwinArch}" "-DSANITIZER_MIN_OSX_VERSION=${stdenv.hostPlatform.darwinMinVersion}" From e6a4c83d20d7e8ae3866f751becb1f40ec7916b3 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 21:19:20 -0400 Subject: [PATCH 0279/1574] llvmPackages.compiler-rt: fix compiler-rt bootstrap on Darwin MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first build of compiler-rt in the LLVM bootstrap is build without libc++ being available, which causes support for the `-g` flag to be detected incorrectly on Darwin. Overriding the check by specifying that it’s usable allows the first build of compiler-rt to succeed. --- .../compilers/llvm/common/compiler-rt/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index dad5c504f08a..8a2cec518033 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -136,6 +136,11 @@ stdenv.mkDerivation ({ "-DCOMPILER_RT_OS_DIR=baremetal" ] ++ lib.optionals (stdenv.hostPlatform.isDarwin) (lib.optionals (lib.versionAtLeast release_version "16") [ "-DCMAKE_LIPO=${lib.getBin stdenv.cc.bintools.bintools}/bin/${stdenv.cc.targetPrefix}lipo" + ] ++ lib.optionals (!haveLibcxx) [ + # Darwin fails to detect that the compiler supports the `-g` flag when there is no libc++ during the + # compiler-rt bootstrap, which prevents compiler-rt from building. The `-g` flag is required by the + # Darwin support, so force it to be enabled during the first stage of the compiler-rt bootstrap. + "-DCOMPILER_RT_HAS_G_FLAG=ON" ] ++ [ "-DDARWIN_macosx_CACHED_SYSROOT=${apple-sdk'.sdkroot}" "-DDARWIN_macosx_OVERRIDE_SDK_VERSION=${lib.versions.majorMinor (lib.getVersion apple-sdk)}" From 3e5acdacdd54b1c8d9c254d6cc722cef7b01aef8 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 21:19:20 -0400 Subject: [PATCH 0280/1574] llvmPackages.compiler-rt: fix cross-compilation on Darwin When compiler-rt targets Darwin, it is built with `-target`, which causes clang to try to invoke `ld` without a target prefix (e.g., it will try to exec `ld` instead of `x86_64-apple-darwin-ld` on a cross-build to x86_64-darwin). Specifying `--ld-path` overrides that behavior, allowing it to find the appropriate cross-linker. --- .../llvm/common/compiler-rt/default.nix | 25 +++++++++++-------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix index 8a2cec518033..ad8d837b77ac 100644 --- a/pkgs/development/compilers/llvm/common/compiler-rt/default.nix +++ b/pkgs/development/compilers/llvm/common/compiler-rt/default.nix @@ -84,16 +84,21 @@ stdenv.mkDerivation ({ # This can be removed once the minimum SDK >10.12 on x86_64-darwin. ++ lib.optionals (stdenv.hostPlatform.isDarwin && !stdenv.hostPlatform.isStatic) [ apple-sdk' ]; - env.NIX_CFLAGS_COMPILE = toString ([ - "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" - ] ++ lib.optionals (!haveLibc) [ - # The compiler got stricter about this, and there is a usellvm patch below - # which patches out the assert include causing an implicit definition of - # assert. It would be nicer to understand why compiler-rt thinks it should - # be able to #include in the first place; perhaps it's in the - # wrong, or perhaps there is a way to provide an assert.h. - "-Wno-error=implicit-function-declaration" - ]); + env = { + NIX_CFLAGS_COMPILE = toString ([ + "-DSCUDO_DEFAULT_OPTIONS=DeleteSizeMismatch=0:DeallocationTypeMismatch=0" + ] ++ lib.optionals (!haveLibc) [ + # The compiler got stricter about this, and there is a usellvm patch below + # which patches out the assert include causing an implicit definition of + # assert. It would be nicer to understand why compiler-rt thinks it should + # be able to #include in the first place; perhaps it's in the + # wrong, or perhaps there is a way to provide an assert.h. + "-Wno-error=implicit-function-declaration" + ]); + } // lib.optionalAttrs (stdenv.hostPlatform.isDarwin) { + # Work around clang’s trying to invoke unprefixed-ld on Darwin when `-target` is passed. + NIX_CFLAGS_LINK = "--ld-path=${stdenv.cc.bintools}/bin/${stdenv.cc.targetPrefix}ld"; + }; cmakeFlags = [ "-DCOMPILER_RT_DEFAULT_TARGET_ONLY=ON" From 18211adceb903a2efc9cf99e36c87718ba3846c3 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 22:06:54 -0400 Subject: [PATCH 0281/1574] llvmPackages.libcxx: use a bootstrap stdenv on Darwin Using a bootstrap stdenv is needed to avoid infinite recursions that occur due to inputs propagated by SDK that depend on libc++. --- pkgs/development/compilers/llvm/common/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/compilers/llvm/common/default.nix b/pkgs/development/compilers/llvm/common/default.nix index 35525e379f2b..414313422064 100644 --- a/pkgs/development/compilers/llvm/common/default.nix +++ b/pkgs/development/compilers/llvm/common/default.nix @@ -1120,7 +1120,11 @@ let ) # https://github.com/llvm/llvm-project/issues/64226 (metadata.getVersionFile "libcxx/0001-darwin-10.12-mbstate_t-fix.patch"); - stdenv = overrideCC stdenv buildLlvmTools.clangWithLibcAndBasicRt; + stdenv = + if stdenv.hostPlatform.isDarwin then + overrideCC darwin.bootstrapStdenv buildLlvmTools.clangWithLibcAndBasicRt + else + overrideCC stdenv buildLlvmTools.clangWithLibcAndBasicRt; } // lib.optionalAttrs (lib.versionOlder metadata.release_version "14") { # TODO: remove this, causes LLVM 13 packages rebuild. From 34ce30c35aa9c0da664b7afebddf66c71131d54a Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 23 Sep 2024 22:06:54 -0400 Subject: [PATCH 0282/1574] llvmPackages.libllvm: disable tests when built in the Darwin bootstrap MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When using the LLVM bootstrap to build LLVM and its libraries, overriding just LLVM to disable tests during the first build doesn’t seem to work. This stage name should remain stable, so check for it and disable tests when building in it. --- .../compilers/llvm/common/llvm/default.nix | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/pkgs/development/compilers/llvm/common/llvm/default.nix b/pkgs/development/compilers/llvm/common/llvm/default.nix index 281a21ca1524..bdaeb23827c1 100644 --- a/pkgs/development/compilers/llvm/common/llvm/default.nix +++ b/pkgs/development/compilers/llvm/common/llvm/default.nix @@ -17,6 +17,7 @@ # TODO: Can this memory corruption bug still occur? # , enableGoldPlugin ? libbfd.hasPluginAPI +, ld64 , libbfd , libpfm , libxml2 @@ -46,6 +47,11 @@ let inherit (lib) optional optionals optionalString; + # Is there a better way to do this? Darwin wants to disable tests in the first + # LLVM rebuild, but overriding doesn’t work when building libc++, libc++abi, + # and libunwind. It also wants to disable LTO in the first rebuild. + isDarwinBootstrap = lib.getName stdenv == "bootstrap-stage-xclang-stdenv-darwin"; + # Used when creating a version-suffixed symlink of libLLVM.dylib shortVersion = lib.concatStringsSep "." (lib.take 1 (lib.splitString "." release_version)); @@ -66,7 +72,7 @@ let # # So, we "manually" assemble one python derivation for the package to depend # on, taking into account whether checks are enabled or not: - python = if doCheck then + python = if doCheck && !isDarwinBootstrap then # Note that we _explicitly_ ask for a python interpreter for our host # platform here; the splicing that would ordinarily take care of this for # us does not seem to work once we use `withPackages`. @@ -91,14 +97,14 @@ let patches' = patches ++ lib.optionals enablePolly pollyPatches; in -stdenv.mkDerivation (rec { +stdenv.mkDerivation (finalAttrs: { inherit pname version; src = src'; patches = patches'; sourceRoot = if lib.versionOlder release_version "13" then null - else "${src.name}/${pname}"; + else "${finalAttrs.src.name}/${pname}"; outputs = [ "out" "lib" "dev" "python" ]; @@ -342,13 +348,13 @@ stdenv.mkDerivation (rec { ]; in flagsForLlvmConfig ++ [ "-DLLVM_INSTALL_UTILS=ON" # Needed by rustc - "-DLLVM_BUILD_TESTS=${if doCheck then "ON" else "OFF"}" + "-DLLVM_BUILD_TESTS=${if finalAttrs.finalPackage.doCheck then "ON" else "OFF"}" "-DLLVM_ENABLE_FFI=ON" "-DLLVM_HOST_TRIPLE=${stdenv.hostPlatform.config}" "-DLLVM_DEFAULT_TARGET_TRIPLE=${stdenv.hostPlatform.config}" "-DLLVM_ENABLE_DUMP=ON" (lib.cmakeBool "LLVM_ENABLE_TERMINFO" enableTerminfo) - ] ++ optionals (!doCheck) [ + ] ++ optionals (!finalAttrs.finalPackage.doCheck) [ "-DLLVM_INCLUDE_TESTS=OFF" ] ++ optionals stdenv.hostPlatform.isStatic [ # Disables building of shared libs, -fPIC is still injected by cc-wrapper @@ -428,7 +434,7 @@ stdenv.mkDerivation (rec { cp NATIVE/bin/llvm-config $dev/bin/llvm-config-native ''); - inherit doCheck; + doCheck = !isDarwinBootstrap && doCheck; checkTarget = "check-all"; From bf45402971c5773a7c07eb8000a2d84395fd4294 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 7 Sep 2024 22:01:39 -0400 Subject: [PATCH 0283/1574] ncurses: build with the bootstrap stdenv on Darwin Using the bootstrap stdenv avoids an infinite recursion from xcbuild depending on ncurses depending on xcrun from xcbuild, which is propagated by the non-bootstrap stdenv. --- pkgs/top-level/all-packages.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index e822d46ec9e1..c081a7026bef 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -22201,7 +22201,14 @@ with pkgs; ncurses = if stdenv.hostPlatform.useiOSPrebuilt then null - else callPackage ../development/libraries/ncurses { }; + else callPackage ../development/libraries/ncurses { + # ncurses is included in the SDK. Avoid an infinite recursion by using a bootstrap stdenv. + stdenv = + if stdenv.isDarwin then + darwin.bootstrapStdenv + else + stdenv; + }; ndi = callPackage ../development/libraries/ndi { }; From aef4614421f4d8142d627bb3dcdbb013549fc573 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 2 Oct 2024 19:07:09 -0400 Subject: [PATCH 0284/1574] xar: add xarMinimal xarMinimal allows e2fsprogs to build fuse2fs again on Darwin. See https://github.com/NixOS/nixpkgs/pull/339412. --- pkgs/by-name/xa/xar/package.nix | 2 +- pkgs/top-level/all-packages.nix | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/xa/xar/package.nix b/pkgs/by-name/xa/xar/package.nix index 4ad071f36a1f..1331041c98af 100644 --- a/pkgs/by-name/xa/xar/package.nix +++ b/pkgs/by-name/xa/xar/package.nix @@ -30,7 +30,7 @@ xar, }: stdenv.mkDerivation (finalAttrs: { - pname = "xar"; + pname = "xar${lib.optionalString (e2fsprogs == null) "-minimal"}"; version = "498"; src = fetchFromGitHub { diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c081a7026bef..d607957706aa 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13874,6 +13874,10 @@ with pkgs; zig = buildPackages.zig_0_12; }; + # A minimal xar is needed to break an infinite recursion between macfuse-stubs and xar. + # It is also needed to reduce the amount of unnecessary stuff in the Darwin bootstrap. + xarMinimal = callPackage ../by-name/xa/xar/package.nix { e2fsprogs = null; }; + xclip = callPackage ../tools/misc/xclip { }; xcur2png = callPackage ../tools/graphics/xcur2png { }; From 45e65c16d24be282fab4d7a5138fb087b5fa3bda Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 22 Sep 2024 18:33:28 -0400 Subject: [PATCH 0285/1574] xcbuild: move to pkgs/by-name --- .../tools => by-name/xc}/xcbuild/default.nix | 0 .../tools => by-name/xc}/xcbuild/includes.patch | 0 .../wrapper.nix => by-name/xc/xcbuild/package.nix} | 0 .../tools => by-name/xc}/xcbuild/platforms.nix | 0 .../tools => by-name/xc}/xcbuild/sdks.nix | 0 .../tools => by-name/xc}/xcbuild/setup-hook.sh | 0 .../tools => by-name/xc}/xcbuild/toolchains.nix | 0 pkgs/top-level/all-packages.nix | 14 +++++++++++--- 8 files changed, 11 insertions(+), 3 deletions(-) rename pkgs/{development/tools => by-name/xc}/xcbuild/default.nix (100%) rename pkgs/{development/tools => by-name/xc}/xcbuild/includes.patch (100%) rename pkgs/{development/tools/xcbuild/wrapper.nix => by-name/xc/xcbuild/package.nix} (100%) rename pkgs/{development/tools => by-name/xc}/xcbuild/platforms.nix (100%) rename pkgs/{development/tools => by-name/xc}/xcbuild/sdks.nix (100%) rename pkgs/{development/tools => by-name/xc}/xcbuild/setup-hook.sh (100%) rename pkgs/{development/tools => by-name/xc}/xcbuild/toolchains.nix (100%) diff --git a/pkgs/development/tools/xcbuild/default.nix b/pkgs/by-name/xc/xcbuild/default.nix similarity index 100% rename from pkgs/development/tools/xcbuild/default.nix rename to pkgs/by-name/xc/xcbuild/default.nix diff --git a/pkgs/development/tools/xcbuild/includes.patch b/pkgs/by-name/xc/xcbuild/includes.patch similarity index 100% rename from pkgs/development/tools/xcbuild/includes.patch rename to pkgs/by-name/xc/xcbuild/includes.patch diff --git a/pkgs/development/tools/xcbuild/wrapper.nix b/pkgs/by-name/xc/xcbuild/package.nix similarity index 100% rename from pkgs/development/tools/xcbuild/wrapper.nix rename to pkgs/by-name/xc/xcbuild/package.nix diff --git a/pkgs/development/tools/xcbuild/platforms.nix b/pkgs/by-name/xc/xcbuild/platforms.nix similarity index 100% rename from pkgs/development/tools/xcbuild/platforms.nix rename to pkgs/by-name/xc/xcbuild/platforms.nix diff --git a/pkgs/development/tools/xcbuild/sdks.nix b/pkgs/by-name/xc/xcbuild/sdks.nix similarity index 100% rename from pkgs/development/tools/xcbuild/sdks.nix rename to pkgs/by-name/xc/xcbuild/sdks.nix diff --git a/pkgs/development/tools/xcbuild/setup-hook.sh b/pkgs/by-name/xc/xcbuild/setup-hook.sh similarity index 100% rename from pkgs/development/tools/xcbuild/setup-hook.sh rename to pkgs/by-name/xc/xcbuild/setup-hook.sh diff --git a/pkgs/development/tools/xcbuild/toolchains.nix b/pkgs/by-name/xc/xcbuild/toolchains.nix similarity index 100% rename from pkgs/development/tools/xcbuild/toolchains.nix rename to pkgs/by-name/xc/xcbuild/toolchains.nix diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index d607957706aa..4df69b1c1603 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18701,14 +18701,22 @@ with pkgs; xcode-install = callPackage ../development/tools/xcode-install { }; - xcodebuild = callPackage ../development/tools/xcbuild/wrapper.nix { + xcbuild = callPackage ../by-name/xc/xcbuild/package.nix { inherit (darwin.apple_sdk.frameworks) CoreServices CoreGraphics ImageIO; + stdenv = + # xcbuild is included in the SDK. Avoid an infinite recursion by using a bootstrap stdenv. + if stdenv.hostPlatform.isDarwin then + darwin.bootstrapStdenv + else + stdenv; }; - xcbuild = xcodebuild; + xcbuildHook = makeSetupHook { name = "xcbuild-hook"; propagatedBuildInputs = [ xcbuild ]; - } ../development/tools/xcbuild/setup-hook.sh ; + } ../by-name/xc/xcbuild/setup-hook.sh; + + xcodebuild = xcbuild; xcpretty = callPackage ../development/tools/xcpretty { }; From f51c62a7f8bedf65e819b428b8948f861e3c4072 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Thu, 3 Oct 2024 19:06:50 -0400 Subject: [PATCH 0286/1574] xcbuild: format with nixfmt-rfc-style --- pkgs/by-name/xc/xcbuild/package.nix | 244 +++++++++++++++------------- 1 file changed, 131 insertions(+), 113 deletions(-) diff --git a/pkgs/by-name/xc/xcbuild/package.nix b/pkgs/by-name/xc/xcbuild/package.nix index 9c8c846e5cca..e533eda9a9e9 100644 --- a/pkgs/by-name/xc/xcbuild/package.nix +++ b/pkgs/by-name/xc/xcbuild/package.nix @@ -1,9 +1,18 @@ -{ lib, stdenv, makeWrapper, writeText, writeTextFile, runCommand, callPackage -, CoreServices, ImageIO, CoreGraphics -, xcodePlatform ? stdenv.targetPlatform.xcodePlatform or "MacOSX" -, xcodeVer ? stdenv.targetPlatform.xcodeVer or "9.4.1" -, sdkVer ? stdenv.targetPlatform.darwinSdkVersion or "10.12" -, productBuildVer ? null +{ + lib, + stdenv, + makeWrapper, + writeText, + writeTextFile, + runCommand, + callPackage, + CoreServices, + ImageIO, + CoreGraphics, + xcodePlatform ? stdenv.targetPlatform.xcodePlatform or "MacOSX", + xcodeVer ? stdenv.targetPlatform.xcodeVer or "9.4.1", + sdkVer ? stdenv.targetPlatform.darwinSdkVersion or "10.12", + productBuildVer ? null, }: let @@ -17,38 +26,45 @@ let xcodeSelectVersion = "2349"; xcbuild = callPackage ./default.nix { - inherit CoreServices ImageIO CoreGraphics stdenv; + inherit + CoreServices + ImageIO + CoreGraphics + stdenv + ; }; - toolchains = callPackage ./toolchains.nix { - inherit toolchainName stdenv; - }; + toolchains = callPackage ./toolchains.nix { inherit toolchainName stdenv; }; sdks = callPackage ./sdks.nix { - inherit toolchainName sdkName xcodePlatform sdkVer productBuildVer; + inherit + toolchainName + sdkName + xcodePlatform + sdkVer + productBuildVer + ; }; - platforms = callPackage ./platforms.nix { - inherit sdks xcodePlatform stdenv; - }; + platforms = callPackage ./platforms.nix { inherit sdks xcodePlatform stdenv; }; xcconfig = writeText "nix.xcconfig" '' SDKROOT=${sdkName} ''; xcode-select = writeText "xcode-select" '' -#!${stdenv.shell} -while [ $# -gt 0 ]; do - case "$1" in - -h | --help) ;; # noop - -s | --switch) shift;; # noop - -r | --reset) ;; # noop - -v | --version) echo xcode-select version ${xcodeSelectVersion} ;; - -p | -print-path | --print-path) echo @DEVELOPER_DIR@ ;; - --install) ;; # noop - esac - shift -done + #!${stdenv.shell} + while [ $# -gt 0 ]; do + case "$1" in + -h | --help) ;; # noop + -s | --switch) shift;; # noop + -r | --reset) ;; # noop + -v | --version) echo xcode-select version ${xcodeSelectVersion} ;; + -p | -print-path | --print-path) echo @DEVELOPER_DIR@ ;; + --install) ;; # noop + esac + shift + done ''; xcrun = writeTextFile { @@ -56,49 +72,49 @@ done executable = true; destination = "/bin/xcrun"; text = '' -#!${stdenv.shell} -args=( "$@" ) + #!${stdenv.shell} + args=( "$@" ) -# If an SDK was requested, check that it matches. -for ((i = 0; i < ''${#args[@]}; i++)); do - case "''${args[i]}" in - --sdk | -sdk) - i=$((i + 1)) - if [[ "''${args[i]}" != '${xcrunSdkName}' ]]; then - echo >&2 "xcodebuild: error: SDK \"''${args[i]}\" cannot be located." - exit 1 + # If an SDK was requested, check that it matches. + for ((i = 0; i < ''${#args[@]}; i++)); do + case "''${args[i]}" in + --sdk | -sdk) + i=$((i + 1)) + if [[ "''${args[i]}" != '${xcrunSdkName}' ]]; then + echo >&2 "xcodebuild: error: SDK \"''${args[i]}\" cannot be located." + exit 1 + fi + ;; + esac + done + + while [ $# -gt 0 ]; do + case "$1" in + --sdk | -sdk) shift ;; + --toolchain | -toolchain) shift ;; + --find | -find | -f) + shift + command -v $1 || exit 1 ;; + --log | -log) ;; # noop + --verbose | -verbose) ;; # noop + --no-cache | -no-cache) ;; # noop + --kill-cache | -kill-cache) ;; # noop + --show-sdk-path | -show-sdk-path) + echo ${sdks}/${sdkName}.sdk ;; + --show-sdk-platform-path | -show-sdk-platform-path) + echo ${platforms}/${xcodePlatform}.platform ;; + --show-sdk-version | -show-sdk-version) + echo ${sdkVer} ;; + --show-sdk-build-version | -show-sdk-build-version) + echo ${sdkBuildVersion} ;; + *) break ;; + esac + shift + done + + if ! [[ -z "$@" ]]; then + exec "$@" fi - ;; - esac -done - -while [ $# -gt 0 ]; do - case "$1" in - --sdk | -sdk) shift ;; - --toolchain | -toolchain) shift ;; - --find | -find | -f) - shift - command -v $1 || exit 1 ;; - --log | -log) ;; # noop - --verbose | -verbose) ;; # noop - --no-cache | -no-cache) ;; # noop - --kill-cache | -kill-cache) ;; # noop - --show-sdk-path | -show-sdk-path) - echo ${sdks}/${sdkName}.sdk ;; - --show-sdk-platform-path | -show-sdk-platform-path) - echo ${platforms}/${xcodePlatform}.platform ;; - --show-sdk-version | -show-sdk-version) - echo ${sdkVer} ;; - --show-sdk-build-version | -show-sdk-build-version) - echo ${sdkBuildVersion} ;; - *) break ;; - esac - shift -done - -if ! [[ -z "$@" ]]; then - exec "$@" -fi ''; checkPhase = '' ${stdenv.shellDryRun} "$target" @@ -107,61 +123,63 @@ fi in -runCommand "xcodebuild-${xcbuild.version}" { - nativeBuildInputs = [ makeWrapper ]; - inherit (xcbuild) meta; +runCommand "xcodebuild-${xcbuild.version}" + { + nativeBuildInputs = [ makeWrapper ]; + inherit (xcbuild) meta; - # ensure that the toolchain goes in PATH - propagatedBuildInputs = [ "${toolchains}/XcodeDefault.xctoolchain" ]; + # ensure that the toolchain goes in PATH + propagatedBuildInputs = [ "${toolchains}/XcodeDefault.xctoolchain" ]; - passthru = { - inherit xcbuild xcrun; - toolchain = "${toolchains}/XcodeDefault.xctoolchain"; - sdk = "${sdks}/${sdkName}"; - platform = "${platforms}/${xcodePlatform}.platform"; - }; + passthru = { + inherit xcbuild xcrun; + toolchain = "${toolchains}/XcodeDefault.xctoolchain"; + sdk = "${sdks}/${sdkName}"; + platform = "${platforms}/${xcodePlatform}.platform"; + }; - preferLocalBuild = true; -} '' - mkdir -p $out/bin + preferLocalBuild = true; + } + '' + mkdir -p $out/bin - ln -s $out $out/usr + ln -s $out $out/usr - mkdir -p $out/Library/Xcode - ln -s ${xcbuild}/Library/Xcode/Specifications $out/Library/Xcode/Specifications + mkdir -p $out/Library/Xcode + ln -s ${xcbuild}/Library/Xcode/Specifications $out/Library/Xcode/Specifications - ln -s ${platforms} $out/Platforms - ln -s ${toolchains} $out/Toolchains + ln -s ${platforms} $out/Platforms + ln -s ${toolchains} $out/Toolchains - mkdir -p $out/Applications/Xcode.app/Contents - ln -s $out $out/Applications/Xcode.app/Contents/Developer + mkdir -p $out/Applications/Xcode.app/Contents + ln -s $out $out/Applications/Xcode.app/Contents/Developer - # The native xcodebuild command supports an invocation like "xcodebuild -version -sdk" without specifying the specific SDK, so we simulate this by - # detecting this case and simulating the output; printing the header and appending the normal output via appending the sdk version to the positional - # arguments we pass through to the wrapped xcodebuild. - makeWrapper ${xcbuild}/bin/xcodebuild $out/bin/xcodebuild \ - --add-flags "-xcconfig ${xcconfig}" \ - --add-flags "DERIVED_DATA_DIR=." \ - --set DEVELOPER_DIR "$out" \ - --set SDKROOT ${sdkName} \ - --run '[ "$#" -eq 2 ] && [ "$1" = "-version" ] && [ "$2" = "-sdk" ] && echo ${sdkName}.sdk - macOS ${sdkVer} \(macosx${sdkVer}\) && set -- "$@" "${sdkName}"' \ - --run '[ "$1" = "-version" ] && [ "$#" -eq 1 ] && (echo Xcode ${xcodeVer}; echo Build version ${sdkBuildVersion}) && exit 0' \ - --run '[ "$1" = "-license" ] && exit 0' + # The native xcodebuild command supports an invocation like "xcodebuild -version -sdk" without specifying the specific SDK, so we simulate this by + # detecting this case and simulating the output; printing the header and appending the normal output via appending the sdk version to the positional + # arguments we pass through to the wrapped xcodebuild. + makeWrapper ${xcbuild}/bin/xcodebuild $out/bin/xcodebuild \ + --add-flags "-xcconfig ${xcconfig}" \ + --add-flags "DERIVED_DATA_DIR=." \ + --set DEVELOPER_DIR "$out" \ + --set SDKROOT ${sdkName} \ + --run '[ "$#" -eq 2 ] && [ "$1" = "-version" ] && [ "$2" = "-sdk" ] && echo ${sdkName}.sdk - macOS ${sdkVer} \(macosx${sdkVer}\) && set -- "$@" "${sdkName}"' \ + --run '[ "$1" = "-version" ] && [ "$#" -eq 1 ] && (echo Xcode ${xcodeVer}; echo Build version ${sdkBuildVersion}) && exit 0' \ + --run '[ "$1" = "-license" ] && exit 0' - substitute ${xcode-select} $out/bin/xcode-select \ - --subst-var-by DEVELOPER_DIR $out/Applications/Xcode.app/Contents/Developer - chmod +x $out/bin/xcode-select + substitute ${xcode-select} $out/bin/xcode-select \ + --subst-var-by DEVELOPER_DIR $out/Applications/Xcode.app/Contents/Developer + chmod +x $out/bin/xcode-select - cp ${xcrun}/bin/xcrun $out/bin/xcrun + cp ${xcrun}/bin/xcrun $out/bin/xcrun - for bin in PlistBuddy actool builtin-copy builtin-copyPlist \ - builtin-copyStrings builtin-copyTiff \ - builtin-embeddedBinaryValidationUtility \ - builtin-infoPlistUtility builtin-lsRegisterURL \ - builtin-productPackagingUtility builtin-validationUtility \ - lsbom plutil; do - ln -s ${xcbuild}/bin/$bin $out/bin/$bin - done + for bin in PlistBuddy actool builtin-copy builtin-copyPlist \ + builtin-copyStrings builtin-copyTiff \ + builtin-embeddedBinaryValidationUtility \ + builtin-infoPlistUtility builtin-lsRegisterURL \ + builtin-productPackagingUtility builtin-validationUtility \ + lsbom plutil; do + ln -s ${xcbuild}/bin/$bin $out/bin/$bin + done - fixupPhase -'' + fixupPhase + '' From 15ac6579425fe3bf65604d806c9d5711db3c85d5 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 22 Sep 2024 18:44:26 -0400 Subject: [PATCH 0287/1574] xcbuild: refactor to support the new SDKs Take advantage of the new Darwin SDKs to dynamically determine SDK information such as path, version, and binaries (via `xcrun --find`). This is accomplished by relying on the existance of `DEVELOPER_DIR`, which the SDK will set up in nixpkgs. --- pkgs/by-name/xc/xcbuild/default.nix | 80 ----- pkgs/by-name/xc/xcbuild/package.nix | 270 +++++++--------- .../xc/xcbuild/{ => patches}/includes.patch | 0 pkgs/by-name/xc/xcbuild/platforms.nix | 301 ------------------ pkgs/by-name/xc/xcbuild/sdks.nix | 32 -- pkgs/by-name/xc/xcbuild/toolchains.nix | 73 ----- pkgs/top-level/all-packages.nix | 1 - 7 files changed, 108 insertions(+), 649 deletions(-) delete mode 100644 pkgs/by-name/xc/xcbuild/default.nix rename pkgs/by-name/xc/xcbuild/{ => patches}/includes.patch (100%) delete mode 100644 pkgs/by-name/xc/xcbuild/platforms.nix delete mode 100644 pkgs/by-name/xc/xcbuild/sdks.nix delete mode 100644 pkgs/by-name/xc/xcbuild/toolchains.nix diff --git a/pkgs/by-name/xc/xcbuild/default.nix b/pkgs/by-name/xc/xcbuild/default.nix deleted file mode 100644 index e30700ca2025..000000000000 --- a/pkgs/by-name/xc/xcbuild/default.nix +++ /dev/null @@ -1,80 +0,0 @@ -{ lib, stdenv, cmake, fetchFromGitHub, zlib, libxml2, libpng -, CoreServices, CoreGraphics, ImageIO, ninja }: - -let - googletest = fetchFromGitHub { - owner = "google"; - repo = "googletest"; - rev = "43359642a1c16ad3f4fc575c7edd0cb935810815"; - sha256 = "0y4xaah62fjr3isaryc3vfz3mn9xflr00vchdimj8785milxga4q"; - }; - - linenoise = fetchFromGitHub { - owner = "antirez"; - repo = "linenoise"; - rev = "c894b9e59f02203dbe4e2be657572cf88c4230c3"; - sha256 = "0wasql7ph5g473zxhc2z47z3pjp42q0dsn4gpijwzbxawid71b4w"; - }; -in stdenv.mkDerivation { - pname = "xcbuild"; - - # Once a version is released that includes - # https://github.com/facebook/xcbuild/commit/183c087a6484ceaae860c6f7300caf50aea0d710, - # we can stop doing this -pre thing. - version = "0.1.2-pre"; - - src = fetchFromGitHub { - owner = "facebook"; - repo = "xcbuild"; - rev = "32b9fbeb69bfa2682bd0351ec2f14548aaedd554"; - sha256 = "1xxwg2849jizxv0g1hy0b1m3i7iivp9bmc4f5pi76swsn423d41m"; - }; - - patches = [ ./includes.patch ]; - - prePatch = '' - rmdir ThirdParty/* - cp -r --no-preserve=all ${googletest} ThirdParty/googletest - cp -r --no-preserve=all ${linenoise} ThirdParty/linenoise - ''; - - postPatch = lib.optionalString (!stdenv.hostPlatform.isDarwin) '' - # Fix build on gcc-13 due to missing includes - sed -e '1i #include ' -i \ - Libraries/libutil/Headers/libutil/Permissions.h \ - Libraries/pbxbuild/Headers/pbxbuild/Tool/AuxiliaryFile.h \ - Libraries/pbxbuild/Headers/pbxbuild/Tool/Invocation.h - - # Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror. - sed 1i'#include ' \ - -i Libraries/xcassets/Headers/xcassets/Slot/SystemVersion.h - '' + lib.optionalString stdenv.hostPlatform.isDarwin '' - # Apple Open Sourced LZFSE, but not libcompression, and it isn't - # part of an impure framework we can add - substituteInPlace Libraries/libcar/Sources/Rendition.cpp \ - --replace "#if HAVE_LIBCOMPRESSION" "#if 0" - ''; - - # TODO: instruct cmake not to put it in /usr, rather than cleaning up - postInstall = '' - mv $out/usr/* $out - rmdir $out/usr - cp liblinenoise.* $out/lib/ - ''; - - env.NIX_CFLAGS_COMPILE = "-Wno-error"; - - cmakeFlags = [ "-GNinja" ]; - - nativeBuildInputs = [ cmake ninja ]; - buildInputs = [ zlib libxml2 libpng ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices CoreGraphics ImageIO ]; - - meta = with lib; { - description = "Xcode-compatible build tool"; - homepage = "https://github.com/facebook/xcbuild"; - platforms = platforms.unix; - maintainers = with maintainers; [ copumpkin matthewbauer ]; - license = with licenses; [ bsd2 bsd3 ]; - }; -} diff --git a/pkgs/by-name/xc/xcbuild/package.nix b/pkgs/by-name/xc/xcbuild/package.nix index e533eda9a9e9..8fc3d74286f5 100644 --- a/pkgs/by-name/xc/xcbuild/package.nix +++ b/pkgs/by-name/xc/xcbuild/package.nix @@ -1,185 +1,131 @@ { lib, + cmake, + darwin, + fetchFromGitHub, + libpng, + libxml2, + makeBinaryWrapper, + ninja, stdenv, - makeWrapper, - writeText, - writeTextFile, - runCommand, - callPackage, - CoreServices, - ImageIO, - CoreGraphics, - xcodePlatform ? stdenv.targetPlatform.xcodePlatform or "MacOSX", - xcodeVer ? stdenv.targetPlatform.xcodeVer or "9.4.1", - sdkVer ? stdenv.targetPlatform.darwinSdkVersion or "10.12", - productBuildVer ? null, + zlib, + + # These arguments are obsolete but required to avoid evaluation errors for now + CoreGraphics ? null, + CoreServices ? null, + ImageIO ? null, }: let - - toolchainName = "com.apple.dt.toolchain.XcodeDefault"; - sdkName = "${xcodePlatform}${sdkVer}"; - xcrunSdkName = lib.toLower xcodePlatform; - - # TODO: expose MACOSX_DEPLOYMENT_TARGET in nix so we can use it here. - sdkBuildVersion = "17E189"; - xcodeSelectVersion = "2349"; - - xcbuild = callPackage ./default.nix { - inherit - CoreServices - ImageIO - CoreGraphics - stdenv - ; + googletest = fetchFromGitHub { + owner = "google"; + repo = "googletest"; + rev = "43359642a1c16ad3f4fc575c7edd0cb935810815"; + sha256 = "sha256-mKjXaawFHSRrbJBtADJ1Pdk6vtuD+ax0HFk6YaBSnXg="; }; - toolchains = callPackage ./toolchains.nix { inherit toolchainName stdenv; }; - - sdks = callPackage ./sdks.nix { - inherit - toolchainName - sdkName - xcodePlatform - sdkVer - productBuildVer - ; + linenoise = fetchFromGitHub { + owner = "antirez"; + repo = "linenoise"; + rev = "c894b9e59f02203dbe4e2be657572cf88c4230c3"; + sha256 = "sha256-nKxwWuSqr89lvI9Y3QAW5Mo7/iFfMNj/OOQVeA/FWnE="; }; - - platforms = callPackage ./platforms.nix { inherit sdks xcodePlatform stdenv; }; - - xcconfig = writeText "nix.xcconfig" '' - SDKROOT=${sdkName} - ''; - - xcode-select = writeText "xcode-select" '' - #!${stdenv.shell} - while [ $# -gt 0 ]; do - case "$1" in - -h | --help) ;; # noop - -s | --switch) shift;; # noop - -r | --reset) ;; # noop - -v | --version) echo xcode-select version ${xcodeSelectVersion} ;; - -p | -print-path | --print-path) echo @DEVELOPER_DIR@ ;; - --install) ;; # noop - esac - shift - done - ''; - - xcrun = writeTextFile { - name = "xcrun"; - executable = true; - destination = "/bin/xcrun"; - text = '' - #!${stdenv.shell} - args=( "$@" ) - - # If an SDK was requested, check that it matches. - for ((i = 0; i < ''${#args[@]}; i++)); do - case "''${args[i]}" in - --sdk | -sdk) - i=$((i + 1)) - if [[ "''${args[i]}" != '${xcrunSdkName}' ]]; then - echo >&2 "xcodebuild: error: SDK \"''${args[i]}\" cannot be located." - exit 1 - fi - ;; - esac - done - - while [ $# -gt 0 ]; do - case "$1" in - --sdk | -sdk) shift ;; - --toolchain | -toolchain) shift ;; - --find | -find | -f) - shift - command -v $1 || exit 1 ;; - --log | -log) ;; # noop - --verbose | -verbose) ;; # noop - --no-cache | -no-cache) ;; # noop - --kill-cache | -kill-cache) ;; # noop - --show-sdk-path | -show-sdk-path) - echo ${sdks}/${sdkName}.sdk ;; - --show-sdk-platform-path | -show-sdk-platform-path) - echo ${platforms}/${xcodePlatform}.platform ;; - --show-sdk-version | -show-sdk-version) - echo ${sdkVer} ;; - --show-sdk-build-version | -show-sdk-build-version) - echo ${sdkBuildVersion} ;; - *) break ;; - esac - shift - done - - if ! [[ -z "$@" ]]; then - exec "$@" - fi - ''; - checkPhase = '' - ${stdenv.shellDryRun} "$target" - ''; - }; - in +stdenv.mkDerivation (finalAttrs: { + pname = "xcbuild"; -runCommand "xcodebuild-${xcbuild.version}" - { - nativeBuildInputs = [ makeWrapper ]; - inherit (xcbuild) meta; + outputs = [ + "out" + "xcrun" + ]; - # ensure that the toolchain goes in PATH - propagatedBuildInputs = [ "${toolchains}/XcodeDefault.xctoolchain" ]; + # Once a version is released that includes + # https://github.com/facebook/xcbuild/commit/183c087a6484ceaae860c6f7300caf50aea0d710, + # we can stop doing this -pre thing. + version = "0.1.2-pre"; - passthru = { - inherit xcbuild xcrun; - toolchain = "${toolchains}/XcodeDefault.xctoolchain"; - sdk = "${sdks}/${sdkName}"; - platform = "${platforms}/${xcodePlatform}.platform"; - }; + src = fetchFromGitHub { + owner = "facebook"; + repo = "xcbuild"; + rev = "32b9fbeb69bfa2682bd0351ec2f14548aaedd554"; + sha256 = "1xxwg2849jizxv0g1hy0b1m3i7iivp9bmc4f5pi76swsn423d41m"; + }; - preferLocalBuild = true; - } - '' - mkdir -p $out/bin + patches = [ + # Add missing header for `abort` + ./patches/includes.patch + ]; - ln -s $out $out/usr + prePatch = '' + rmdir ThirdParty/* + cp -r --no-preserve=all ${googletest} ThirdParty/googletest + cp -r --no-preserve=all ${linenoise} ThirdParty/linenoise + ''; - mkdir -p $out/Library/Xcode - ln -s ${xcbuild}/Library/Xcode/Specifications $out/Library/Xcode/Specifications + postPatch = + lib.optionalString (!stdenv.hostPlatform.isDarwin) '' + # Fix build on gcc-13 due to missing includes + sed -e '1i #include ' -i \ + Libraries/libutil/Headers/libutil/Permissions.h \ + Libraries/pbxbuild/Headers/pbxbuild/Tool/AuxiliaryFile.h \ + Libraries/pbxbuild/Headers/pbxbuild/Tool/Invocation.h - ln -s ${platforms} $out/Platforms - ln -s ${toolchains} $out/Toolchains + # Avoid a glibc >= 2.25 deprecation warning that gets fatal via -Werror. + sed 1i'#include ' \ + -i Libraries/xcassets/Headers/xcassets/Slot/SystemVersion.h + '' + + lib.optionalString stdenv.hostPlatform.isDarwin '' + # Apple Open Sourced LZFSE, but not libcompression, and it isn't + # part of an impure framework we can add + substituteInPlace Libraries/libcar/Sources/Rendition.cpp \ + --replace "#if HAVE_LIBCOMPRESSION" "#if 0" + ''; - mkdir -p $out/Applications/Xcode.app/Contents - ln -s $out $out/Applications/Xcode.app/Contents/Developer + strictDeps = true; - # The native xcodebuild command supports an invocation like "xcodebuild -version -sdk" without specifying the specific SDK, so we simulate this by - # detecting this case and simulating the output; printing the header and appending the normal output via appending the sdk version to the positional - # arguments we pass through to the wrapped xcodebuild. - makeWrapper ${xcbuild}/bin/xcodebuild $out/bin/xcodebuild \ - --add-flags "-xcconfig ${xcconfig}" \ - --add-flags "DERIVED_DATA_DIR=." \ - --set DEVELOPER_DIR "$out" \ - --set SDKROOT ${sdkName} \ - --run '[ "$#" -eq 2 ] && [ "$1" = "-version" ] && [ "$2" = "-sdk" ] && echo ${sdkName}.sdk - macOS ${sdkVer} \(macosx${sdkVer}\) && set -- "$@" "${sdkName}"' \ - --run '[ "$1" = "-version" ] && [ "$#" -eq 1 ] && (echo Xcode ${xcodeVer}; echo Build version ${sdkBuildVersion}) && exit 0' \ - --run '[ "$1" = "-license" ] && exit 0' + env.NIX_CFLAGS_COMPILE = "-Wno-error"; - substitute ${xcode-select} $out/bin/xcode-select \ - --subst-var-by DEVELOPER_DIR $out/Applications/Xcode.app/Contents/Developer - chmod +x $out/bin/xcode-select + nativeBuildInputs = [ + cmake + makeBinaryWrapper + ninja + ]; - cp ${xcrun}/bin/xcrun $out/bin/xcrun + buildInputs = [ + libpng + libxml2 + zlib + ]; - for bin in PlistBuddy actool builtin-copy builtin-copyPlist \ - builtin-copyStrings builtin-copyTiff \ - builtin-embeddedBinaryValidationUtility \ - builtin-infoPlistUtility builtin-lsRegisterURL \ - builtin-productPackagingUtility builtin-validationUtility \ - lsbom plutil; do - ln -s ${xcbuild}/bin/$bin $out/bin/$bin - done + # TODO: instruct cmake not to put it in /usr, rather than cleaning up + postInstall = '' + mv $out/usr/* $out + rmdir $out/usr + cp liblinenoise.* $out/lib/ - fixupPhase - '' + mkdir -p "$xcrun/bin" + ln -s "$out/bin/xcrun" "$xcrun/bin/xcrun" + + # xcbuild and xcrun support absolute paths, but they can’t find the SDK with the way it’s set up in + # the store. Fortunately, the combination of `DEVELOPER_DIR` and a plain `SDKROOT` is enough. + wrapProgram "$out/bin/xcbuild" --set SDKROOT macosx + wrapProgram "$out/bin/xcrun" --set SDKROOT macosx + ''; + + __structuredAttrs = true; + + passthru = { + xcbuild = lib.warn "xcbuild.xcbuild is deprecated and will be removed; use xcbuild instead." finalAttrs.finalPackage; + }; + + meta = { + description = "Xcode-compatible build tool"; + homepage = "https://github.com/facebook/xcbuild"; + license = with lib.licenses; [ + bsd2 + bsd3 + ]; + maintainers = lib.teams.darwin.members; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/by-name/xc/xcbuild/includes.patch b/pkgs/by-name/xc/xcbuild/patches/includes.patch similarity index 100% rename from pkgs/by-name/xc/xcbuild/includes.patch rename to pkgs/by-name/xc/xcbuild/patches/includes.patch diff --git a/pkgs/by-name/xc/xcbuild/platforms.nix b/pkgs/by-name/xc/xcbuild/platforms.nix deleted file mode 100644 index 333e5471b976..000000000000 --- a/pkgs/by-name/xc/xcbuild/platforms.nix +++ /dev/null @@ -1,301 +0,0 @@ -{ stdenv, runCommand, lib, sdks, xcodePlatform, writeText }: - -let - - inherit (lib.generators) toPlist; - - Info = { - CFBundleIdentifier = "com.apple.platform.${lib.toLower xcodePlatform}"; - Type = "Platform"; - Name = lib.toLower xcodePlatform; - }; - - Version = { - ProjectName = "OSXPlatformSupport"; - }; - - # These files are all based off of Xcode spec fies found in - # /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Xcode/PrivatePlugIns/IDEOSXSupportCore.ideplugin/Contents/Resources. - - # Based off of the "MacOSX Architectures.xcspec" file. All i386 stuff - # is removed because NixPkgs only supports darwin-x86_64 and darwin-arm64. - Architectures = [ - { - Identifier = "Standard"; - Type = "Architecture"; - Name = "Standard Architectures (Apple Silicon, 64-bit Intel)"; - RealArchitectures = [ "arm64" "x86_64" ]; - ArchitectureSetting = "ARCHS_STANDARD"; - } - { - Identifier = "Universal"; - Type = "Architecture"; - Name = "Universal (Apple Silicon, 64-bit Intel)"; - RealArchitectures = [ "arm64" "x86_64" ]; - ArchitectureSetting = "ARCHS_STANDARD_32_64_BIT"; - } - { - Identifier = "Native"; - Type = "Architecture"; - Name = "Native Architecture of Build Machine"; - ArchitectureSetting = "NATIVE_ARCH_ACTUAL"; - } - { - Identifier = "Standard64bit"; - Type = "Architecture"; - Name = "Apple Silicon, 64-bit Intel"; - RealArchitectures = [ "arm64" "x86_64" ]; - ArchitectureSetting = "ARCHS_STANDARD_64_BIT"; - } - { - Identifier = if stdenv.hostPlatform.isAarch64 then "arm64" else "x86_64"; - Type = "Architecture"; - Name = "Apple Silicon or Intel 64-bit"; - } - { - Identifier = "Standard_Including_64_bit"; - Type = "Architecture"; - Name = "Standard Architectures (including 64-bit)"; - RealArchitectures = [ "arm64" "x86_64" ]; - ArchitectureSetting = "ARCHS_STANDARD_INCLUDING_64_BIT"; - } - ]; - - # Based off of the "MacOSX Package Types.xcspec" file. Only keep the - # bare minimum needed. - PackageTypes = [ - { - Identifier = "com.apple.package-type.mach-o-executable"; - Type = "PackageType"; - Name = "Mach-O Executable"; - DefaultBuildSettings = { - EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; - EXECUTABLE_PATH = "$(EXECUTABLE_NAME)"; - }; - ProductReference = { - FileType = "compiled.mach-o.executable"; - Name = "$(EXECUTABLE_NAME)"; - }; - } - { - Identifier = "com.apple.package-type.mach-o-objfile"; - Type = "PackageType"; - Name = "Mach-O Object File"; - DefaultBuildSettings = { - EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; - EXECUTABLE_PATH = "$(EXECUTABLE_NAME)"; - }; - ProductReference = { - FileType = "compiled.mach-o.objfile"; - Name = "$(EXECUTABLE_NAME)"; - }; - } - { - Identifier = "com.apple.package-type.mach-o-dylib"; - Type = "PackageType"; - Name = "Mach-O Dynamic Library"; - DefaultBuildSettings = { - EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; - EXECUTABLE_PATH = "$(EXECUTABLE_NAME)"; - }; - ProductReference = { - FileType = "compiled.mach-o.dylib"; - Name = "$(EXECUTABLE_NAME)"; - }; - } - { - Identifier = "com.apple.package-type.static-library"; - Type = "PackageType"; - Name = "Mach-O Static Library"; - DefaultBuildSettings = { - EXECUTABLE_PREFIX = "lib"; - EXECUTABLE_SUFFIX = ".a"; - EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; - EXECUTABLE_PATH = "$(EXECUTABLE_NAME)"; - }; - ProductReference = { - FileType = "archive.ar"; - Name = "$(EXECUTABLE_NAME)"; - IsLaunchable = "NO"; - }; - } - { - Identifier = "com.apple.package-type.wrapper"; - Type = "PackageType"; - Name = "Wrapper"; - DefaultBuildSettings = { - WRAPPER_SUFFIX = ".bundle"; - WRAPPER_NAME = "$(WRAPPER_PREFIX)$(PRODUCT_NAME)$(WRAPPER_SUFFIX)"; - CONTENTS_FOLDER_PATH = "$(WRAPPER_NAME)/Contents"; - EXECUTABLE_NAME = "$(EXECUTABLE_PREFIX)$(PRODUCT_NAME)$(EXECUTABLE_VARIANT_SUFFIX)$(EXECUTABLE_SUFFIX)"; - EXECUTABLE_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/MacOS"; - EXECUTABLE_PATH = "$(EXECUTABLE_FOLDER_PATH)/$(EXECUTABLE_NAME)"; - INFOPLIST_PATH = "$(CONTENTS_FOLDER_PATH)/Info.plist"; - INFOSTRINGS_PATH = "$(LOCALIZED_RESOURCES_FOLDER_PATH)/InfoPlist.strings"; - PKGINFO_PATH = "$(CONTENTS_FOLDER_PATH)/PkgInfo"; - PBDEVELOPMENTPLIST_PATH = "$(CONTENTS_FOLDER_PATH)/pbdevelopment.plist"; - VERSIONPLIST_PATH = "$(CONTENTS_FOLDER_PATH)/version.plist"; - PUBLIC_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Headers"; - PRIVATE_HEADERS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/PrivateHeaders"; - EXECUTABLES_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Executables"; - FRAMEWORKS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Frameworks"; - SHARED_FRAMEWORKS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/SharedFrameworks"; - SHARED_SUPPORT_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/SharedSupport"; - UNLOCALIZED_RESOURCES_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/Resources"; - LOCALIZED_RESOURCES_FOLDER_PATH = "$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/$(DEVELOPMENT_LANGUAGE).lproj"; - DOCUMENTATION_FOLDER_PATH = "$(LOCALIZED_RESOURCES_FOLDER_PATH)/Documentation"; - PLUGINS_FOLDER_PATH = "$(CONTENTS_FOLDER_PATH)/PlugIns"; - SCRIPTS_FOLDER_PATH = "$(UNLOCALIZED_RESOURCES_FOLDER_PATH)/Scripts"; - }; - ProductReference = { - FileType = "wrapper.cfbundle"; - Name = "$(WRAPPER_NAME)"; - IsLaunchable = "NO"; - }; - } - { - Identifier = "com.apple.package-type.wrapper.application"; - Type = "PackageType"; - BasedOn = "com.apple.package-type.wrapper"; - Name = "Application Wrapper"; - DefaultBuildSettings = { - GENERATE_PKGINFO_FILE = "YES"; - }; - ProductReference = { - FileType = "wrapper.application"; - Name = "$(WRAPPER_NAME)"; - IsLaunchable = "YES"; - }; - } - ]; - - # Based off of the "MacOSX Product Types.xcspec" file. All - # bundles/wrapper are removed, because we prefer dynamic products in - # NixPkgs. - ProductTypes = [ - { - Identifier = "com.apple.product-type.tool"; - Type = "ProductType"; - Name = "Command-line Tool"; - PackageTypes = [ "com.apple.package-type.mach-o-executable" ]; - } - { - Identifier = "com.apple.product-type.objfile"; - Type = "ProductType"; - Name = "Object File"; - PackageTypes = [ "com.apple.package-type.mach-o-objfile" ]; - } - { - Identifier = "com.apple.product-type.library.dynamic"; - Type = "ProductType"; - Name = "Dynamic Library"; - PackageTypes = [ "com.apple.package-type.mach-o-dylib" ]; - DefaultBuildProperties = { - FULL_PRODUCT_NAME = "$(EXECUTABLE_NAME)"; - MACH_O_TYPE = "mh_dylib"; - REZ_EXECUTABLE = "YES"; - EXECUTABLE_SUFFIX = ".$(EXECUTABLE_EXTENSION)"; - EXECUTABLE_EXTENSION = "dylib"; - DYLIB_COMPATIBILITY_VERSION = "1"; - DYLIB_CURRENT_VERSION = "1"; - FRAMEWORK_FLAG_PREFIX = "-framework"; - LIBRARY_FLAG_PREFIX = "-l"; - LIBRARY_FLAG_NOSPACE = "YES"; - STRIP_STYLE = "debugging"; - GCC_INLINES_ARE_PRIVATE_EXTERN = "YES"; - CODE_SIGNING_ALLOWED = "YES"; - CODE_SIGNING_REQUIRED = "NO"; - }; - } - { - Identifier = "com.apple.product-type.library.static"; - Type = "ProductType"; - Name = "Static Library"; - PackageTypes = [ "com.apple.package-type.static-library" ]; - DefaultBuildProperties = { - FULL_PRODUCT_NAME = "$(EXECUTABLE_NAME)"; - MACH_O_TYPE = "staticlib"; - REZ_EXECUTABLE = "YES"; - EXECUTABLE_PREFIX = "lib"; - EXECUTABLE_SUFFIX = ".$(EXECUTABLE_EXTENSION)"; - EXECUTABLE_EXTENSION = "a"; - FRAMEWORK_FLAG_PREFIX = "-framework"; - LIBRARY_FLAG_PREFIX = "-l"; - LIBRARY_FLAG_NOSPACE = "YES"; - STRIP_STYLE = "debugging"; - SEPARATE_STRIP = "YES"; - CLANG_ENABLE_MODULE_DEBUGGING = "NO"; - }; - } - { - Type = "ProductType"; - Identifier = "com.apple.product-type.bundle"; - Name = "Bundle"; - DefaultBuildProperties = { - FULL_PRODUCT_NAME = "$(WRAPPER_NAME)"; - MACH_O_TYPE = "mh_bundle"; - WRAPPER_PREFIX = ""; - WRAPPER_SUFFIX = ".$(WRAPPER_EXTENSION)"; - WRAPPER_EXTENSION = "bundle"; - WRAPPER_NAME = "$(WRAPPER_PREFIX)$(PRODUCT_NAME)$(WRAPPER_SUFFIX)"; - FRAMEWORK_FLAG_PREFIX = "-framework"; - LIBRARY_FLAG_PREFIX = "-l"; - LIBRARY_FLAG_NOSPACE = "YES"; - STRIP_STYLE = "non-global"; - }; - PackageTypes = [ "com.apple.package-type.wrapper" ]; - IsWrapper = "YES"; - HasInfoPlist = "YES"; - HasInfoPlistStrings = "YES"; - } - { - Identifier = "com.apple.product-type.application"; - Type = "ProductType"; - BasedOn = "com.apple.product-type.bundle"; - Name = "Application"; - DefaultBuildProperties = { - MACH_O_TYPE = "mh_execute"; - WRAPPER_SUFFIX = ".$(WRAPPER_EXTENSION)"; - WRAPPER_EXTENSION = "app"; - }; - PackageTypes = [ "com.apple.package-type.wrapper.application" ]; - } - { - Type = "ProductType"; - Identifier = "com.apple.product-type.framework"; - Name = "Bundle"; - DefaultBuildProperties = { - FULL_PRODUCT_NAME = "$(WRAPPER_NAME)"; - MACH_O_TYPE = "mh_bundle"; - WRAPPER_PREFIX = ""; - WRAPPER_SUFFIX = ".$(WRAPPER_EXTENSION)"; - WRAPPER_EXTENSION = "bundle"; - WRAPPER_NAME = "$(WRAPPER_PREFIX)$(PRODUCT_NAME)$(WRAPPER_SUFFIX)"; - FRAMEWORK_FLAG_PREFIX = "-framework"; - LIBRARY_FLAG_PREFIX = "-l"; - LIBRARY_FLAG_NOSPACE = "YES"; - STRIP_STYLE = "non-global"; - }; - PackageTypes = [ "com.apple.package-type.wrapper" ]; - IsWrapper = "YES"; - HasInfoPlist = "YES"; - HasInfoPlistStrings = "YES"; - } - ]; - -in - -runCommand "Platforms" {} '' - platform=$out/${xcodePlatform}.platform - - install -D ${writeText "Info.plist" (toPlist {} Info)} $platform/Info.plist - install -D ${writeText "version.plist" (toPlist {} Version)} $platform/version.plist - install -D ${writeText "Architectures.xcspec" (toPlist {} Architectures)} $platform/Developer/Library/Xcode/Specifications/Architectures.xcspec - install -D ${writeText "PackageTypes.xcspec" (toPlist {} PackageTypes)} $platform/Developer/Library/Xcode/Specifications/PackageTypes.xcspec - install -D ${writeText "ProductTypes.xcspec" (toPlist {} ProductTypes)} $platform/Developer/Library/Xcode/Specifications/ProductTypes.xcspec - - ln -s $platform $platform/usr - - mkdir -p $platform/Developer - ln -s ${sdks} $platform/Developer/SDKs -'' diff --git a/pkgs/by-name/xc/xcbuild/sdks.nix b/pkgs/by-name/xc/xcbuild/sdks.nix deleted file mode 100644 index bf16bf132d77..000000000000 --- a/pkgs/by-name/xc/xcbuild/sdks.nix +++ /dev/null @@ -1,32 +0,0 @@ -{ runCommand, lib, toolchainName, sdkName -, writeText, xcodePlatform, sdkVer, productBuildVer }: - -let - inherit (lib.generators) toPlist toJSON; - - SDKSettings = { - CanonicalName = sdkName; - DisplayName = sdkName; - Toolchains = [ toolchainName ]; - Version = sdkVer; - MaximumDeploymentTarget = sdkVer; - isBaseSDK = "YES"; - }; - - SystemVersion = lib.optionalAttrs (productBuildVer != null) { - ProductBuildVersion = productBuildVer; - } // { - ProductName = "Mac OS X"; - ProductVersion = sdkVer; - }; -in - -runCommand "SDKs" {} '' - sdk=$out/${sdkName}.sdk - install -D ${writeText "SDKSettings.plist" (toPlist {} SDKSettings)} $sdk/SDKSettings.plist - install -D ${writeText "SDKSettings.json" (toJSON {} SDKSettings)} $sdk/SDKSettings.json - install -D ${writeText "SystemVersion.plist" (toPlist {} SystemVersion)} $sdk/System/Library/CoreServices/SystemVersion.plist - ln -s $sdk $sdk/usr - - ln -s $sdk $out/${xcodePlatform}.sdk -'' diff --git a/pkgs/by-name/xc/xcbuild/toolchains.nix b/pkgs/by-name/xc/xcbuild/toolchains.nix deleted file mode 100644 index 2da12ba7cbcb..000000000000 --- a/pkgs/by-name/xc/xcbuild/toolchains.nix +++ /dev/null @@ -1,73 +0,0 @@ -{ runCommand, toolchainName, fetchurl, stdenv -, buildPackages, lib, writeText }: - -let - - inherit (lib) getBin optionalString; - inherit (lib.generators) toPlist; - - ToolchainInfo = { - Identifier = toolchainName; - }; - - # We could pull this out of developer_cmds but it adds an annoying - # loop if we want to bootstrap and this is just a tiny script so I'm - # not going to bother. - mkdep-darwin-src = fetchurl { - url = "https://opensource.apple.com/source/developer_cmds/developer_cmds-63/mkdep/mkdep.sh"; - sha256 = "0n4wpqfslfjs5zbys5yri8pfi2awyhlmknsf6laa5jzqbzq9x541"; - executable = true; - }; -in - -runCommand "Toolchains" {} ('' - toolchain=$out/XcodeDefault.xctoolchain - mkdir -p $toolchain - - install -D ${writeText "ToolchainInfo.plist" (toPlist {} ToolchainInfo)} $toolchain/ToolchainInfo.plist - - ln -s $toolchain $toolchain/usr - - mkdir -p $toolchain/include - mkdir -p $toolchain/lib - mkdir -p $toolchain/libexec - mkdir -p $toolchain/share - mkdir -p $toolchain/bin - - for bin in ${getBin stdenv.cc}/bin/*; do - ln -s $bin $toolchain/bin - done - - for bin in ${getBin stdenv.cc.bintools.bintools}/bin/*; do - if ! [ -e "$toolchain/bin/$(basename $bin)" ]; then - ln -s $bin $toolchain/bin - fi - done - - ln -s ${buildPackages.bison}/bin/yacc $toolchain/bin/yacc - ln -s ${buildPackages.bison}/bin/bison $toolchain/bin/bison - ln -s ${buildPackages.flex}/bin/flex $toolchain/bin/flex - ln -s ${buildPackages.flex}/bin/flex++ $toolchain/bin/flex++ - ln -s $toolchain/bin/flex $toolchain/bin/lex - - ln -s ${buildPackages.m4}/bin/m4 $toolchain/bin/m4 - ln -s $toolchain/bin/m4 $toolchain/bin/gm4 - - ln -s ${buildPackages.unifdef}/bin/unifdef $toolchain/bin/unifdef - ln -s ${buildPackages.unifdef}/bin/unifdefall $toolchain/bin/unifdefall - - ln -s ${buildPackages.gperf}/bin/gperf $toolchain/bin/gperf - ln -s ${buildPackages.indent}/bin/indent $toolchain/bin/indent - ln -s ${buildPackages.ctags}/bin/ctags $toolchain/bin/ctags -'' + optionalString stdenv.hostPlatform.isDarwin '' - for bin in ${getBin buildPackages.cctools}/bin/*; do - if ! [ -e "$toolchain/bin/$(basename $bin)" ]; then - ln -s $bin $toolchain/bin - fi - done - - ln -s ${buildPackages.darwin.bootstrap_cmds}/bin/mig $toolchain/bin - mkdir -p $toolchain/libexec - ln -s ${buildPackages.darwin.bootstrap_cmds}/libexec/migcom $toolchain/libexec - ln -s ${mkdep-darwin-src} $toolchain/bin/mkdep -'') diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 4df69b1c1603..34839400f48c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -18702,7 +18702,6 @@ with pkgs; xcode-install = callPackage ../development/tools/xcode-install { }; xcbuild = callPackage ../by-name/xc/xcbuild/package.nix { - inherit (darwin.apple_sdk.frameworks) CoreServices CoreGraphics ImageIO; stdenv = # xcbuild is included in the SDK. Avoid an infinite recursion by using a bootstrap stdenv. if stdenv.hostPlatform.isDarwin then From 118a214ac5f31abe7491d371f5153292fbcb939a Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Thu, 3 Oct 2024 07:47:30 -0400 Subject: [PATCH 0288/1574] xcbuild: warn when someone tries to override `sdkVer` xcbuild determines the SDK dynamically, so overriding the `sdkVer` no longer works. If packages want to change the SDK, they need to add one of the SDK packages to their inputs. --- pkgs/by-name/xc/xcbuild/package.nix | 31 ++++++++++++++++++++++++++++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/xc/xcbuild/package.nix b/pkgs/by-name/xc/xcbuild/package.nix index 8fc3d74286f5..3f2560caa203 100644 --- a/pkgs/by-name/xc/xcbuild/package.nix +++ b/pkgs/by-name/xc/xcbuild/package.nix @@ -10,12 +10,41 @@ stdenv, zlib, - # These arguments are obsolete but required to avoid evaluation errors for now + # These arguments are obsolete but required to avoid evaluation errors (for now). CoreGraphics ? null, CoreServices ? null, ImageIO ? null, + + # These are deprecated and do nothing. They’re needed for compatibility and will + # warn eventually once in-tree uses are cleaned up. + xcodePlatform ? null, + xcodeVer ? null, + sdkVer ? null, + productBuildVer ? null, }: +let + attrs = { + inherit + xcodePlatform + xcodeVer + sdkVer + productBuildVer + ; + }; +in +assert lib.warnIf (lib.any (attr: attr != null) (lib.attrValues attrs)) '' + The following arguments are deprecated and do nothing: ${ + lib.concatStringsSep ", " (lib.attrNames (lib.filterAttrs (_: value: value != null) attrs)) + } + + xcbuild will dynamically pick up the SDK and SDK version based + on the SDK used in nixpkgs. If you need to use a different SDK, + add the appropriate SDK to your package’s `buildInputs`. + + See the stdenv documentation for how to use `apple-sdk`. +'' true; + let googletest = fetchFromGitHub { owner = "google"; From 49834c3000ad469d560f73256d1e8133a8793a5f Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 5 Oct 2024 08:59:47 -0400 Subject: [PATCH 0289/1574] xcbuild: suppress warning for now Enabling this by default requires additional clean that will be done after the Darwin refactor has been merged. --- pkgs/by-name/xc/xcbuild/package.nix | 43 +++++++++++++++-------------- 1 file changed, 22 insertions(+), 21 deletions(-) diff --git a/pkgs/by-name/xc/xcbuild/package.nix b/pkgs/by-name/xc/xcbuild/package.nix index 3f2560caa203..956286adcc8d 100644 --- a/pkgs/by-name/xc/xcbuild/package.nix +++ b/pkgs/by-name/xc/xcbuild/package.nix @@ -23,27 +23,28 @@ productBuildVer ? null, }: -let - attrs = { - inherit - xcodePlatform - xcodeVer - sdkVer - productBuildVer - ; - }; -in -assert lib.warnIf (lib.any (attr: attr != null) (lib.attrValues attrs)) '' - The following arguments are deprecated and do nothing: ${ - lib.concatStringsSep ", " (lib.attrNames (lib.filterAttrs (_: value: value != null) attrs)) - } - - xcbuild will dynamically pick up the SDK and SDK version based - on the SDK used in nixpkgs. If you need to use a different SDK, - add the appropriate SDK to your package’s `buildInputs`. - - See the stdenv documentation for how to use `apple-sdk`. -'' true; +# TODO(@reckenrode) enable this warning after uses in nixpkgs have been fixed +#let +# attrs = { +# inherit +# xcodePlatform +# xcodeVer +# sdkVer +# productBuildVer +# ; +# }; +#in +#assert lib.warnIf (lib.any (attr: attr != null) (lib.attrValues attrs)) '' +# The following arguments are deprecated and do nothing: ${ +# lib.concatStringsSep ", " (lib.attrNames (lib.filterAttrs (_: value: value != null) attrs)) +# } +# +# xcbuild will dynamically pick up the SDK and SDK version based +# on the SDK used in nixpkgs. If you need to use a different SDK, +# add the appropriate SDK to your package’s `buildInputs`. +# +# See the stdenv documentation for how to use `apple-sdk`. +#'' true; let googletest = fetchFromGitHub { From fee84be7523bee59232f3e86fa74e4ed7e55dcb8 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 5 Oct 2024 16:10:51 -0400 Subject: [PATCH 0290/1574] xcbuild: suppress xcbuild passthru warning for now --- pkgs/by-name/xc/xcbuild/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/xc/xcbuild/package.nix b/pkgs/by-name/xc/xcbuild/package.nix index 956286adcc8d..46db53105337 100644 --- a/pkgs/by-name/xc/xcbuild/package.nix +++ b/pkgs/by-name/xc/xcbuild/package.nix @@ -145,7 +145,9 @@ stdenv.mkDerivation (finalAttrs: { __structuredAttrs = true; passthru = { - xcbuild = lib.warn "xcbuild.xcbuild is deprecated and will be removed; use xcbuild instead." finalAttrs.finalPackage; + xcbuild = + # lib.warn "xcbuild.xcbuild is deprecated and will be removed; use xcbuild instead." + finalAttrs.finalPackage; }; meta = { From dd569d89133b9157011be854d1f3af0d8ca6c3b5 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 22 Sep 2024 18:44:26 -0400 Subject: [PATCH 0291/1574] xcbuild: avoid `xcrun` invoking itself via `/usr/bin` stubs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit macOS ships with several stubs in `/usr/bin` that invoke `xcrun` to run the tools from the active SDK. When `/usr/bin` is in `PATH`, this will cause `xcrun` from xcbuild to invoke itself over and over. Filtering `/usr/bin` from `xcrun`’s search path prevents this from happening. --- pkgs/by-name/xc/xcbuild/package.nix | 2 + ...ork-bomb-when-searching-system-paths.patch | 47 +++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 pkgs/by-name/xc/xcbuild/patches/Avoid-fork-bomb-when-searching-system-paths.patch diff --git a/pkgs/by-name/xc/xcbuild/package.nix b/pkgs/by-name/xc/xcbuild/package.nix index 46db53105337..f08cf4328576 100644 --- a/pkgs/by-name/xc/xcbuild/package.nix +++ b/pkgs/by-name/xc/xcbuild/package.nix @@ -84,6 +84,8 @@ stdenv.mkDerivation (finalAttrs: { patches = [ # Add missing header for `abort` ./patches/includes.patch + # Prevent xcrun from recursively invoking itself + ./patches/Avoid-fork-bomb-when-searching-system-paths.patch ]; prePatch = '' diff --git a/pkgs/by-name/xc/xcbuild/patches/Avoid-fork-bomb-when-searching-system-paths.patch b/pkgs/by-name/xc/xcbuild/patches/Avoid-fork-bomb-when-searching-system-paths.patch new file mode 100644 index 000000000000..bad8621e4b8c --- /dev/null +++ b/pkgs/by-name/xc/xcbuild/patches/Avoid-fork-bomb-when-searching-system-paths.patch @@ -0,0 +1,47 @@ +diff --git a/Libraries/xcsdk/Tools/xcrun.cpp b/Libraries/xcsdk/Tools/xcrun.cpp +index 9d6d4576d7..7400267c2b 100644 +--- a/Libraries/xcsdk/Tools/xcrun.cpp ++++ b/Libraries/xcsdk/Tools/xcrun.cpp +@@ -23,6 +23,8 @@ + #include + #include + ++#include ++ + using libutil::DefaultFilesystem; + using libutil::Filesystem; + using libutil::FSUtil; +@@ -398,6 +400,8 @@ + fprintf(stderr, "\n"); + } + ++ std::unordered_map environment = processContext->environmentVariables(); ++ + /* + * Collect search paths for the tool. + * Can be in toolchains, target (if one is provided), developer root, +@@ -408,6 +412,15 @@ + executablePaths.insert(executablePaths.end(), defaultExecutablePaths.begin(), defaultExecutablePaths.end()); + + /* ++ * Don’t look for tools in `/usr/bin` because it can cause an infinite recursion when `xcrun` finds a shim ++ * that tries to invoke `xcrun` to run the tool. ++ */ ++ executablePaths.erase( ++ std::remove(executablePaths.begin(), executablePaths.end(), "/usr/bin"), ++ executablePaths.end() ++ ); ++ ++ /* + * Find the tool to execute. + */ + ext::optional executable = filesystem->findExecutable(*options.tool(), executablePaths); +@@ -428,8 +441,6 @@ + } else { + /* Run is the default. */ + +- std::unordered_map environment = processContext->environmentVariables(); +- + if (target != nullptr) { + /* + * Update effective environment to include the target path. From 75bc428cf2428e275d36daba7e9aea85a6edceba Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 22 Sep 2024 19:19:09 -0400 Subject: [PATCH 0292/1574] xcbuild: 0.1.2-pre -> 0.1.1-unstable-2019-11-20 xcbuild is archived and will never be updated, so bump it to the last commit in the repo. --- pkgs/by-name/xc/xcbuild/package.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/by-name/xc/xcbuild/package.nix b/pkgs/by-name/xc/xcbuild/package.nix index f08cf4328576..7b574aa91994 100644 --- a/pkgs/by-name/xc/xcbuild/package.nix +++ b/pkgs/by-name/xc/xcbuild/package.nix @@ -69,16 +69,12 @@ stdenv.mkDerivation (finalAttrs: { "xcrun" ]; - # Once a version is released that includes - # https://github.com/facebook/xcbuild/commit/183c087a6484ceaae860c6f7300caf50aea0d710, - # we can stop doing this -pre thing. - version = "0.1.2-pre"; - + version = "0.1.1-unstable-2019-11-20"; src = fetchFromGitHub { owner = "facebook"; repo = "xcbuild"; - rev = "32b9fbeb69bfa2682bd0351ec2f14548aaedd554"; - sha256 = "1xxwg2849jizxv0g1hy0b1m3i7iivp9bmc4f5pi76swsn423d41m"; + rev = "dbaee552d2f13640773eb1ad3c79c0d2aca7229c"; + hash = "sha256-7mvSuRCWU/LlIBdmnC59F4SSzJPEcQhlmEK13PNe1xc="; }; patches = [ From 1fd1796e65ddb690e7697d84b2e93904e59dcc53 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 7 Sep 2024 22:01:39 -0400 Subject: [PATCH 0293/1574] zlib: build with the bootstrap stdenv on Darwin Using the bootstrap stdenv avoids an infinite recursion from xcbuild depending on zlib depending on xcrun from xcbuild, which is propagated by the non-bootstrap stdenv. --- pkgs/top-level/all-packages.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 34839400f48c..17fa21ed1130 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -23701,7 +23701,15 @@ with pkgs; zeitgeist = callPackage ../development/libraries/zeitgeist { }; - zlib = callPackage ../development/libraries/zlib { }; + zlib = callPackage ../development/libraries/zlib { + stdenv = + # zlib is a dependency of xcbuild. Avoid an infinite recursion by using a bootstrap stdenv + # that does not propagate xcrun. + if stdenv.hostPlatform.isDarwin then + darwin.bootstrapStdenv + else + stdenv; + }; zlib-ng = callPackage ../development/libraries/zlib-ng { }; From 76a5ef680e010ef1ce0ebea2e2fadacf401acefc Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Tue, 24 Sep 2024 21:43:34 -0400 Subject: [PATCH 0294/1574] darwin.stdenv: rework for the new SDK MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit While it would be nice if this could be split, there are too many changes as part of the cleanup and improvements, including: - Refactoring all propagated packages into functions that can be used to ensure that packages are propagated only at the expected stages; - Using a sanity-checking merge function to ensure that packages are only propagated by one of the above functions; - Reducing the number of Python builds during the bootstrap to one; - Removing the extra sysctl stage; - Using the LLVM bootstrap to build LLVM, clang, libc++, etc; - Propagating llvmPackages_ in the final stdenv, so that packages needing that version specifically don’t have to rebuild it; - Bootstrapping with the new Darwin SDK; and - Reducing the overall number of paths build during a bootstrap by ~33%. --- pkgs/stdenv/darwin/default.nix | 2446 ++++++++------------------------ 1 file changed, 623 insertions(+), 1823 deletions(-) diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 588e3b03d92b..1a9c77d73e72 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -28,7 +28,14 @@ assert crossSystem == localSystem; let inherit (localSystem) system; - useAppleSDKLibs = lib.versionAtLeast localSystem.darwinSdkVersion "11"; + sdkMajorVersion = + let + inherit (localSystem) darwinSdkVersion; + in + if lib.versionOlder darwinSdkVersion "11" then + lib.versions.majorMinor darwinSdkVersion + else + lib.versions.major darwinSdkVersion; commonImpureHostDeps = [ "/bin/sh" @@ -41,11 +48,13 @@ let isBuiltByNixpkgsCompiler = pkg: isFromNixpkgs pkg && isFromNixpkgs pkg.stdenv.cc.cc; isBuiltByBootstrapFilesCompiler = pkg: isFromNixpkgs pkg && isFromBootstrapFiles pkg.stdenv.cc.cc; + # Dependencies in dependency sets should be mutually exclusive. + mergeDisjointAttrs = lib.foldl' lib.attrsets.unionOfDisjoint { }; + commonPreHook = '' export NIX_ENFORCE_NO_NATIVE=''${NIX_ENFORCE_NO_NATIVE-1} export NIX_ENFORCE_PURITY=''${NIX_ENFORCE_PURITY-1} export NIX_IGNORE_LD_THROUGH_GCC=1 - unset SDKROOT ''; bootstrapTools = @@ -92,7 +101,7 @@ let if prevStage.llvmPackages.clang-unwrapped == null then null else - lib.makeOverridable (import ../../build-support/cc-wrapper) { + prevStage.wrapCCWith { name = "${name}-clang-wrapper"; nativeTools = false; @@ -106,7 +115,7 @@ let extraBuildCommands = let - inherit (prevStage.llvmPackages) clang-unwrapped compiler-rt release_version; + inherit (prevStage.llvmPackages) clang-unwrapped compiler-rt; in '' function clangResourceRootIncludePath() { @@ -130,7 +139,7 @@ let bintools = prevStage.darwin.binutils; isClang = true; - libc = prevStage.darwin.Libsystem; + libc = prevStage.darwin.libSystem; inherit (prevStage.llvmPackages) libcxx; inherit lib; @@ -151,8 +160,8 @@ let inherit config; - extraBuildInputs = [ prevStage.darwin.CF ]; - extraNativeBuildInputs = extraNativeBuildInputs ++ [ prevStage.darwin.apple_sdk.sdkRoot ]; + extraBuildInputs = [ prevStage.apple-sdk ]; + inherit extraNativeBuildInputs; preHook = lib.optionalString (!isBuiltByNixpkgsCompiler bash) '' @@ -204,6 +213,132 @@ let inherit config overlays; stdenv = thisStdenv; }; + + # Dependencies - these are packages that are rebuilt together in groups. Defining them here ensures they are + # asserted and overlayed together. It also removes a lot of clutter from the stage definitions. + # + # When multiple dependency sets share a dependency, it should be put in the one that will be (re)built first. + # That makes sure everything else will share the same dependency in the final stdenv. + + allDeps = + checkFn: sets: + let + sets' = mergeDisjointAttrs sets; + result = lib.all checkFn (lib.attrValues sets'); + resultDetails = lib.mapAttrs (_: checkFn) sets'; + in + lib.traceIf (!result) (lib.deepSeq resultDetails resultDetails) result; + + # These packages are built in stage 1 then never built again. They must not be included in the final overlay + # or as dependencies to packages that are in the final overlay. They are mostly tools used as native build inputs. + # Any libraries in the list must only be used as dependencies of packages in this list. + stage1Packages = prevStage: { + inherit (prevStage) + atf + autoconf + automake + bison + brotli + cmake + cpio + cyrus_sasl + ed + expat + flex + gettext + groff + jq + kyua + libedit + libtool + m4 + meson + ninja + openldap + openssh + patchutils + pbzx + perl + pkg-config + python3 + python3Minimal + scons + serf + sqlite + subversion + texinfo + unzip + which + ; + }; + + # These packages include both the core bintools (other than LLVM) packages as well as their dependencies. + bintoolsPackages = prevStage: { + inherit (prevStage) + cctools + ld64 + bzip2 + coreutils + gmp + gnugrep + libtapi + openssl + pcre2 + xar + xz + ; + }; + + darwinPackages = prevStage: { inherit (prevStage.darwin) locale sigtool; }; + darwinPackagesNoCC = prevStage: { + inherit (prevStage.darwin) binutils binutils-unwrapped libSystem; + }; + + # These packages are not allowed to be used in the Darwin bootstrap + disallowedPackages = prevStage: { inherit (prevStage) binutils-unwrapped curl; }; + + # LLVM tools packages are staged separately (xclang, stage3) from LLVM libs (xclang). + llvmLibrariesPackages = prevStage: { inherit (prevStage.llvmPackages) compiler-rt libcxx; }; + llvmLibrariesDeps = _: { }; + + llvmToolsPackages = prevStage: { + inherit (prevStage.llvmPackages) + clang-unwrapped + libclang + libllvm + lld + llvm + ; + }; + + llvmToolsDeps = prevStage: { inherit (prevStage) libffi; }; + + # SDK packages include propagated packages and source release packages built during the bootstrap. + sdkPackages = prevStage: { + inherit (prevStage) + bash + libpng + libxml2 + libxo + ncurses + openbsm + openpam + xcbuild + zlib + ; + }; + sdkDarwinPackages = prevStage: { + inherit (prevStage.darwin) + Csu + adv_cmds + libiconv + libresolv + libsbuf + system_cmds + ; + }; + sdkPackagesNoCC = prevStage: { inherit (prevStage) apple-sdk; }; + in assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check [ @@ -212,8 +347,10 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check { __raw = true; - cctools = true; - ld64 = true; + apple-sdk = null; + + cctools = null; + ld64 = null; coreutils = null; gnugrep = null; @@ -221,22 +358,20 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check pbzx = null; cpio = null; + jq = null; + darwin = { - apple_sdk.sdkRoot = null; binutils = null; binutils-unwrapped = null; - print-reexports = null; - rewrite-tbd = null; + libSystem = null; sigtool = null; - CF = null; - Libsystem = null; }; llvmPackages = { clang-unwrapped = null; - libllvm = null; - libcxx = null; compiler-rt = null; + libcxx = null; + libllvm = null; }; } ) @@ -267,90 +402,12 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check gnugrep = bootstrapTools; pbzx = bootstrapTools; - cctools = super.stdenv.mkDerivation { - pname = "bootstrap-stage0-cctools"; + jq = null; + + cctools = bootstrapTools // { + libtool = bootstrapTools; + targetPrefix = ""; version = "boot"; - - buildCommand = '' - declare -a cctools=( - ar - bitcode_strip - check_dylib - checksyms - cmpdylib - codesign_allocate - ctf_insert - depinfo - diagtest - gas - gprof - install_name_tool - libtool - lipo - mtoc - mtor - nm - nmedit - otool - pagestuff - ranlib - redo_prebinding - seg_addr_table - seg_hack - segedit - size - strings - strip - vtool - ) - - mkdir -p "$out/bin" - for tool in "''${cctools[@]}"; do - toolsrc="${bootstrapTools}/bin/$tool" - if [ -e "$toolsrc" ]; then - ln -s "$toolsrc" "$out/bin" - fi - done - - # Copy only the required headers to avoid accidentally linking headers that belong to other packages, - # which can cause problems when building Libsystem in the source-based SDK. - declare -a machohdrs=( - arch.h - fat.h - fixup-chains.h - getsect.h - ldsyms.h - loader.h - nlist.h - ranlib.h - reloc.h - stab.h - swap.h - arm - arm64 - hppa - i386 - i860 - m68k - m88k - ppc - sparc - x86_64 - ) - - mkdir -p "$out/include/mach-o" - for header in "''${machohdrs[@]}"; do - machosrc="${bootstrapTools}/include-Libsystem/mach-o/$header" - if [ -e "$machosrc" ]; then - cp -r "$machosrc" "$out/include/mach-o/$header" - fi - done - ''; - - passthru = { - isFromBootstrapFiles = true; - targetPrefix = ""; - }; }; ld64 = bootstrapTools // { @@ -359,12 +416,7 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check }; darwin = super.darwin.overrideScope ( - selfDarwin: superDarwin: - { - # Prevent CF from being propagated to the initial stdenv. Packages that require it - # will have to manually add it to their build inputs. - CF = null; - + selfDarwin: superDarwin: { binutils = super.wrapBintoolsWith { name = "bootstrap-stage0-binutils-wrapper"; @@ -372,7 +424,7 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check nativeLibc = false; expand-response-params = ""; - libc = selfDarwin.Libsystem; + libc = selfDarwin.libSystem; inherit lib; inherit (self) stdenvNoCC coreutils gnugrep; @@ -398,13 +450,13 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check }; binutils-unwrapped = - (superDarwin.binutils-unwrapped.overrideAttrs (old: { - version = "boot"; - passthru = (old.passthru or { }) // { - isFromBootstrapFiles = true; - }; - })).override - { enableManpages = false; }; + (superDarwin.binutils-unwrapped.override { enableManpages = false; }).overrideAttrs + (old: { + version = "boot"; + passthru = (old.passthru or { }) // { + isFromBootstrapFiles = true; + }; + }); locale = self.stdenv.mkDerivation { name = "bootstrap-stage0-locale"; @@ -413,38 +465,8 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check ''; }; - print-reexports = bootstrapTools; - - rewrite-tbd = bootstrapTools; - sigtool = bootstrapTools; } - // lib.optionalAttrs (!useAppleSDKLibs) { - Libsystem = self.stdenv.mkDerivation { - name = "bootstrap-stage0-Libsystem"; - buildCommand = '' - mkdir -p $out - - cp -r ${selfDarwin.darwin-stubs}/usr/lib $out/lib - chmod -R +w $out/lib - substituteInPlace $out/lib/libSystem.B.tbd --replace /usr/lib/system $out/lib/system - - ln -s libSystem.B.tbd $out/lib/libSystem.tbd - - for name in c dbm dl info m mx poll proc pthread rpcsvc util gcc_s.10.4 gcc_s.10.5; do - ln -s libSystem.tbd $out/lib/lib$name.tbd - done - - ln -s ${bootstrapTools}/lib/*.o $out/lib - - ln -s ${bootstrapTools}/lib/libresolv.9.dylib $out/lib - ln -s libresolv.9.dylib $out/lib/libresolv.dylib - - ln -s ${bootstrapTools}/include-Libsystem $out/include - ''; - passthru.isFromBootstrapFiles = true; - }; - } ); llvmPackages = @@ -498,10 +520,27 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check ''; passthru.isFromBootstrapFiles = true; }; + lld = self.stdenv.mkDerivation { + name = "bootstrap-stage0-lld"; + buildCommand = ""; + passthru = { + isLLVM = true; + isFromBootstrapFiles = true; + }; + }; } ); libraries = super.llvmPackages.libraries.extend ( _: _: { + compiler-rt = self.stdenv.mkDerivation { + name = "bootstrap-stage0-compiler-rt"; + buildCommand = '' + mkdir -p $out/lib $out/share + ln -s ${bootstrapTools}/lib/libclang_rt* $out/lib + ln -s ${bootstrapTools}/lib/darwin $out/lib + ''; + passthru.isFromBootstrapFiles = true; + }; libcxx = self.stdenv.mkDerivation { name = "bootstrap-stage0-libcxx"; buildCommand = '' @@ -514,15 +553,6 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check isFromBootstrapFiles = true; }; }; - compiler-rt = self.stdenv.mkDerivation { - name = "bootstrap-stage0-compiler-rt"; - buildCommand = '' - mkdir -p $out/lib $out/share - ln -s ${bootstrapTools}/lib/libclang_rt* $out/lib - ln -s ${bootstrapTools}/lib/darwin $out/lib - ''; - passthru.isFromBootstrapFiles = true; - }; } ); in @@ -542,119 +572,105 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check ( prevStage: # previous stage0 stdenv: - assert lib.all isFromBootstrapFiles ( - with prevStage; - [ - bash - cctools - coreutils - cpio - gnugrep - ld64 - ] - ++ lib.optionals useAppleSDKLibs [ pbzx ] - ); + assert allDeps isFromBootstrapFiles [ + (llvmToolsPackages prevStage) + (llvmLibrariesPackages prevStage) + { + inherit (prevStage) + bash + cctools + coreutils + cpio + gnugrep + ld64 + pbzx + ; + inherit (prevStage.darwin) binutils-unwrapped sigtool; + } + ]; - assert lib.all isFromBootstrapFiles ( - with prevStage.darwin; - [ - binutils-unwrapped - print-reexports - rewrite-tbd - sigtool - ] - ); - - assert (!useAppleSDKLibs) -> lib.all isFromBootstrapFiles (with prevStage.darwin; [ Libsystem ]); - assert useAppleSDKLibs -> lib.all isFromNixpkgs (with prevStage.darwin; [ Libsystem ]); - assert lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - dyld - launchd - xnu - ] - ); - assert (with prevStage.darwin; (!useAppleSDKLibs) -> CF == null); - - assert lib.all isFromBootstrapFiles ( - with prevStage.llvmPackages; - [ - clang-unwrapped - libclang - libllvm - llvm - compiler-rt - libcxx - ] - ); + assert allDeps isFromNixpkgs [ + (sdkPackagesNoCC prevStage) + { inherit (prevStage.darwin) binutils libSystem; } + ]; stageFun prevStage { name = "bootstrap-stage1"; overrides = self: super: { - inherit (prevStage) - ccWrapperStdenv - cctools - coreutils - gnugrep - ld64 - ; + inherit (prevStage) ccWrapperStdenv cctools ld64; binutils-unwrapped = builtins.throw "nothing in the Darwin bootstrap should depend on GNU binutils"; curl = builtins.throw "nothing in the Darwin bootstrap can depend on curl"; # Use this stage’s CF to build CMake. It’s required but can’t be included in the stdenv. cmake = self.cmakeMinimal; - cmakeMinimal = super.cmakeMinimal.overrideAttrs (old: { - buildInputs = old.buildInputs ++ [ self.darwin.CF ]; - }); + + # Use libiconvReal with gettext to break an infinite recursion. + gettext = super.gettext.override { libiconv = super.libiconvReal; }; # Disable tests because they use dejagnu, which fails to run. libffi = super.libffi.override { doCheck = false; }; - # Use libconvReal to break an infinite recursion. It will be dropped in the next stage. - libiconv = super.libiconvReal; - # Avoid pulling in a full python and its extra dependencies for the llvm/clang builds. libxml2 = super.libxml2.override { pythonSupport = false; }; + # Avoid pulling in openldap just to run Meson’s tests. + meson = super.meson.overrideAttrs { doInstallCheck = false; }; ninja = super.ninja.override { buildDocs = false; }; - # Use this stage’s CF to build Python. It’s required, but it can’t be included in the stdenv. - python3 = self.python3Minimal; - python3Minimal = - (super.python3Minimal.override { self = self.python3Minimal; }).overrideAttrs - (old: { - buildInputs = old.buildInputs or [ ] ++ [ self.darwin.CF ]; - }); + # pkg-config builds glib, which checks for `arpa/nameser.h` and fails to build if it can’t find it. + # libresolv is normally propagated by the SDK, but propagation is disabled early in the bootstrap. + # Trying to add libresolv as a dependency causes an infinite recursion. Use pkgconf instead. + pkg-config = + (super.pkg-config.override { + pkg-config = self.libpkgconf.override { + removeReferencesTo = self.removeReferencesTo.override { + # Avoid an infinite recursion by using the previous stage‘s sigtool. + signingUtils = prevStage.darwin.signingUtils.override { inherit (prevStage.darwin) sigtool; }; + }; + }; + baseBinName = "pkgconf"; + }).overrideAttrs + # Passthru the wrapped pkgconf’s stdenv to make the bootstrap assertions happy. + ( + old: { + passthru = old.passthru or { } // { + inherit (self) stdenv; + }; + } + ); - scons = super.scons.override { python3Packages = self.python3Minimal.pkgs; }; + # Use a full Python for the bootstrap. This allows Meson to be built in stage 1 and makes it easier to build + # packages that have Python dependencies. + python3 = self.python3-bootstrap; + python3-bootstrap = super.python3.override { + self = self.python3-bootstrap; + pythonAttr = "python3-bootstrap"; + enableLTO = false; + }; + + scons = super.scons.override { python3Packages = self.python3.pkgs; }; darwin = super.darwin.overrideScope ( selfDarwin: superDarwin: { - apple_sdk = superDarwin.apple_sdk // { - inherit (prevStage.darwin.apple_sdk) sdkRoot; - }; - - # Use this stage’s CF to build configd. It’s required, but it can’t be included in the stdenv. - configd = superDarwin.configd.overrideAttrs (old: { - buildInputs = old.buildInputs or [ ] ++ [ self.darwin.CF ]; - }); - signingUtils = prevStage.darwin.signingUtils.override { inherit (selfDarwin) sigtool; }; postLinkSignHook = prevStage.darwin.postLinkSignHook.override { inherit (selfDarwin) sigtool; }; - # Rewrap binutils with the real Libsystem + adv_cmds = superDarwin.adv_cmds.override { + # Break an infinite recursion between CMake and libtapi. CMake requires adv_cmds.ps, and adv_cmds + # requires a newer SDK that requires libtapi to build, which requires CMake. + inherit (prevStage) apple-sdk_11; + }; + + # Rewrap binutils with the real libSystem binutils = superDarwin.binutils.override { inherit (self) coreutils; bintools = selfDarwin.binutils-unwrapped; - libc = selfDarwin.Libsystem; - # TODO(@sternenseemann): can this be removed? - runtimeShell = "${bootstrapTools}/bin/bash"; + libc = selfDarwin.libSystem; - # Bootstrap tools cctools needs the hook to make sure things are signed properly. + # Bootstrap tools cctools needs the hook and wrappers to make sure things are signed properly. # This can be dropped once the bootstrap tools cctools has been updated to 1010.6. extraBuildCommands = '' echo 'source ${selfDarwin.postLinkSignHook}' >> $out/nix-support/post-link-hook @@ -680,296 +696,11 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check ); llvmPackages = - super.llvmPackages - // ( - let - tools = super.llvmPackages.tools.extend ( - _: _: { - inherit (prevStage.llvmPackages) - clang-unwrapped - libclang - libllvm - llvm - ; - } - ); - libraries = super.llvmPackages.libraries.extend ( - _: _: { inherit (prevStage.llvmPackages) compiler-rt libcxx; } - ); - in - { - inherit tools libraries; - inherit (prevStage.llvmPackages) release_version; - } - // tools - // libraries - ); - }; - - extraNativeBuildInputs = lib.optionals localSystem.isAarch64 [ - prevStage.updateAutotoolsGnuConfigScriptsHook - prevStage.gnu-config - ]; - - extraPreHook = '' - stripDebugFlags="-S" # llvm-strip does not support "-p" for Mach-O - ''; - } - ) - - # Build sysctl for use by LLVM’s check phase. It must be built separately to avoid an infinite recursion. - ( - prevStage: - # previous stage1 stdenv: - assert lib.all isFromBootstrapFiles ( - with prevStage; - [ - cctools - coreutils - gnugrep - ld64 - ] - ); - - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage; - [ - autoconf - automake - bash - bison - brotli - cmake - cpio - cyrus_sasl - db - ed - expat - flex - gettext - gmp - groff - icu - libedit - libffi - libiconv - libidn2 - libkrb5 - libssh2 - libtool - libunistring - libxml2 - m4 - ncurses - nghttp2 - ninja - openldap - openssh - openssl - patchutils - pbzx - perl - pkg-config.pkg-config - python3 - python3Minimal - scons - serf - sqlite - subversion - texinfo - unzip - which - xz - zlib - zstd - ] - ); - - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage.darwin; - [ - locale - print-reexports - rewrite-tbd - sigtool - ] - ); - - assert - (!useAppleSDKLibs) - -> lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage.darwin; - [ - Libsystem - configd - ] - ); - assert (!useAppleSDKLibs) -> lib.all isFromNixpkgs (with prevStage.darwin; [ CF ]); - assert - useAppleSDKLibs - -> lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - CF - Libsystem - libobjc - ] - ); - assert lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - binutils-unwrapped - dyld - launchd - xnu - ] - ); - - assert lib.all isFromBootstrapFiles ( - with prevStage.llvmPackages; - [ - clang-unwrapped - libclang - libllvm - llvm - compiler-rt - libcxx - ] - ); - - assert lib.getVersion prevStage.stdenv.cc.bintools.bintools == "boot"; - - stageFun prevStage { - name = "bootstrap-stage1-sysctl"; - - overrides = self: super: { - inherit (prevStage) - ccWrapperStdenv - autoconf - automake - bash - binutils-unwrapped - bison - brotli - cctools - cmake - cmakeMinimal - coreutils - cpio - curl - cyrus_sasl - db - ed - expat - flex - gettext - gmp - gnugrep - groff - icu - ld64 - libedit - libffi - libidn2 - libkrb5 - libssh2 - libtool - libunistring - libxml2 - m4 - ncurses - nghttp2 - ninja - openldap - openssh - openssl - patchutils - pbzx - perl - pkg-config - python3Minimal - scons - sed - serf - sharutils - sqlite - subversion - texinfo - unzip - which - xz - zlib - zstd - ; - - # Avoid pulling in openldap just to run Meson’s tests. - meson = super.meson.overrideAttrs { doInstallCheck = false; }; - - # The bootstrap Python needs its own `pythonAttr` to make sure the override works properly. - python3 = self.python3-bootstrap; - python3-bootstrap = super.python3.override { - self = self.python3-bootstrap; - pythonAttr = "python3-bootstrap"; - enableLTO = false; - }; - - darwin = super.darwin.overrideScope ( - _: superDarwin: { - inherit (prevStage.darwin) - CF - sdkRoot - Libsystem - binutils - binutils-unwrapped - configd - darwin-stubs - dtrace - dyld - launchd - libclosure - libdispatch - libobjc - locale - objc4 - postLinkSignHook - print-reexports - rewrite-tbd - signingUtils - sigtool - ; - - apple_sdk = superDarwin.apple_sdk // { - inherit (prevStage.darwin.apple_sdk) sdkRoot; - }; - } - ); - - llvmPackages = - super.llvmPackages - // ( - let - tools = super.llvmPackages.tools.extend ( - _: _: { - inherit (prevStage.llvmPackages) - clang-unwrapped - libclang - libllvm - llvm - ; - clang = prevStage.stdenv.cc; - } - ); - libraries = super.llvmPackages.libraries.extend ( - _: _: { inherit (prevStage.llvmPackages) compiler-rt libcxx; } - ); - in - { - inherit tools libraries; - inherit (prevStage.llvmPackages) release_version; - } - // tools - // libraries - ); + let + tools = super.llvmPackages.tools.extend (_: _: llvmToolsPackages prevStage); + libraries = super.llvmPackages.libraries.extend (_: _: llvmLibrariesPackages prevStage); + in + super.llvmPackages // { inherit tools libraries; } // tools // libraries; }; extraNativeBuildInputs = lib.optionals localSystem.isAarch64 [ @@ -984,275 +715,62 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check ) # First rebuild of LLVM. While this LLVM is linked to a bunch of junk from the bootstrap tools, - # the libc++ and libc++abi it produces are not. The compiler will be rebuilt in a later stage, - # but those libraries will be used in the final stdenv. - # - # Rebuild coreutils and gnugrep to avoid unwanted references to the bootstrap tools on `PATH`. - # - # The first build of cctools is deferred until this stage because it depends on LLVM headers - # that are not included in the bootstrap tools tarball. + # the compiler-rt, libc++, and libc++abi it produces are not. The compiler will be + # rebuilt in a later stage, but those libraries will be used in the final stdenv. ( prevStage: - # previous stage-sysctl stdenv: - assert lib.all isFromBootstrapFiles ( - with prevStage; - [ - cctools - coreutils - gnugrep - ld64 - ] - ); + # previous stage1 stdenv: + assert allDeps isFromBootstrapFiles [ + (llvmLibrariesPackages prevStage) + (llvmToolsPackages prevStage) + { inherit (prevStage) ld64; } + ]; - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage; - [ - atf - autoconf - automake - bash - bison - brotli - cmake - cpio - cyrus_sasl - db - ed - expat - flex - gettext - gmp - groff - icu - kyua - libedit - libffi - libiconv - libidn2 - libkrb5 - libssh2 - libtapi - libtool - libunistring - libxml2 - m4 - meson - ncurses - nghttp2 - ninja - openldap - openssh - openssl - patchutils - pbzx - perl - pkg-config.pkg-config - python3 - python3Minimal - scons - serf - sqlite - subversion - sysctl.provider - texinfo - unzip - which - xz - zlib - zstd - ] - ); + assert allDeps isBuiltByBootstrapFilesCompiler [ + (stage1Packages prevStage) + (darwinPackages prevStage) + (llvmLibrariesDeps prevStage) + (llvmToolsDeps prevStage) + (sdkPackages prevStage) + (sdkDarwinPackages prevStage) + ]; - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage.darwin; - [ - locale - print-reexports - rewrite-tbd - sigtool - ] - ); - - assert - (!useAppleSDKLibs) - -> lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage.darwin; - [ - Libsystem - configd - ] - ); - assert (!useAppleSDKLibs) -> lib.all isFromNixpkgs (with prevStage.darwin; [ CF ]); - assert - useAppleSDKLibs - -> lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - CF - Libsystem - libobjc - ] - ); - assert lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - binutils-unwrapped - dyld - launchd - xnu - ] - ); - - assert lib.all isFromBootstrapFiles ( - with prevStage.llvmPackages; - [ - clang-unwrapped - libclang - libllvm - llvm - compiler-rt - libcxx - ] - ); + assert allDeps isFromNixpkgs [ + (darwinPackagesNoCC prevStage) + (sdkPackagesNoCC prevStage) + ]; stageFun prevStage { name = "bootstrap-stage-xclang"; - overrides = self: super: { - inherit (prevStage) - ccWrapperStdenv - atf - autoconf - automake - bash - binutils-unwrapped - bison - brotli - cmake - cmakeMinimal - cpio - curl - cyrus_sasl - db - ed - expat - flex - gettext - gmp - groff - icu - kyua - libedit - libffi - libiconv - libidn2 - libkrb5 - libssh2 - libtool - libunistring - libxml2 - m4 - meson - ncurses - nghttp2 - ninja - openldap - openssh - openssl - patchutils - pbzx - perl - pkg-config - python3 - python3Minimal - scons - sed - serf - sharutils - sqlite - subversion - sysctl - texinfo - unzip - which - xz - zlib - zstd - ; + overrides = + self: super: + mergeDisjointAttrs [ + (stage1Packages prevStage) + (disallowedPackages prevStage) + # Only cctools and ld64 are rebuilt from `bintoolsPackages` to avoid rebuilding their dependencies + # again in this stage after building them in stage 1. + (lib.filterAttrs (name: _: name != "ld64" && name != "cctools") (bintoolsPackages prevStage)) + (llvmToolsDeps prevStage) + (sdkPackages prevStage) + (sdkPackagesNoCC prevStage) + { + inherit (prevStage) ccWrapperStdenv; - # Disable ld64’s install check phase because the required LTO libraries are not built yet. - ld64 = super.ld64.overrideAttrs { doInstallCheck = false; }; + # Disable ld64’s install check phase because the required LTO libraries are not built yet. + ld64 = super.ld64.overrideAttrs { doInstallCheck = false; }; - darwin = super.darwin.overrideScope ( - selfDarwin: superDarwin: { - inherit (prevStage.darwin) - CF - Libsystem - configd - darwin-stubs - dyld - launchd - libclosure - libdispatch - libobjc - locale - objc4 - postLinkSignHook - print-reexports - rewrite-tbd - signingUtils - sigtool - ; - - apple_sdk = superDarwin.apple_sdk // { - inherit (prevStage.darwin.apple_sdk) sdkRoot; - }; - - binutils = superDarwin.binutils.override { - inherit (prevStage) expand-response-params; - libc = selfDarwin.Libsystem; - }; - - # Avoid building unnecessary Python dependencies due to building LLVM manpages. - binutils-unwrapped = superDarwin.binutils-unwrapped.override { enableManpages = false; }; + darwin = super.darwin.overrideScope ( + selfDarwin: superDarwin: + darwinPackages prevStage + // sdkDarwinPackages prevStage + // { + inherit (prevStage.darwin) libSystem; + binutils-unwrapped = superDarwin.binutils-unwrapped.override { enableManpages = false; }; + } + ); } - ); - - llvmPackages = - super.llvmPackages - // ( - let - llvmMajor = lib.versions.major super.llvmPackages.release_version; - - # libc++, and libc++abi do not need CoreFoundation. Avoid propagating the CF from prior - # stages to the final stdenv via rpath by dropping it from `extraBuildInputs`. - stdenvNoCC = super.stdenvNoCC.override { extraBuildInputs = [ ]; }; - stdenvNoCF = self.stdenv.override { extraBuildInputs = [ ]; }; - - libcxxBootstrapStdenv = self.overrideCC stdenvNoCF ( - self.llvmPackages.clangNoCompilerRtWithLibc.override { - nixSupport.cc-cflags = [ "-nostdlib" ]; - nixSupport.cc-ldflags = [ "-lSystem" ]; - } - ); - - tools = super.llvmPackages.tools.extend ( - selfTools: superTools: { - # LLVM’s check phase takes a while to run, so disable it in the first LLVM build to speed up the bootstrap. - libllvm = superTools.libllvm.override { doCheck = false; }; - } - ); - - libraries = super.llvmPackages.libraries.extend ( - selfLib: superLib: { - compiler-rt = null; - libcxx = superLib.libcxx.override ({ stdenv = libcxxBootstrapStdenv; }); - } - ); - in - { inherit tools libraries; } // tools // libraries - ); - }; + ]; extraNativeBuildInputs = lib.optionals localSystem.isAarch64 [ prevStage.updateAutotoolsGnuConfigScriptsHook @@ -1265,295 +783,79 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check } ) - # This stage rebuilds Libsystem. It also rebuilds bash, which will be needed in later stages + # This stage rebuilds the SDK. It also rebuilds bash, which will be needed in later stages # to use in patched shebangs (e.g., to make sure `icu-config` uses bash from nixpkgs). ( prevStage: # previous stage-xclang stdenv: - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage; - [ - atf - autoconf - automake - bash - bison - cctools - cmake - cmakeMinimal - coreutils - cpio - cyrus_sasl - db - ed - expat - flex - gettext - gmp - gnugrep - groff - icu - kyua - ld64 - libedit - libtapi - libtool - m4 - meson - ninja - openbsm - openldap - openpam - openssh - patchutils - pbzx - perl - pkg-config.pkg-config - python3 - python3Minimal - scons - serf - sqlite - subversion - sysctl.provider - texinfo - unzip - which - xz - ] - ); + assert allDeps isBuiltByBootstrapFilesCompiler [ + (stage1Packages prevStage) + (bintoolsPackages prevStage) + (darwinPackages prevStage) + (llvmToolsDeps prevStage) + (llvmToolsPackages prevStage) + (sdkPackages prevStage) + (sdkDarwinPackages prevStage) + ]; - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage; - [ - brotli - libffi - libiconv - libidn2 - libkrb5 - libssh2 - libunistring - libxml2 - ncurses - nghttp2 - openssl - zlib - zstd - ] - ); + assert allDeps isBuiltByNixpkgsCompiler [ + (llvmLibrariesDeps prevStage) + (llvmLibrariesPackages prevStage) + ]; - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage.darwin; - [ - locale - print-reexports - rewrite-tbd - sigtool - ] - ); - - assert - (!useAppleSDKLibs) - -> lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage.darwin; - [ - Libsystem - configd - ] - ); - assert (!useAppleSDKLibs) -> lib.all isFromNixpkgs (with prevStage.darwin; [ CF ]); - assert - useAppleSDKLibs - -> lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - CF - Libsystem - libobjc - ] - ); - assert lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - binutils-unwrapped - dyld - launchd - libclosure - libdispatch - xnu - ] - ); - - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage.llvmPackages; - [ - clang-unwrapped - libclang - libllvm - llvm - ] - ); - assert lib.all isBuiltByNixpkgsCompiler (with prevStage.llvmPackages; [ libcxx ]); - assert prevStage.llvmPackages.compiler-rt == null; + assert allDeps isFromNixpkgs [ + (darwinPackagesNoCC prevStage) + (sdkPackagesNoCC prevStage) + ]; stageFun prevStage { - name = "bootstrap-stage2"; - overrides = self: super: { - inherit (prevStage) - ccWrapperStdenv - atf - autoconf - automake - binutils-unwrapped - bison - brotli - cctools - cmake - cmakeMinimal - coreutils - cpio - curl - cyrus_sasl - db - ed - expat - flex - gettext - gmp - gnugrep - groff - icu - kyua - ld64 - libedit - libffi - libiconv - libidn2 - libkrb5 - libssh2 - libtapi - libtool - libunistring - libxml2 - m4 - meson - ncurses - nghttp2 - ninja - openbsm - openldap - openpam - openssh - openssl - patchutils - pbzx - perl - pkg-config - python3 - python3Minimal - scons - serf - sqlite - subversion - sysctl - texinfo - unzip - which - xz - zlib - zstd - ; + overrides = + self: super: + mergeDisjointAttrs [ + (stage1Packages prevStage) + (disallowedPackages prevStage) + (bintoolsPackages prevStage) + (llvmLibrariesDeps prevStage) + (llvmToolsDeps prevStage) + { + inherit (prevStage) ccWrapperStdenv; - # Bash must be linked against the system CoreFoundation instead of the open-source one. - # Otherwise, there will be a dependency cycle: bash -> CF -> icu -> bash (for icu^dev). - bash = super.bash.overrideAttrs (super: { - buildInputs = super.buildInputs ++ [ self.darwin.apple_sdk.frameworks.CoreFoundation ]; - }); + # Avoid an infinite recursion due to the SDK’s including ncurses, which depends on bash in its `dev` output. + bash = super.bash.override { stdenv = self.darwin.bootstrapStdenv; }; - darwin = super.darwin.overrideScope ( - selfDarwin: superDarwin: { - inherit (prevStage.darwin) - binutils-unwrapped - configd - darwin-stubs - launchd - locale - postLinkSignHook - print-reexports - rewrite-tbd - signingUtils - sigtool - ; + # Avoid pulling in a full python and its extra dependencies for the llvm/clang builds. + libxml2 = super.libxml2.override { pythonSupport = false; }; - apple_sdk = superDarwin.apple_sdk // { - inherit (prevStage.darwin.apple_sdk) sdkRoot; + # Use Bash from this stage to avoid propagating Bash from a previous stage to the final stdenv. + ncurses = super.ncurses.override { + stdenv = self.darwin.bootstrapStdenv.override { shell = lib.getExe self.bash; }; }; - # Rewrap binutils so it uses the rebuilt Libsystem. - binutils = - superDarwin.binutils.override { - inherit (prevStage) expand-response-params; - libc = selfDarwin.Libsystem; - } + darwin = super.darwin.overrideScope ( + selfDarwin: superDarwin: + darwinPackages prevStage // { - passthru = { - inherit (prevStage.bintools.passthru) isFromBootstrapFiles; + inherit (prevStage.darwin) binutils-unwrapped; + # Rewrap binutils so it uses the rebuilt Libsystem. + binutils = superDarwin.binutils.override { + inherit (prevStage) expand-response-params; + libc = selfDarwin.libSystem; }; - }; + } + ); + + llvmPackages = + let + tools = super.llvmPackages.tools.extend ( + _: _: llvmToolsPackages prevStage // { inherit (prevStage.llvmPackages) clangNoCompilerRtWithLibc; } + ); + libraries = super.llvmPackages.libraries.extend (_: _: llvmLibrariesPackages prevStage); + in + super.llvmPackages // { inherit tools libraries; } // tools // libraries; } - ); - - llvmPackages = - super.llvmPackages - // ( - let - tools = super.llvmPackages.tools.extend ( - _: _: { - inherit (prevStage.llvmPackages) - clang-unwrapped - clangNoCompilerRtWithLibc - libclang - lld - libllvm - llvm - ; - } - ); - - libraries = super.llvmPackages.libraries.extend ( - selfLib: superLib: { - inherit (prevStage.llvmPackages) libcxx; - - # Make sure compiler-rt is linked against the CF from this stage, which can be - # propagated to the final stdenv. CF is required by ASAN. - compiler-rt = superLib.compiler-rt.override ({ - inherit (self.llvmPackages) libllvm; - stdenv = self.stdenv.override { extraBuildInputs = [ self.darwin.CF ]; }; - }); - } - ); - in - { - inherit tools libraries; - inherit (prevStage.llvmPackages) release_version; - } - // tools - // libraries - ); - - # Don’t link anything in this stage against CF to prevent propagating CF from prior stages to - # the final stdenv, which happens because of the rpath hook. - stdenvNoCC = super.stdenvNoCC.override { extraBuildInputs = [ ]; }; - stdenv = - let - stdenvNoCF = super.stdenv.override { extraBuildInputs = [ ]; }; - in - self.overrideCC stdenvNoCF ( - self.llvmPackages.clangNoCompilerRtWithLibc.override { inherit (self.llvmPackages) libcxx; } - ); - }; + ]; extraNativeBuildInputs = lib.optionals localSystem.isAarch64 [ prevStage.updateAutotoolsGnuConfigScriptsHook @@ -1567,231 +869,79 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check ) # Rebuild LLVM with LLVM. This stage also rebuilds certain dependencies needed by LLVM. - # - # LLVM requires: libcxx libffi libiconv libxml2 ncurses python3 zlib + # The SDK (but not its other inputs) is also rebuilt this stage to pick up the rebuilt cctools for `libtool`. ( prevStage: # previous stage2 stdenv: - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage; - [ - autoconf - automake - bison - brotli - cctools - cmake - cmakeMinimal - coreutils - cpio - cyrus_sasl - db - ed - expat - flex - gettext - gmp - gnugrep - groff - icu - ld64 - libedit - libffi - libiconv - libidn2 - libkrb5 - libssh2 - libtool - libtapi - libunistring - libxml2 - m4 - meson - ncurses - nghttp2 - ninja - openbsm - openldap - openpam - openssh - openssl - patchutils - pbzx - perl - pkg-config.pkg-config - python3 - python3Minimal - scons - serf - sqlite - subversion - sysctl.provider - texinfo - unzip - which - xz - zstd - zlib - ] - ); - assert lib.all isBuiltByNixpkgsCompiler (with prevStage; [ bash ]); + assert allDeps isBuiltByBootstrapFilesCompiler [ + (stage1Packages prevStage) + (bintoolsPackages prevStage) + (darwinPackages prevStage) + (llvmToolsPackages prevStage) + (llvmToolsDeps prevStage) + ]; - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage.darwin; - [ - locale - print-reexports - rewrite-tbd - sigtool - ] - ); + assert allDeps isBuiltByNixpkgsCompiler [ + (llvmLibrariesDeps prevStage) + (llvmLibrariesPackages prevStage) + (sdkPackages prevStage) + (sdkDarwinPackages prevStage) + ]; - assert - (!useAppleSDKLibs) -> lib.all isBuiltByBootstrapFilesCompiler (with prevStage.darwin; [ configd ]); - assert - (!useAppleSDKLibs) -> lib.all isBuiltByNixpkgsCompiler (with prevStage.darwin; [ Libsystem ]); - assert (!useAppleSDKLibs) -> lib.all isFromNixpkgs (with prevStage.darwin; [ CF ]); - assert - useAppleSDKLibs - -> lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - CF - Libsystem - libobjc - ] - ); - assert lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - binutils-unwrapped - dyld - launchd - libclosure - libdispatch - xnu - ] - ); - - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage.llvmPackages; - [ - clang-unwrapped - libclang - libllvm - llvm - ] - ); - assert lib.all isBuiltByNixpkgsCompiler (with prevStage.llvmPackages; [ libcxx ]); + assert allDeps isFromNixpkgs [ + (darwinPackagesNoCC prevStage) + (sdkPackagesNoCC prevStage) + ]; stageFun prevStage { - name = "bootstrap-stage3"; - overrides = self: super: { - inherit (prevStage) - ccWrapperStdenv - autoconf - automake - bash - binutils-unwrapped - bison - brotli - cmake - cmakeMinimal - coreutils - cpio - curl - cyrus_sasl - db - ed - expat - flex - gettext - gmp - gnugrep - groff - libedit - libidn2 - libkrb5 - libssh2 - libtool - libunistring - m4 - meson - nghttp2 - ninja - openbsm - openldap - openpam - openssh - openssl - patchutils - pbzx - perl - pkg-config - python3 - python3Minimal - scons - sed - serf - sharutils - sqlite - subversion - sysctl - texinfo - unzip - which - xz - zstd - ; + overrides = + self: super: + mergeDisjointAttrs [ + (stage1Packages prevStage) + (disallowedPackages prevStage) + (llvmLibrariesDeps prevStage) + (sdkPackages prevStage) + { + inherit (prevStage) ccWrapperStdenv; - # Disable tests because they use dejagnu, which fails to run. - libffi = super.libffi.override { doCheck = false; }; + # Disable tests because they use dejagnu, which fails to run. + libffi = super.libffi.override { doCheck = false; }; - # Avoid pulling in a full python and its extra dependencies for the llvm/clang builds. - libxml2 = super.libxml2.override { pythonSupport = false; }; + darwin = super.darwin.overrideScope ( + selfDarwin: superDarwin: + darwinPackages prevStage + // sdkDarwinPackages prevStage + // { + inherit (prevStage.darwin) libSystem; - darwin = super.darwin.overrideScope ( - selfDarwin: superDarwin: { - inherit (prevStage.darwin) - CF - Libsystem - binutils - binutils-unwrapped - configd - darwin-stubs - dyld - launchd - libclosure - libdispatch - libobjc - locale - objc4 - postLinkSignHook - print-reexports - rewrite-tbd - signingUtils - sigtool - ; + # binutils-unwrapped needs to build the LLVM man pages, which requires a lot of Python stuff + # that ultimately ends up depending on git. Fortunately, the git dependency is only for check + # inputs. The following set of overrides allow the LLVM documentation to be built without + # pulling curl (and other packages like ffmpeg) into the stdenv bootstrap. + binutils-unwrapped = superDarwin.binutils-unwrapped.override (old: { + llvm-manpages = super.llvmPackages.llvm-manpages.override { + python3Packages = self.python3.pkgs.overrideScope ( + _: superPython: { + hatch-vcs = superPython.hatch-vcs.overrideAttrs { doInstallCheck = false; }; + markdown-it-py = superPython.markdown-it-py.overrideAttrs { doInstallCheck = false; }; + mdit-py-plugins = superPython.mdit-py-plugins.overrideAttrs { doInstallCheck = false; }; + myst-parser = superPython.myst-parser.overrideAttrs { doInstallCheck = false; }; + } + ); + }; + }); + } + ); - apple_sdk = superDarwin.apple_sdk // { - inherit (prevStage.darwin.apple_sdk) sdkRoot; - }; + llvmPackages = + let + libraries = super.llvmPackages.libraries.extend (_: _: llvmLibrariesPackages prevStage); + in + super.llvmPackages // { inherit libraries; } // libraries; } - ); - - llvmPackages = - super.llvmPackages - // ( - let - libraries = super.llvmPackages.libraries.extend ( - _: _: { inherit (prevStage.llvmPackages) compiler-rt libcxx; } - ); - in - { inherit libraries; } // libraries - ); - }; + ]; extraNativeBuildInputs = lib.optionals localSystem.isAarch64 [ prevStage.updateAutotoolsGnuConfigScriptsHook @@ -1809,287 +959,99 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check ( prevStage: # previous stage3 stdenv: - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage; - [ - autoconf - automake - bison - brotli - cmake - cmakeMinimal - coreutils - cpio - cyrus_sasl - db - ed - expat - flex - gettext - gmp - gnugrep - groff - libedit - libidn2 - libkrb5 - libssh2 - libtool - libunistring - m4 - meson - nghttp2 - ninja - openbsm - openldap - openpam - openssh - openssl - patchutils - pbzx - perl - pkg-config.pkg-config - python3 - python3Minimal - scons - serf - sqlite - subversion - sysctl.provider - texinfo - unzip - which - xz - zstd - ] - ); + assert allDeps isBuiltByBootstrapFilesCompiler [ + (stage1Packages prevStage) + (darwinPackages prevStage) + ]; - assert lib.all isBuiltByNixpkgsCompiler ( - with prevStage; - [ - bash - cctools - icu - ld64 - libtapi - libffi - libiconv - libxml2 - zlib - ] - ); + assert allDeps isBuiltByNixpkgsCompiler [ + (bintoolsPackages prevStage) + (llvmLibrariesDeps prevStage) + (llvmLibrariesPackages prevStage) + (llvmToolsDeps prevStage) + (llvmToolsPackages prevStage) + (sdkPackages prevStage) + (sdkDarwinPackages prevStage) + ]; - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage.darwin; - [ - locale - print-reexports - rewrite-tbd - sigtool - ] - ); - - assert - (!useAppleSDKLibs) -> lib.all isBuiltByBootstrapFilesCompiler (with prevStage.darwin; [ configd ]); - assert - (!useAppleSDKLibs) -> lib.all isBuiltByNixpkgsCompiler (with prevStage.darwin; [ Libsystem ]); - assert (!useAppleSDKLibs) -> lib.all isFromNixpkgs (with prevStage.darwin; [ CF ]); - assert - useAppleSDKLibs - -> lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - CF - Libsystem - libobjc - ] - ); - assert lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - binutils-unwrapped - dyld - launchd - libclosure - libdispatch - xnu - ] - ); - - assert lib.all isBuiltByNixpkgsCompiler ( - with prevStage.llvmPackages; - [ - clang-unwrapped - libclang - libllvm - llvm - compiler-rt - libcxx - ] - ); + assert allDeps isFromNixpkgs [ + (darwinPackagesNoCC prevStage) + (sdkPackagesNoCC prevStage) + ]; stageFun prevStage { - name = "bootstrap-stage4"; - overrides = self: super: { - inherit (prevStage) - ccWrapperStdenv - autoconf - automake - bash - binutils-unwrapped - bison - cmake - cmakeMinimal - curl - cyrus_sasl - db - expat - flex - groff - libedit - libtool - m4 - meson - ninja - openldap - openssh - patchutils - perl - pkg-config - python3 - python3Minimal - scons - serf - sqlite - subversion - sysctl - texinfo - unzip - which + overrides = + self: super: + mergeDisjointAttrs [ + (bintoolsPackages prevStage) + (disallowedPackages prevStage) + (llvmLibrariesDeps prevStage) + (llvmToolsDeps prevStage) + (sdkPackages prevStage) + (sdkPackagesNoCC prevStage) + { + inherit (prevStage) ccWrapperStdenv; - # CF dependencies - don’t rebuild them. - icu + # Rebuild locales and sigtool with the new clang. + darwin = super.darwin.overrideScope ( + _: superDarwin: + sdkDarwinPackages prevStage + // { + inherit (prevStage.darwin) binutils-unwrapped libSystem; + binutils = superDarwin.binutils.override { + # Build expand-response-params with last stage like below + inherit (prevStage) expand-response-params; + }; + } + ); - # LLVM dependencies - don’t rebuild them. - libffi - libiconv - libiconv-darwin - libxml2 - ncurses - zlib - ; + llvmPackages = + let + tools = super.llvmPackages.tools.extend ( + _: _: + llvmToolsPackages prevStage + // { + libcxxClang = super.wrapCCWith rec { + nativeTools = false; + nativeLibc = false; - darwin = super.darwin.overrideScope ( - selfDarwin: superDarwin: { - inherit (prevStage.darwin) - dyld - CF - Libsystem - darwin-stubs - # CF dependencies - don’t rebuild them. - libobjc - objc4 - ; + inherit (prevStage) expand-response-params; - apple_sdk = superDarwin.apple_sdk // { - inherit (prevStage.darwin.apple_sdk) sdkRoot; - }; + extraPackages = [ self.llvmPackages.compiler-rt ]; - signingUtils = superDarwin.signingUtils.override { inherit (selfDarwin) sigtool; }; - - binutils = superDarwin.binutils.override { - inherit (prevStage) expand-response-params; - - bintools = selfDarwin.binutils-unwrapped; - libc = selfDarwin.Libsystem; - }; - - # binutils-unwrapped needs to build the LLVM man pages, which requires a lot of Python stuff - # that ultimately ends up depending on git. Fortunately, the git dependency is only for check - # inputs. The following set of overrides allow the LLVM documentation to be built without - # pulling curl (and other packages like ffmpeg) into the stdenv bootstrap. - binutils-unwrapped = superDarwin.binutils-unwrapped.override (old: { - llvm-manpages = super.llvmPackages.llvm-manpages.override { - python3Packages = self.python3.pkgs.overrideScope ( - _: superPython: { - hatch-vcs = superPython.hatch-vcs.overrideAttrs { doInstallCheck = false; }; - markdown-it-py = superPython.markdown-it-py.overrideAttrs { doInstallCheck = false; }; - mdit-py-plugins = superPython.mdit-py-plugins.overrideAttrs { doInstallCheck = false; }; - myst-parser = superPython.myst-parser.overrideAttrs { doInstallCheck = false; }; - } - ); - }; - }); - } - ); - - llvmPackages = - super.llvmPackages - // ( - let - tools = super.llvmPackages.tools.extend ( - _: _: { - inherit (prevStage.llvmPackages) - clang-unwrapped - libclang - libllvm - llvm - ; - libcxxClang = lib.makeOverridable (import ../../build-support/cc-wrapper) { - nativeTools = false; - nativeLibc = false; - - inherit (prevStage) expand-response-params; - - extraPackages = [ self.llvmPackages.compiler-rt ]; - - extraBuildCommands = - let - inherit (self.llvmPackages) clang-unwrapped compiler-rt release_version; - - # Clang 16+ uses only the major version in resource-root, but older versions use the complete one. - clangResourceRootIncludePath = - clangLib: clangRelease: - let - clangVersion = - if lib.versionAtLeast clangRelease "16" then lib.versions.major clangRelease else clangRelease; - in - "${clangLib}/lib/clang/${clangVersion}/include"; - in - '' + extraBuildCommands = '' rsrc="$out/resource-root" mkdir "$rsrc" - ln -s "${clangResourceRootIncludePath clang-unwrapped.lib release_version}" "$rsrc" - ln -s "${compiler-rt.out}/lib" "$rsrc/lib" - ln -s "${compiler-rt.out}/share" "$rsrc/share" + ln -s "${cc.lib}/lib/clang/${lib.versions.major (lib.getVersion cc)}/include" "$rsrc" echo "-resource-dir=$rsrc" >> $out/nix-support/cc-cflags + ln -s "${prevStage.llvmPackages.compiler-rt.out}/lib" "$rsrc/lib" + ln -s "${prevStage.llvmPackages.compiler-rt.out}/share" "$rsrc/share" ''; - cc = self.llvmPackages.clang-unwrapped; - bintools = self.darwin.binutils; + cc = self.llvmPackages.clang-unwrapped; + bintools = self.darwin.binutils; - isClang = true; - libc = self.darwin.Libsystem; - inherit (self.llvmPackages) libcxx; + isClang = true; + libc = self.darwin.libSystem; + inherit (self.llvmPackages) libcxx; - inherit lib; - inherit (self) - stdenvNoCC - coreutils - gnugrep - runtimeShell - ; - }; - } - ); - libraries = super.llvmPackages.libraries.extend ( - _: _: { inherit (prevStage.llvmPackages) compiler-rt libcxx; } - ); - in - { inherit tools libraries; } // tools // libraries - ); - }; + inherit lib; + inherit (self) + stdenvNoCC + coreutils + gnugrep + runtimeShell + ; + }; + } + ); + libraries = super.llvmPackages.libraries.extend (_: _: llvmLibrariesPackages prevStage); + in + super.llvmPackages // { inherit tools libraries; } // tools // libraries; + } + ]; extraNativeBuildInputs = lib.optionals localSystem.isAarch64 [ prevStage.updateAutotoolsGnuConfigScriptsHook @@ -2111,141 +1073,24 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check ( prevStage: # previous stage4 stdenv: - assert lib.all isBuiltByNixpkgsCompiler ( - with prevStage; - [ - bash - brotli - bzip2 - cctools - cpio - diffutils - ed - file - findutils - gawk - gettext - gmp - gnugrep - gnumake - gnused - gnutar - gzip - icu - ld64 - libffi - libiconv - libidn2 - libkrb5 - libssh2 - libtapi - libunistring - libxml2 - libyaml - ncurses - nghttp2 - openbsm - openpam - openssl - patch - pbzx - pcre - xar - xz - zlib - zstd - ] - ); - assert lib.all isBuiltByNixpkgsCompiler ( - with prevStage.darwin; - [ - locale - print-reexports - rewrite-tbd - sigtool - ] - ); + assert allDeps isBuiltByNixpkgsCompiler [ + (lib.filterAttrs (_: pkg: lib.getName pkg != "pkg-config-wrapper") (stage1Packages prevStage)) # pkg-config is a wrapper + (bintoolsPackages prevStage) + (darwinPackages prevStage) + (llvmLibrariesDeps prevStage) + (llvmLibrariesPackages prevStage) + (llvmToolsDeps prevStage) + (llvmToolsPackages prevStage) + (sdkPackages prevStage) + (sdkDarwinPackages prevStage) + { inherit (prevStage.pkg-config) pkg-config; } + ]; - assert - (!useAppleSDKLibs) - -> lib.all isBuiltByNixpkgsCompiler ( - with prevStage.darwin; - [ - Libsystem - configd - ] - ); - assert (!useAppleSDKLibs) -> lib.all isFromNixpkgs (with prevStage.darwin; [ CF ]); - assert - useAppleSDKLibs - -> lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - CF - Libsystem - libobjc - ] - ); - assert lib.all isFromNixpkgs ( - with prevStage.darwin; - [ - binutils-unwrapped - dyld - launchd - libclosure - libdispatch - xnu - ] - ); - - assert lib.all isBuiltByNixpkgsCompiler ( - with prevStage.llvmPackages; - [ - clang-unwrapped - libclang - libllvm - llvm - compiler-rt - libcxx - ] - ); - - assert lib.all isBuiltByBootstrapFilesCompiler ( - with prevStage; - [ - autoconf - automake - bison - cmake - cmakeMinimal - cyrus_sasl - db - expat - flex - groff - libedit - libtool - m4 - meson - ninja - openldap - openssh - patchutils - perl - pkg-config.pkg-config - python3 - python3Minimal - scons - serf - sqlite - subversion - sysctl.provider - texinfo - unzip - which - ] - ); + assert allDeps isFromNixpkgs [ + (darwinPackagesNoCC prevStage) + (sdkPackagesNoCC prevStage) + ]; let cc = prevStage.llvmPackages.clang; @@ -2269,11 +1114,11 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check initialPath = ((import ../generic/common-path.nix) { pkgs = prevStage; }); - extraNativeBuildInputs = - lib.optionals localSystem.isAarch64 [ prevStage.updateAutotoolsGnuConfigScriptsHook ] - ++ [ prevStage.darwin.apple_sdk.sdkRoot ]; + extraNativeBuildInputs = lib.optionals localSystem.isAarch64 [ + prevStage.updateAutotoolsGnuConfigScriptsHook + ]; - extraBuildInputs = [ prevStage.darwin.CF ]; + extraBuildInputs = [ prevStage.apple-sdk ]; inherit cc; @@ -2281,69 +1126,76 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check inherit (prevStage.stdenv) fetchurlBoot; - extraAttrs = - { - inherit bootstrapTools; - libc = prevStage.darwin.Libsystem; - shellPackage = prevStage.bash; - } - // lib.optionalAttrs useAppleSDKLibs { - # This objc4 will be propagated to all builds using the final stdenv, - # and we shouldn't mix different builds, because they would be - # conflicting LLVM modules. Export it here so we can grab it later. - inherit (prevStage.darwin) objc4; - }; + extraAttrs = { + inherit bootstrapTools; + libc = prevStage.darwin.libSystem; + shellPackage = prevStage.bash; + }; disallowedRequisites = [ bootstrapTools.out ]; allowedRequisites = - (with prevStage; [ - bash - bzip2.bin - bzip2.out - cc.expand-response-params - cctools - ld64.out - ld64.lib - libtapi.out - coreutils - darwin.binutils - darwin.binutils.bintools - diffutils - ed - file - findutils - gawk - gettext - gmp.out - gnugrep - gnugrep.pcre2.out - gnumake - gnused - gnutar - gzip - icu.out - libffi.out - libiconv - libunistring.out - libxml2.out - ncurses.dev - ncurses.man - ncurses.out - openbsm - openpam - openssl.out - patch - xar.lib - xz.bin - xz.out - zlib.dev - zlib.out - ]) + ( + with prevStage; + [ + apple-sdk + bash + bzip2.bin + bzip2.out + cc.expand-response-params + cctools + cctools.libtool + coreutils + darwin.binutils + darwin.binutils.bintools + diffutils + ed + file + findutils + gawk + gettext + gmp.out + gnugrep + gnugrep.pcre2.out + gnumake + gnused + gnutar + gzip + ld64.lib + ld64.out + libffi.out + libtapi.out + libunistring.out + libxml2.out + ncurses.dev + ncurses.man + ncurses.out + openbsm + openpam + openssl.out + patch + xar.lib + xcbuild + xcbuild.xcrun + xz.bin + xz.out + zlib.dev + zlib.out + ] + ++ apple-sdk.propagatedBuildInputs + ) ++ lib.optionals localSystem.isAarch64 [ prevStage.updateAutotoolsGnuConfigScriptsHook prevStage.gnu-config ] + ++ lib.optionals localSystem.isx86_64 [ prevStage.darwin.Csu ] + ++ (with prevStage.darwin; [ + libiconv.out + libresolv.out + libsbuf.out + libSystem + locale + ]) ++ (with prevStage.llvmPackages; [ bintools-unwrapped clang-unwrapped @@ -2355,117 +1207,65 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check lld llvm llvm.lib - ]) - ++ ( - with prevStage.darwin; - [ - CF - Libsystem - dyld - locale - apple_sdk.sdkRoot - ] - ++ lib.optionals useAppleSDKLibs [ objc4 ] - ); + ]); __stdenvImpureHostDeps = commonImpureHostDeps; __extraImpureHostDeps = commonImpureHostDeps; overrides = self: super: - { - inherit (prevStage) - bash - brotli - bzip2 - coreutils - cpio - diffutils - ed - file - findutils - gawk - gettext - gmp - gnugrep - gnumake - gnused - gnutar - gzip - icu - libffi - libiconv - libiconv-darwin - libidn2 - libssh2 - libunistring - libxml2 - libyaml - ncurses - nghttp2 - openbsm - openpam - openssl - patch - pbzx - pcre - python3Minimal - xar - xz - zlib - zstd - ; + mergeDisjointAttrs [ + (llvmLibrariesDeps prevStage) + (llvmToolsDeps prevStage) + (sdkPackages prevStage) + (sdkPackagesNoCC prevStage) + { + inherit (prevStage) + diffutils + ed + file + findutils + gawk + gettext + gnumake + gnused + gnutar + gzip + patch + ; - darwin = super.darwin.overrideScope ( - _: superDarwin: - { - inherit (prevStage.darwin) - CF - Libsystem - darwin-stubs - dyld - locale - libobjc - rewrite-tbd - xnu - ; + "apple-sdk_${sdkMajorVersion}" = self.apple-sdk; - apple_sdk = superDarwin.apple_sdk // { - inherit (prevStage.darwin.apple_sdk) sdkRoot; - }; - } - // lib.optionalAttrs (super.stdenv.targetPlatform == localSystem) { - inherit (prevStage.darwin) binutils binutils-unwrapped; - } - ); - } - // lib.optionalAttrs (super.stdenv.targetPlatform == localSystem) { - inherit (prevStage) cctools ld64 libtapi; - inherit (prevStage.llvmPackages) clang llvm; - - # Need to get rid of these when cross-compiling. - llvmPackages = - super.llvmPackages - // ( - let - tools = super.llvmPackages.tools.extend ( - _: _: { - inherit (prevStage.llvmPackages) - clang - clang-unwrapped - libclang - libllvm - llvm - ; - } - ); - libraries = super.llvmPackages.libraries.extend ( - _: _: { inherit (prevStage.llvmPackages) compiler-rt libcxx; } - ); - in - { inherit tools libraries; } // tools // libraries + darwin = super.darwin.overrideScope ( + _: _: + sdkDarwinPackages prevStage + // { + inherit (prevStage.darwin) libSystem locale sigtool; + } + // lib.optionalAttrs (super.stdenv.targetPlatform == localSystem) { + inherit (prevStage.darwin) binutils binutils-unwrapped; + } ); - }; + } + (lib.optionalAttrs (super.stdenv.targetPlatform == localSystem) ( + (bintoolsPackages prevStage) + // { + inherit (prevStage.llvmPackages) clang; + # Need to get rid of these when cross-compiling. + "llvmPackages_${lib.versions.major prevStage.llvmPackages.release_version}" = + let + llvmVersion = lib.versions.major prevStage.llvmPackages.release_version; + tools = super."llvmPackages_${llvmVersion}".tools.extend ( + _: _: llvmToolsPackages prevStage // { inherit (prevStage.llvmPackages) clang; } + ); + libraries = super."llvmPackages_${llvmVersion}".libraries.extend ( + _: _: llvmLibrariesPackages prevStage + ); + in + super."llvmPackages_${llvmVersion}" // { inherit tools libraries; } // tools // libraries; + } + )) + ]; }; } ) @@ -2477,11 +1277,8 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check assert isBuiltByNixpkgsCompiler prevStage.cctools; assert isBuiltByNixpkgsCompiler prevStage.ld64; assert isBuiltByNixpkgsCompiler prevStage.darwin.sigtool; - assert isBuiltByNixpkgsCompiler prevStage.darwin.print-reexports; - assert isBuiltByNixpkgsCompiler prevStage.darwin.rewrite-tbd; - assert isFromNixpkgs prevStage.darwin.CF; - assert isFromNixpkgs prevStage.darwin.Libsystem; + assert isFromNixpkgs prevStage.darwin.libSystem; assert isFromNixpkgs prevStage.darwin.binutils-unwrapped; assert isBuiltByNixpkgsCompiler prevStage.llvmPackages.clang-unwrapped; @@ -2494,6 +1291,9 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check assert isFromNixpkgs prevStage.binutils-unwrapped.src; assert isBuiltByNixpkgsCompiler prevStage.curl; + # libiconv should be an alias for darwin.libiconv + assert prevStage.libiconv == prevStage.darwin.libiconv; + { inherit (prevStage) config overlays stdenv; } From 9c004ef367a7a3bfaba340453d821be66dfbafcf Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 2 Oct 2024 19:07:09 -0400 Subject: [PATCH 0295/1574] darwin.stdenv: use xarMinimal Using xarMinimal avoids pulling e2fsprogs and (eventually) macfuse-stubs into the Darwin stdenv bootstrap. --- pkgs/stdenv/darwin/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/stdenv/darwin/default.nix b/pkgs/stdenv/darwin/default.nix index 1a9c77d73e72..1ae60ab4d821 100644 --- a/pkgs/stdenv/darwin/default.nix +++ b/pkgs/stdenv/darwin/default.nix @@ -652,6 +652,8 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check scons = super.scons.override { python3Packages = self.python3.pkgs; }; + xar = super.xarMinimal; + darwin = super.darwin.overrideScope ( selfDarwin: superDarwin: { signingUtils = prevStage.darwin.signingUtils.override { inherit (selfDarwin) sigtool; }; @@ -909,6 +911,8 @@ assert bootstrapTools.passthru.isFromBootstrapFiles or false; # sanity check # Disable tests because they use dejagnu, which fails to run. libffi = super.libffi.override { doCheck = false; }; + xar = super.xarMinimal; + darwin = super.darwin.overrideScope ( selfDarwin: superDarwin: darwinPackages prevStage From b7442b90668d49ac5c3717a5b1cfae0dda4bb334 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Wed, 21 Aug 2024 07:50:34 -0400 Subject: [PATCH 0296/1574] darwin.stdenv: provide an SDK when cross-compiling Static can rely on the standard cross-SDK because it will be a static SDK when building for static targets. --- pkgs/stdenv/adapters.nix | 2 -- pkgs/stdenv/cross/default.nix | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pkgs/stdenv/adapters.nix b/pkgs/stdenv/adapters.nix index 4289bcaeb991..45d87a6d1f83 100644 --- a/pkgs/stdenv/adapters.nix +++ b/pkgs/stdenv/adapters.nix @@ -137,8 +137,6 @@ rec { # Best effort static binaries. Will still be linked to libSystem, # but more portable than Nix store binaries. makeStaticDarwin = stdenv: stdenv.override (old: { - # extraBuildInputs are dropped in cross.nix, but darwin still needs them - extraBuildInputs = [ pkgs.buildPackages.darwin.CF ]; mkDerivationFromStdenv = withOldMkDerivation old (stdenv: mkDerivationSuper: args: (mkDerivationSuper args).overrideAttrs (prevAttrs: { NIX_CFLAGS_LINK = toString (prevAttrs.NIX_CFLAGS_LINK or "") diff --git a/pkgs/stdenv/cross/default.nix b/pkgs/stdenv/cross/default.nix index 13fb71c214ff..bf67d2f1a225 100644 --- a/pkgs/stdenv/cross/default.nix +++ b/pkgs/stdenv/cross/default.nix @@ -75,7 +75,7 @@ in lib.init bootStages ++ [ baseStdenv = stdenvNoCC.override { # Old ones run on wrong platform extraBuildInputs = lib.optionals hostPlatform.isDarwin [ - buildPackages.targetPackages.darwin.apple_sdk.frameworks.CoreFoundation + buildPackages.targetPackages.apple-sdk ]; hasCC = !stdenvNoCC.targetPlatform.isGhcjs; From 4624bd7959a6d1edac44cdca27a91d48065c7319 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 21 Sep 2024 10:25:31 -0400 Subject: [PATCH 0297/1574] darwin.adv_cmds: convert to Meson and use mkAppleDerivation --- .../apple-source-releases/adv_cmds/boot.nix | 101 -------- .../adv_cmds/default.nix | 65 ------ .../adv_cmds/meson.build.in | 220 ++++++++++++++++++ .../adv_cmds/meson.options | 1 + .../adv_cmds/package.nix | 105 +++++++++ .../darwin/apple-source-releases/default.nix | 7 +- .../apple-source-releases/versions.json | 4 + pkgs/top-level/darwin-packages.nix | 2 + 8 files changed, 334 insertions(+), 171 deletions(-) delete mode 100644 pkgs/os-specific/darwin/apple-source-releases/adv_cmds/boot.nix delete mode 100644 pkgs/os-specific/darwin/apple-source-releases/adv_cmds/default.nix create mode 100644 pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.build.in create mode 100644 pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.options create mode 100644 pkgs/os-specific/darwin/apple-source-releases/adv_cmds/package.nix diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/boot.nix b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/boot.nix deleted file mode 100644 index 7d1066a25915..000000000000 --- a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/boot.nix +++ /dev/null @@ -1,101 +0,0 @@ -{ lib, stdenv, buildPackages, appleDerivation, fetchFromGitHub, bsdmake, perl, flex, bison -}: - -# this derivation sucks -# locale data was removed after adv_cmds-118, so our base is that because it's easier than -# replicating the bizarre bsdmake file structure -# -# sadly adv_cmds-118 builds a mklocale and colldef that generate files that our libc can no -# longer understand -# -# the more recent adv_cmds release is used for everything else in this package - -let recentAdvCmds = fetchFromGitHub { - owner = "apple-oss-distributions"; - repo = "adv_cmds"; - rev = "adv_cmds-158"; - hash = "sha256-1qL69pGHIaefooJJ8eT83XGz9+bW7Yg3k+X9fNkMCHw="; -}; - -in appleDerivation { - depsBuildBuild = [ buildPackages.stdenv.cc ]; - nativeBuildInputs = [ bsdmake perl bison flex ]; - buildInputs = [ flex ]; - - patchPhase = '' - substituteInPlace BSDmakefile \ - --replace chgrp true \ - --replace /Developer/Makefiles/bin/compress-man-pages.pl true \ - --replace "ps.tproj" "" --replace "gencat.tproj" "" --replace "md.tproj" "" \ - --replace "tabs.tproj" "" --replace "cap_mkdb.tproj" "" \ - --replace "!= tconf --test TARGET_OS_EMBEDDED" "= NO" - - substituteInPlace Makefile --replace perl true - - substituteInPlace colldef.tproj/scan.l \ - --replace 'static orderpass = 0;' 'static int orderpass = 0;' - - for subproject in colldef mklocale monetdef msgdef numericdef timedef; do - substituteInPlace usr-share-locale.tproj/$subproject/BSDmakefile \ - --replace /usr/share/locale "" \ - --replace '-o ''${BINOWN} -g ''${BINGRP}' "" \ - --replace "rsync -a" "cp -r" - done - ''; - - preBuild = '' - cp -r --no-preserve=all ${recentAdvCmds}/colldef . - - substituteInPlace colldef/scan.l \ - --replace 'static orderpass = 0;' 'static int orderpass = 0;' - - pushd colldef - mv locale/collate.h . - flex -t -8 -i scan.l > scan.c - yacc -d parse.y - clang *.c -o colldef -lfl - popd - mv colldef/colldef colldef.tproj/colldef - - cp -r --no-preserve=all ${recentAdvCmds}/mklocale . - pushd mklocale - flex -t -8 -i lex.l > lex.c - yacc -d yacc.y - clang *.c -o mklocale -lfl - popd - mv mklocale/mklocale mklocale.tproj/mklocale - ''; - - buildPhase = '' - runHook preBuild - - bsdmake -C usr-share-locale.tproj - - ${stdenv.cc.targetPrefix}clang ${recentAdvCmds}/ps/*.c -o ps - ''; - - installPhase = '' - bsdmake -C usr-share-locale.tproj install DESTDIR="$locale/share/locale" - - # need to get rid of runtime dependency on flex - # install -d 0755 $locale/bin - # install -m 0755 colldef.tproj/colldef $locale/bin - # install -m 0755 mklocale.tproj/mklocale $locale/bin - - install -d 0755 $ps/bin - install ps $ps/bin/ps - touch "$out" - ''; - - outputs = [ - "out" - "ps" - "locale" - ]; - setOutputFlags = false; - - meta = { - platforms = lib.platforms.darwin; - maintainers = with lib.maintainers; [ gridaphobe ]; - }; -} diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/default.nix b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/default.nix deleted file mode 100644 index 3ac338d5c619..000000000000 --- a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/default.nix +++ /dev/null @@ -1,65 +0,0 @@ -{ stdenv, lib, appleDerivation, xcbuild, ncurses, libutil, Libc }: - -let - # Libc conflicts with libc++ 16, so provide only the header from it that’s needed to build. - msgcat = stdenv.mkDerivation { - pname = "Libc-msgcat"; - version = lib.getVersion Libc; - - buildCommand = '' - mkdir -p "$out/include" - ln -s ${lib.getDev Libc}/include/msgcat.h "$out/include/" - ''; - }; -in -appleDerivation { - # We can't just run the root build, because https://github.com/facebook/xcbuild/issues/264 - - patchPhase = '' - substituteInPlace adv_cmds.xcodeproj/project.pbxproj \ - --replace '/usr/lib/libtermcap.dylib' 'libncurses.dylib' - substituteInPlace colldef/scan.l \ - --replace 'static orderpass = 0;' 'static int orderpass = 0;' - ''; - - # pkill requires special private headers that are unavailable in - # NixPkgs. These ones are needed: - # - xpc/xpxc.h - # - os/base_private.h - # - _simple.h - # We disable it here for now. TODO: build pkill inside adv_cmds - buildPhase = '' - targets=$(xcodebuild -list \ - | awk '/Targets:/{p=1;print;next} p&&/^\s*$/{p=0};p' \ - | tail -n +2 | sed 's/^[ \t]*//' \ - | grep -v -e Desktop -e Embedded -e mklocale -e pkill -e pgrep -e colldef) - - for i in $targets; do - xcodebuild SYMROOT=$PWD/Products OBJROOT=$PWD/Intermediates -target $i - done - ''; - - # temporary install phase until xcodebuild has "install" support - installPhase = '' - for f in Products/Release/*; do - if [ -f $f ]; then - install -D $f $out/bin/$(basename $f) - fi - done - - mkdir -p $out/System/Library/LaunchDaemons - install fingerd/finger.plist $out/System/Library/LaunchDaemons - - # from variant_links.sh - # ln -s $out/bin/pkill $out/bin/pgrep - # ln -s $out/share/man/man1/pkill.1 $out/share/man/man1/pgrep.1 - ''; - - nativeBuildInputs = [ xcbuild ]; - buildInputs = [ ncurses libutil msgcat ]; - - meta = { - platforms = lib.platforms.darwin; - maintainers = with lib.maintainers; [ matthewbauer ]; - }; -} diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.build.in b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.build.in new file mode 100644 index 000000000000..3b6159cabe2d --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.build.in @@ -0,0 +1,220 @@ +# Build settings based on the upstream Xcode project. +# See: https://github.com/apple-oss-distributions/adv_cmds/blob/main/adv_cmds.xcodeproj/project.pbxproj + +# Project settings +project('adv_cmds', 'c', 'cpp', version : '@version@') + +sdk_version = get_option('sdk_version') + + +# Dependencies +cc = meson.get_compiler('c') +cxx = meson.get_compiler('cpp') + +dbm = cc.find_library('dbm') +ncurses = dependency('ncurses') + + +# Generators +bison_bin = find_program('bison', required : true) +flex_bin = find_program('flex', required : true) + +bison = generator( + bison_bin, + arguments : ['@INPUT@', '--header=@OUTPUT0@', '--output=@OUTPUT1@'], + output : [ '@BASENAME@.tab.h', '@BASENAME@.tab.c'], +) + +flex = generator( + flex_bin, + arguments : ['--header-file=@OUTPUT0@', '--outfile=@OUTPUT1@', '@INPUT@'], + output : ['@BASENAME@.yy.h', '@BASENAME@.yy.c'], +) + + +# Binaries +executable( + 'cap_mkdb', + dependencies : dbm, + install : true, + sources : ['cap_mkdb/cap_mkdb.c'], +) +install_man('cap_mkdb/cap_mkdb.1') + +executable( + 'colldef', + dependencies : dbm, + include_directories : [ + 'colldef', + 'colldef/locale', + ], + install : true, + sources : [ + bison.process('colldef/parse.y'), + flex.process('colldef/scan.l'), + ], +) +install_man('colldef/colldef.1') + +executable( + 'finger', + dependencies : dbm, + install : true, + sources : [ + 'finger/finger.c', + 'finger/lprint.c', + 'finger/net.c', + 'finger/sprint.c', + 'finger/util.c', + ], +) +install_man( + 'finger/finger.1', + 'finger/finger.conf.5' +) + +executable( + 'gencat', + install : true, + sources : [ + 'gencat/gencat.c', + 'gencat/genlib.c', + ], +) +install_man('gencat/gencat.1') + +executable( + 'genwrap', + include_directories : 'genwrap', + install : true, + sources : [ + 'genwrap/genwrap.c', + bison.process('genwrap/genwrap.y'), + flex.process('genwrap/lex.l'), + ], +) +install_data( + 'genwrap/wrapper-head.c', + 'genwrap/wrapper-tail.c', + install_dir : get_option('datadir') + '/genwrap' +) +install_data( + 'genwrap/sample.make', + 'genwrap/sample.rsync', + install_dir : get_option('datadir') + '/genwrap/examples' +) +install_man('genwrap/genwrap.8') + +executable( + 'last', + install : true, + sources : ['last/last.c'], +) +install_man('last/last.1') + +executable( + 'locale', + install : true, + sources : ['locale/locale.cc'], +) +install_man('locale/locale.1') + +# TODO(@reckenrode) Requires Perl. Needs separate packaging. +custom_target( + 'localedef', + command : [ 'cp', '@INPUT@', '@OUTPUT@' ], + install : true, + install_dir : get_option('bindir'), + install_mode : 'r-xr-xr-x', + input : 'localedef/localedef.pl', + output : 'localedef', +) +install_man('localedef/localedef.1') + +executable( + 'lsvfs', + install : true, + sources : ['lsvfs/lsvfs.c'], +) +install_man('lsvfs/lsvfs.1') + +executable( + 'mklocale', + include_directories : 'mklocale', + install : true, + sources : [ + bison.process('mklocale/yacc.y'), + flex.process('mklocale/lex.l'), + ], +) +install_man('mklocale/mklocale.1') + +executable( + 'pkill', + # Requires undocumented, private sysmon.h. + build_by_default : false, + install : false, + sources : ['pkill/pkill.c'], +) +# install_man('pkill/pkill.1') + +executable( + 'ps', + c_args : [ + # Needed for `persona.h` + '-DPRIVATE', + # From bsd/sys/event_private.h + '-Dkqueue_id_t=uint64_t' + ], + install : true, + sources : [ + 'ps/fmt.c', + 'ps/keyword.c', + 'ps/nlist.c', + 'ps/print.c', + 'ps/ps.c', + 'ps/tasks.c', + ], +) +install_man('ps/ps.1') + +executable( + 'stty', + build_by_default : sdk_version.version_compare('>=11.3'), + install : sdk_version.version_compare('>=11.3'), + sources : [ + 'stty/cchar.c', + 'stty/gfmt.c', + 'stty/key.c', + 'stty/modes.c', + 'stty/print.c', + 'stty/stty.c', + 'stty/util.c', + ], +) +if sdk_version.version_compare('>=11.3') + install_man('stty/stty.1') +endif + +executable( + 'tabs', + dependencies : ncurses, + install : true, + sources : ['tabs/tabs.c'], +) +install_man('tabs/tabs.1') + +executable( + 'tty', + install : true, + sources : ['tty/tty.c'], +) +install_man('tty/tty.1') + +executable( + 'whois', + install : true, + sources : ['whois/whois.c'], +) +install_man('whois/whois.1') + diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.options b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.options new file mode 100644 index 000000000000..8c4ce874c64c --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/meson.options @@ -0,0 +1 @@ +option('sdk_version', type : 'string') diff --git a/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/package.nix b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/package.nix new file mode 100644 index 000000000000..5b190694326d --- /dev/null +++ b/pkgs/os-specific/darwin/apple-source-releases/adv_cmds/package.nix @@ -0,0 +1,105 @@ +{ + lib, + apple-sdk, + apple-sdk_11, + bison, + flex, + mkAppleDerivation, + ncurses, + perl, + pkg-config, + stdenvNoCC, +}: + +let + Libc = apple-sdk_11.sourceRelease "Libc"; + libplatform = apple-sdk_11.sourceRelease "libplatform"; + xnu = apple-sdk_11.sourceRelease "xnu"; + + privateHeaders = stdenvNoCC.mkDerivation { + name = "adv_cmds-deps-private-headers"; + + buildCommand = '' + install -D -m644 -t "$out/include" \ + '${libplatform}/private/_simple.h' \ + '${Libc}/nls/FreeBSD/msgcat.h' + + install -D -m644 -t "$out/include/System/sys" \ + '${xnu}/bsd/sys/persona.h' \ + '${xnu}/bsd/sys/proc.h' + ''; + }; +in +mkAppleDerivation { + releaseName = "adv_cmds"; + + outputs = [ + "out" + "locale" + "ps" + "man" + ]; + + xcodeHash = "sha256-cpoHF++eko3NHGJlKnFONKnGkVRD0zI+bg/XLzWtpN8="; + + postPatch = '' + # Meson generators require using @BASENAME@ in the output. + substituteInPlace mklocale/lex.l \ + --replace-fail y.tab.h yacc.tab.h + substituteInPlace genwrap/lex.l \ + --replace-fail y.tab.h genwrap.tab.h + substituteInPlace colldef/scan.l \ + --replace-fail y.tab.h parse.tab.h + + # Fix paths to point to the store + for file in genwrap.c genwrap.8; do + substituteInPlace genwrap/$file \ + --replace-fail '/usr/local' "$out" + done + + substituteInPlace localedef/localedef.pl \ + --replace-fail '/usr/bin/perl' '${lib.getExe perl}' \ + --replace-fail '/usr/bin' "$out/bin" \ + --replace-fail '/usr/share/locale' "$locale/share/locale" + ''; + + env.NIX_CFLAGS_COMPILE = "-I${privateHeaders}/include"; + + buildInputs = [ + # Use the 11.3 SDK because CMake depends on adv_cmds.ps, so it can’t simply be omitted when using an older SDK. + apple-sdk_11 + ncurses + ]; + + nativeBuildInputs = [ + bison + flex + perl + pkg-config + ]; + + mesonFlags = [ + # Even though adv_cmds is built with a newer SDK, the default SDK is still the deployment target. + # Don’t build packages that use newer APIs unnecessarily. + (lib.mesonOption "sdk_version" (lib.getVersion apple-sdk)) + ]; + + postBuild = '' + # Build the locales TODO + ''; + + postInstall = '' + moveToOutput share/locale "$locale" + moveToOutput bin/ps "$ps" + ln -s "$ps/bin/ps" "$out/bin/ps" + mkdir -p "$locale/share/locale" + ''; + + meta = { + description = "Advanced commands package for Darwin"; + license = [ + lib.licenses.apsl10 + lib.licenses.apsl20 + ]; + }; +} diff --git a/pkgs/os-specific/darwin/apple-source-releases/default.nix b/pkgs/os-specific/darwin/apple-source-releases/default.nix index 192dcd8301a3..ab0313cfb0c3 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/default.nix @@ -253,15 +253,12 @@ let inherit (pkgs.darwin) bootstrapStdenv xcodeProjectCheckHook; }; - # Only used for bootstrapping. It’s convenient because it was the last version to come with a real makefile. - adv_cmds-boot = applePackage "adv_cmds/boot.nix" "osx-10.5.8" "sha256-/OJLNpATyS31W5nWfJgSVO5itp8j55TRwG57/QLT5Fg=" {}; - in developerToolsPackages_11_3_1 // macosPackages_11_0_1 // { # TODO: shorten this list, we should cut down to a minimum set of bootstrap or necessary packages here. - inherit (adv_cmds-boot) ps locale; + inherit (self.adv_cmds) ps locale; architecture = applePackage "architecture" "osx-10.11.6" "sha256-cUKeMx6mOAxBSRHIdfzsrR65Qv86m7+20XvpKqVfwVI=" {}; AvailabilityVersions = applePackage "AvailabilityVersions" "macos-14.4" "sha256-O9/EOsbK5ZXxh6iDSTwGWWrY5GX/viUwdfG3tdvZwcQ=" {}; bsdmake = applePackage "bsdmake" "dev-tools-3.2.6" "sha256-CW8zP5QZMhWTGp+rhrm8oHE/vSLsRlv1VRAGe1OUDmI=" {}; @@ -311,7 +308,7 @@ developerToolsPackages_11_3_1 // macosPackages_11_0_1 // { else macosPackages_11_0_1.xnu; hfs = applePackage "hfs" "osx-10.12.6" "sha256-eGi18HQFJrU5UHoBOE0LqO5gQ0xOf8+OJuAWQljfKE4=" {}; Librpcsvc = applePackage "Librpcsvc" "osx-10.11.6" "sha256-YHbGws901xONzAbo6sB5zSea4Wp0sgYUJ8YgwVfWxnE=" {}; - adv_cmds = applePackage "adv_cmds" "osx-10.11.6" "sha256-Ztp8ALWcviEpthoiY8ttWzGI8OcsLzsULjlqe8GIzw8=" {}; + adv_cmds = callPackage ./adv_cmds/package.nix { }; basic_cmds = applePackage "basic_cmds" "osx-10.11.6" "sha256-BYPPTg4/7x6RPs0WwwQlkNiZxxArV+7EVe6bM+a/I6Q=" {}; developer_cmds = applePackage "developer_cmds" "osx-10.11.6" "sha256-h0wMVlS6QdRvKOVJ74W9ziHYGApjvnk77AIR6ukYBRo=" {}; diskdev_cmds = applePackage "diskdev_cmds" "osx-10.11.6" "sha256-VX+hcZ7JhOA8EhwLloPlM3Yx79RXp9OYHV9Mi10uw3Q=" { diff --git a/pkgs/os-specific/darwin/apple-source-releases/versions.json b/pkgs/os-specific/darwin/apple-source-releases/versions.json index 2c63c0851048..1b5d02c09599 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/versions.json +++ b/pkgs/os-specific/darwin/apple-source-releases/versions.json @@ -1,2 +1,6 @@ { + "adv_cmds": { + "hash": "sha256-Ztp8ALWcviEpthoiY8ttWzGI8OcsLzsULjlqe8GIzw8=", + "version": "163" + } } diff --git a/pkgs/top-level/darwin-packages.nix b/pkgs/top-level/darwin-packages.nix index 5317cab970fc..8c7fa67e5204 100644 --- a/pkgs/top-level/darwin-packages.nix +++ b/pkgs/top-level/darwin-packages.nix @@ -77,6 +77,8 @@ impure-cmds // appleSourcePackages // stubs // { extraBuildInputs = []; }; + inherit (self.adv_cmds) locale ps; + binutils-unwrapped = callPackage ../os-specific/darwin/binutils { inherit (pkgs) cctools; inherit (pkgs.llvmPackages) clang-unwrapped llvm llvm-manpages; From 78076b3c12fa8f8520325d9e5cb4c2734bae03e7 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Mon, 2 Sep 2024 19:27:03 -0400 Subject: [PATCH 0298/1574] darwin.AvailabilityVersions: use mkAppleDerivation --- .../{default.nix => package.nix} | 36 +++++++++++++------ ...t-setting-an-upper-bound-on-versions.patch | 0 .../darwin/apple-source-releases/default.nix | 2 +- .../apple-source-releases/versions.json | 4 +++ 4 files changed, 30 insertions(+), 12 deletions(-) rename pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/{default.nix => package.nix} (77%) rename pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/{ => patches}/0001-Support-setting-an-upper-bound-on-versions.patch (100%) diff --git a/pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/default.nix b/pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/package.nix similarity index 77% rename from pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/default.nix rename to pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/package.nix index c80dd6235e41..d5737ddd19fd 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/package.nix @@ -1,16 +1,26 @@ { lib, - stdenvNoCC, - appleDerivation', - gnused, - python3, + apple-sdk, + buildPackages, + mkAppleDerivation, unifdef, }: -appleDerivation' stdenvNoCC { - nativeBuildInputs = [ unifdef ]; +let + inherit (buildPackages) gnused python3; +in +mkAppleDerivation (finalAttrs: { + releaseName = "AvailabilityVersions"; - patches = [ ./0001-Support-setting-an-upper-bound-on-versions.patch ]; + patches = [ + # Add support for setting an upper bound, which is needed by the `gen-headers` script. + # It avoids having pre-process the DSL to remove unwanted versions. + ./patches/0001-Support-setting-an-upper-bound-on-versions.patch + ]; + + noCC = true; + + nativeBuildInputs = [ unifdef ]; buildPhase = '' runHook preBuild @@ -33,7 +43,7 @@ appleDerivation' stdenvNoCC { cp -r availability.dsl templates "$out/share/availability/" substitute availability "$out/libexec/availability" \ - --replace-fail '/usr/bin/env python3' '${lib.getBin python3}/bin/python3' \ + --replace-fail '/usr/bin/env python3' '${lib.getExe python3}' \ --replace-fail 'f"{os.path.abspath(os.path.dirname(sys.argv[0]))}/' "\"$out/share/availability/" chmod a+x "$out/libexec/availability" @@ -61,7 +71,7 @@ appleDerivation' stdenvNoCC { --preprocess "$out/share/availability/templates/\$header_src" "\$dest/include/\$header" done - # `__ENVIRONMENT_OS_VERSION_MIN_REQUIRED__` is only defined by clang 17+, so define it for older versions. + # __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ is only defined by clang 17+, so define it for older versions. ${lib.getExe gnused} -E '/#ifndef __MAC_OS_X_VERSION_MIN_REQUIRED/{ i#ifndef __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ i#define __ENVIRONMENT_OS_VERSION_MIN_REQUIRED__ __ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ @@ -95,5 +105,9 @@ appleDerivation' stdenvNoCC { runHook postInstall ''; - meta.mainProgram = "gen-headers"; -} + meta = { + description = "Generates Darwin Availability headers"; + mainProgram = "gen-headers"; + platforms = lib.platforms.unix; + }; +}) diff --git a/pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/0001-Support-setting-an-upper-bound-on-versions.patch b/pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/patches/0001-Support-setting-an-upper-bound-on-versions.patch similarity index 100% rename from pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/0001-Support-setting-an-upper-bound-on-versions.patch rename to pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/patches/0001-Support-setting-an-upper-bound-on-versions.patch diff --git a/pkgs/os-specific/darwin/apple-source-releases/default.nix b/pkgs/os-specific/darwin/apple-source-releases/default.nix index ab0313cfb0c3..47e170e0a142 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/default.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/default.nix @@ -260,7 +260,7 @@ developerToolsPackages_11_3_1 // macosPackages_11_0_1 // { inherit (self.adv_cmds) ps locale; architecture = applePackage "architecture" "osx-10.11.6" "sha256-cUKeMx6mOAxBSRHIdfzsrR65Qv86m7+20XvpKqVfwVI=" {}; - AvailabilityVersions = applePackage "AvailabilityVersions" "macos-14.4" "sha256-O9/EOsbK5ZXxh6iDSTwGWWrY5GX/viUwdfG3tdvZwcQ=" {}; + AvailabilityVersions = callPackage ./AvailabilityVersions/package.nix { }; bsdmake = applePackage "bsdmake" "dev-tools-3.2.6" "sha256-CW8zP5QZMhWTGp+rhrm8oHE/vSLsRlv1VRAGe1OUDmI=" {}; CarbonHeaders = applePackage "CarbonHeaders" "osx-10.6.2" "sha256-UNaHvxzYzEBnYYuoMLqWUVprZa6Wqn/3XleoSCco050=" {}; CommonCrypto = applePackage "CommonCrypto" "osx-10.12.6" "sha256-FLgODBrfv+XsGaAjddncYAm/BIJJYw6LcwX/z7ncKFM=" {}; diff --git a/pkgs/os-specific/darwin/apple-source-releases/versions.json b/pkgs/os-specific/darwin/apple-source-releases/versions.json index 1b5d02c09599..1f50c6ad5dd9 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/versions.json +++ b/pkgs/os-specific/darwin/apple-source-releases/versions.json @@ -1,4 +1,8 @@ { + "AvailabilityVersions": { + "hash": "sha256-O9/EOsbK5ZXxh6iDSTwGWWrY5GX/viUwdfG3tdvZwcQ=", + "version": "140.1" + }, "adv_cmds": { "hash": "sha256-Ztp8ALWcviEpthoiY8ttWzGI8OcsLzsULjlqe8GIzw8=", "version": "163" From 129a959fad9f305f3e3019b7a428067a3b4cf18d Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sat, 21 Sep 2024 19:09:51 -0400 Subject: [PATCH 0299/1574] darwin.AvailabilityVersions: also generate _symbol_aliasing.h --- .../AvailabilityVersions/package.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/package.nix b/pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/package.nix index d5737ddd19fd..54b7628a07be 100644 --- a/pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/package.nix +++ b/pkgs/os-specific/darwin/apple-source-releases/AvailabilityVersions/package.nix @@ -8,6 +8,7 @@ let inherit (buildPackages) gnused python3; + xnu = apple-sdk.sourceRelease "xnu"; in mkAppleDerivation (finalAttrs: { releaseName = "AvailabilityVersions"; @@ -47,6 +48,16 @@ mkAppleDerivation (finalAttrs: { --replace-fail 'f"{os.path.abspath(os.path.dirname(sys.argv[0]))}/' "\"$out/share/availability/" chmod a+x "$out/libexec/availability" + substitute ${xnu}/bsd/sys/make_symbol_aliasing.sh "$out/libexec/make_symbol_aliasing.sh" \ + ${ + if lib.versionOlder (lib.getVersion xnu) "6153.11.26" then + ''--replace-fail "\''${SDKROOT}/usr/local/libexec/availability.pl" "$out/libexec/availability" \'' + else + ''--replace-fail "\''${SDKROOT}/\''${DRIVERKITROOT}/usr/local/libexec/availability.pl" "$out/libexec/availability" \'' + } + --replace-fail '--macosx' '--macosx --threshold $SDKROOT' + chmod a+x "$out/libexec/make_symbol_aliasing.sh" + cat <