From 8cb55de7dc8b2c618685fa4aef193f26ffc11201 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 7 Jan 2021 00:20:39 +0100 Subject: [PATCH] home-assistant: don't strip Neither the home-assistant nor the frontend contain strippable binaries, but the stripping process will still iterate over 6600+ files and notice that they're not in a strippable format. On my 6C/12T desktop CPU this takes slightly over two minutes. --- pkgs/servers/home-assistant/default.nix | 3 +++ pkgs/servers/home-assistant/frontend.nix | 3 +++ 2 files changed, 6 insertions(+) diff --git a/pkgs/servers/home-assistant/default.nix b/pkgs/servers/home-assistant/default.nix index e5beb65b350..4f9698c536f 100644 --- a/pkgs/servers/home-assistant/default.nix +++ b/pkgs/servers/home-assistant/default.nix @@ -71,6 +71,9 @@ in with py.pkgs; buildPythonApplication rec { # check REQUIRED_PYTHON_VER in homeassistant/const.py disabled = pythonOlder "3.7.1"; + # don't try and fail to strip 6600+ python files, it takes minutes! + dontStrip = true; + inherit availableComponents; # PyPI tarball is missing tests/ directory diff --git a/pkgs/servers/home-assistant/frontend.nix b/pkgs/servers/home-assistant/frontend.nix index d8df190558a..9606f8645a1 100644 --- a/pkgs/servers/home-assistant/frontend.nix +++ b/pkgs/servers/home-assistant/frontend.nix @@ -11,6 +11,9 @@ buildPythonPackage rec { sha256 = "sha256-3JMWugAiVDq/NBgX8ft2Bchim2g493jy7wZvvXrX+Ws="; }; + # there is nothing to strip in this package + dontStrip = true; + # no Python tests implemented doCheck = false;