From 7f9ae113d14eeb2011349a373d393e3fca93a3ac Mon Sep 17 00:00:00 2001 From: patryk4815 Date: Sun, 3 Mar 2024 21:05:18 +0100 Subject: [PATCH] nix: cryptography: disable build from source, because rust hash had to be repaired many times, see: eg. https://github.com/pwndbg/pwndbg/pull/2024 (#2052) --- nix/pwndbg.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nix/pwndbg.nix b/nix/pwndbg.nix index a3d56dec2..2bb0b5fbf 100644 --- a/nix/pwndbg.nix +++ b/nix/pwndbg.nix @@ -18,6 +18,12 @@ let overrides = pkgs.poetry2nix.overrides.withDefaults (self: super: { pip = python3.pkgs.pip; # fix infinite loop in nix, look here: https://github.com/nix-community/poetry2nix/issues/1184#issuecomment-1644878841 unicorn = python3.pkgs.unicorn; # fix build for aarch64 (but it will use same version like in nixpkgs) + + # disable build from source, because rust's hash had to be repaired many times, see: PR https://github.com/pwndbg/pwndbg/pull/2024 + cryptography = super.cryptography.override { + preferWheel = true; + }; + pt = super.pt.overridePythonAttrs (old: { buildInputs = (old.buildInputs or [ ]) ++ [ super.poetry-core ]; });