Skip to content

Commit

Permalink
Merge pull request NixOS#115735 from elohmeier/klipper-i686fix
Browse files Browse the repository at this point in the history
klipper: fixup build on i686
  • Loading branch information
lovesegfault authored Mar 10, 2021
2 parents 7ff22cb + 2b933b6 commit ea1a79d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkgs/servers/klipper/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea1a79d

Please sign in to comment.