From 2b933b6f2d4d5b28c889c1bea0e29f201e3786ad Mon Sep 17 00:00:00 2001 From: Enno Richter Date: Wed, 10 Mar 2021 11:02:33 +0100 Subject: [PATCH] klipper: fixup build on i686 --- pkgs/servers/klipper/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/servers/klipper/default.nix b/pkgs/servers/klipper/default.nix index 23b44be0316..63ad531bbef 100644 --- a/pkgs/servers/klipper/default.nix +++ b/pkgs/servers/klipper/default.nix @@ -12,9 +12,15 @@ stdenv.mkDerivation rec { owner = "KevinOConnor"; repo = "klipper"; rev = "ef4d9c3abd30ae8a485020fd9ff2fb4529a143b3"; - sha256 = "puAkSGL0DD0JUWejPdzr7zKIW2UP2soBBtgm2msUKzA="; + sha256 = "sha256-puAkSGL0DD0JUWejPdzr7zKIW2UP2soBBtgm2msUKzA="; }; + # We have no LTO on i686 since commit 22284b0 + postPatch = lib.optional stdenv.isi686 '' + substituteInPlace chelper/__init__.py \ + --replace "-flto -fwhole-program " "" + ''; + sourceRoot = "source/klippy"; # there is currently an attempt at moving it to Python 3, but it will remain