From f74785cf8b7a757e82361afd942a74c1f088e322 Mon Sep 17 00:00:00 2001 From: Francisco Javier Honduvilla Coto <javierhonduco@gmail.com> Date: Tue, 7 May 2024 09:11:30 +0100 Subject: [PATCH] build: Disable debuginfod support in readelf It pulls a bunch of code we don't need, such as a web server. Test Plan ========= CI --- flake.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 62c8764..ecac589 100644 --- a/flake.nix +++ b/flake.nix @@ -18,7 +18,7 @@ pkgs = import nixpkgs { inherit system overlays; }; - elfutils-without-zstd = pkgs.elfutils.overrideAttrs (attrs: { + elfutils' = (pkgs.elfutils.override { enableDebuginfod = false; }).overrideAttrs (attrs: { configureFlags = attrs.configureFlags ++ [ "--without-zstd" ]; }); in @@ -44,7 +44,7 @@ # Native deps glibc glibc.static - elfutils-without-zstd + elfutils' zlib.static zlib.dev openssl @@ -63,7 +63,7 @@ ]; LIBCLANG_PATH = lib.makeLibraryPath [ llvmPackages_16.libclang ]; - LD_LIBRARY_PATH = lib.makeLibraryPath [ zlib.static elfutils-without-zstd ]; + LD_LIBRARY_PATH = lib.makeLibraryPath [ zlib.static elfutils' ]; }; } );