diff options
author | Samuel Ainsworth <skainsworth@gmail.com> | 2022-04-12 08:58:00 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 08:58:00 -0700 |
commit | 263292cb5ecc62967c84488ff55726c0ca33e67b (patch) | |
tree | 4217bcc8f624d703cf7be8515256d04142e0f6b0 /doc | |
parent | 1aba4dff6107fb3657e649b896e1d063b137d1fa (diff) | |
parent | 3a84954a8983e6bb23d9ce2710df3fe393dd89d7 (diff) | |
download | nixpkgs-263292cb5ecc62967c84488ff55726c0ca33e67b.tar nixpkgs-263292cb5ecc62967c84488ff55726c0ca33e67b.tar.gz nixpkgs-263292cb5ecc62967c84488ff55726c0ca33e67b.tar.bz2 nixpkgs-263292cb5ecc62967c84488ff55726c0ca33e67b.tar.lz nixpkgs-263292cb5ecc62967c84488ff55726c0ca33e67b.tar.xz nixpkgs-263292cb5ecc62967c84488ff55726c0ca33e67b.tar.zst nixpkgs-263292cb5ecc62967c84488ff55726c0ca33e67b.zip |
Merge pull request #167397 from samuela/samuela/autopatchelf
autoPatchelfHook: more precise dependency ignorance
Diffstat (limited to 'doc')
-rw-r--r-- | doc/stdenv/stdenv.chapter.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/stdenv/stdenv.chapter.md b/doc/stdenv/stdenv.chapter.md index 7019ae89db7..40f295b178b 100644 --- a/doc/stdenv/stdenv.chapter.md +++ b/doc/stdenv/stdenv.chapter.md @@ -1043,7 +1043,7 @@ You can also specify a `runtimeDependencies` variable which lists dependencies t In certain situations you may want to run the main command (`autoPatchelf`) of the setup hook on a file or a set of directories instead of unconditionally patching all outputs. This can be done by setting the `dontAutoPatchelf` environment variable to a non-empty value. -By default `autoPatchelf` will fail as soon as any ELF file requires a dependency which cannot be resolved via the given build inputs. In some situations you might prefer to just leave missing dependencies unpatched and continue to patch the rest. This can be achieved by setting the `autoPatchelfIgnoreMissingDeps` environment variable to a non-empty value. +By default `autoPatchelf` will fail as soon as any ELF file requires a dependency which cannot be resolved via the given build inputs. In some situations you might prefer to just leave missing dependencies unpatched and continue to patch the rest. This can be achieved by setting the `autoPatchelfIgnoreMissingDeps` environment variable to a non-empty value. `autoPatchelfIgnoreMissingDeps` can be set to a list like `autoPatchelfIgnoreMissingDeps = [ "libcuda.so.1" "libcudart.so.1" ];` or to simply `[ "*" ]` to ignore all missing dependencies. The `autoPatchelf` command also recognizes a `--no-recurse` command line flag, which prevents it from recursing into subdirectories. |