diff options
author | Robert Hensing <robert@roberthensing.nl> | 2022-08-13 10:29:10 +0200 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2022-08-13 10:29:10 +0200 |
commit | 4dc28e00570adc4de10acab768c291f68178a6b0 (patch) | |
tree | 8092cf9df427b2479590b8a526ea533e0ad7b219 /pkgs/build-support/setup-hooks/make-binary-wrapper | |
parent | ba895a7da8f86c6f924fc96026d8f1cb1ea2af1e (diff) | |
download | nixpkgs-4dc28e00570adc4de10acab768c291f68178a6b0.tar nixpkgs-4dc28e00570adc4de10acab768c291f68178a6b0.tar.gz nixpkgs-4dc28e00570adc4de10acab768c291f68178a6b0.tar.bz2 nixpkgs-4dc28e00570adc4de10acab768c291f68178a6b0.tar.lz nixpkgs-4dc28e00570adc4de10acab768c291f68178a6b0.tar.xz nixpkgs-4dc28e00570adc4de10acab768c291f68178a6b0.tar.zst nixpkgs-4dc28e00570adc4de10acab768c291f68178a6b0.zip |
setup hooks: substitutions.passthru -> passthru
Diffstat (limited to 'pkgs/build-support/setup-hooks/make-binary-wrapper')
-rw-r--r-- | pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix b/pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix index 9f52a05f61c..c9b03b75cd0 100644 --- a/pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix +++ b/pkgs/build-support/setup-hooks/make-binary-wrapper/default.nix @@ -16,12 +16,14 @@ makeSetupHook { substitutions = { cc = "${cc}/bin/${cc.targetPrefix}cc ${lib.escapeShellArgs (map (s: "-fsanitize=${s}") sanitizers)}"; + }; + passthru = { # Extract the function call used to create a binary wrapper from its embedded docstring - passthru.extractCmd = writeShellScript "extract-binary-wrapper-cmd" '' + extractCmd = writeShellScript "extract-binary-wrapper-cmd" '' strings -dw "$1" | sed -n '/^makeCWrapper/,/^$/ p' ''; - passthru.tests = tests.makeBinaryWrapper; + tests = tests.makeBinaryWrapper; }; } ./make-binary-wrapper.sh |