Skip to content

Commit

Permalink
build: Disable debuginfod support in readelf
Browse files Browse the repository at this point in the history
It pulls a bunch of code we don't need, such as a web server.

Test Plan
=========

CI
  • Loading branch information
javierhonduco committed May 7, 2024
1 parent 07677fb commit f74785c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -44,7 +44,7 @@
# Native deps
glibc
glibc.static
elfutils-without-zstd
elfutils'
zlib.static
zlib.dev
openssl
Expand All @@ -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' ];
};
}
);
Expand Down

0 comments on commit f74785c

Please sign in to comment.