Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mbuffer: add gcc to LD_LIBRARY_PATH #213464

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions pkgs/tools/misc/mbuffer/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
, stdenv
, fetchurl
, openssl
, makeWrapper
, which
, gcc-unwrapped
}:

stdenv.mkDerivation rec {
Expand All @@ -18,9 +20,16 @@ stdenv.mkDerivation rec {
openssl
];
nativeBuildInputs = [
makeWrapper
which
];

postFixup = ''
# Fix missing libgcc_s.so.1 (needed for cross-compiled binaries).
wrapProgram "$out/bin/mbuffer" \
--prefix LD_LIBRARY_PATH ":" "${lib.makeLibraryPath [ gcc-unwrapped ]}"
'';

doCheck = true;

meta = with lib; {
Expand Down