From d48d1e7d09614be1d3d384f8e9da3e343cb242e4 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 27 Mar 2024 13:26:55 +0100 Subject: [PATCH] python311Packages.jupyter-server: don't strip favicon on darwin When using LLVM strip on the favicon.ico files in this package, their size gets inflated from 31K to 772M, which results in an unreasonable package size. Related: #299427 --- pkgs/development/python-modules/jupyter-server/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/python-modules/jupyter-server/default.nix b/pkgs/development/python-modules/jupyter-server/default.nix index 6b0160202d87..fbde4773c80e 100644 --- a/pkgs/development/python-modules/jupyter-server/default.nix +++ b/pkgs/development/python-modules/jupyter-server/default.nix @@ -70,6 +70,9 @@ buildPythonPackage rec { overrides ]; + # https://github.com/NixOS/nixpkgs/issues/299427 + stripExclude = lib.optionals stdenv.isDarwin [ "favicon.ico" ]; + nativeCheckInputs = [ ipykernel pytestCheckHook