git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #115735 from elohmeier/klipper-i686fix

klipper: fixup build on i686

commitea1a79d18175b4bc5d214730c41fd883612f6ee1 authorBernardo Meurer <bernardo@meurer.org> dateWed 10 Mar 2021, 18:15 (6 years ago) parent7ff22cb2b933b6
1 file changed+7−1
pkgs/servers/klipper/default.nix+7−1
pkgs/servers/klipper/default.nix+7−1
@@ -12,9 +12,15 @@ stdenv.mkDerivation rec {
1212 owner = "KevinOConnor";
1313 repo = "klipper";
1414 rev = "ef4d9c3abd30ae8a485020fd9ff2fb4529a143b3";
15− sha256 = "puAkSGL0DD0JUWejPdzr7zKIW2UP2soBBtgm2msUKzA=";
15+ sha256 = "sha256-puAkSGL0DD0JUWejPdzr7zKIW2UP2soBBtgm2msUKzA=";
1616 };
1717
18+ # We have no LTO on i686 since commit 22284b0
19+ postPatch = lib.optional stdenv.isi686 ''
20+ substituteInPlace chelper/__init__.py \
21+ --replace "-flto -fwhole-program " ""
22+ '';
23+
1824 sourceRoot = "source/klippy";
1925
2026 # there is currently an attempt at moving it to Python 3, but it will remain