about summary refs log tree commit diff
path: root/pkgs/build-support/auto-patchelf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/build-support/auto-patchelf/default.nix')
-rw-r--r--pkgs/build-support/auto-patchelf/default.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/build-support/auto-patchelf/default.nix b/pkgs/build-support/auto-patchelf/default.nix
new file mode 100644
index 00000000..c7a055cb
--- /dev/null
+++ b/pkgs/build-support/auto-patchelf/default.nix
@@ -0,0 +1,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";
+}