about summary refs log tree commit diff
path: root/pkgs/build-support/auto-patchelf/default.nix
blob: dfd8e64b620b8982109c389023cf7418cac33628 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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";
  ldd = "${glibc.bin}/bin/ldd";
  objdump = "${binutils-unwrapped}/bin/objdump";
  patchelf = "${patchelf}/bin/patchelf";
  sed = "${gnused}/bin/sed";
}