From 7b329b833ec3f63b0195369e76b86cca1e5e3ad6 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 1 Oct 2023 08:21:27 -0600 Subject: nix: patch binutils to disable instruction support check GNU as --- nix/flake.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'nix/flake.nix') diff --git a/nix/flake.nix b/nix/flake.nix index 99ccbdc..25eac80 100644 --- a/nix/flake.nix +++ b/nix/flake.nix @@ -32,6 +32,21 @@ baseConfig = "taller_defconfig"; }; }; + + # Tomó mucho conseguir esta expresión: horas de leer nixpkgs, prueba y error + crossOverlays = [ + (final: prev: { + stdenv = prev.stdenvAdapters.overrideCC prev.stdenv (prev.stdenv.cc.override { + bintools = prev.stdenv.cc.bintools.override { + bintools = prev.stdenv.cc.bintools.bintools.overrideAttrs (prev: { + patches = prev.patches ++ [ + ./gas-config-tc-arm-disable-instruction-support-check.patch + ]; + }); + }; + }); + }) + ]; }; in { -- cgit v1.2.3