about summary refs log tree commit diff
path: root/pkgs/build-support/auto-patchelf/default.nix
blob: c7a055cb66de3d8d1011626e22e61c3a51094a4d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ stdenv, substituteAll, patchelf, binutils-unwrapped, findutils, file, glibc
, gnugrep, gnused
}:

substituteAll {
  src = ./setup-hook.sh;

  inherit (stdenv) shell;
  file = "${file}/bin/file";
  find = "${findutils}/bin/find";
  grep = "${gnugrep}/bin/grep";
  ldd = "${glibc.bin}/bin/ldd";
  objdump = "${binutils-unwrapped}/bin/objdump";
  patchelf = "${patchelf}/bin/patchelf";
  sed = "${gnused}/bin/sed";
}