8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
16 lines
583 B
Bash
16 lines
583 B
Bash
# On cygwin, automatic runtime dependency detection does not work
|
|
# because the binaries do not contain absolute references to store
|
|
# locations (yet)
|
|
postFixupHooks+=(_cygwinAllBuildInputsAsRuntimeDep)
|
|
|
|
_cygwinAllBuildInputsAsRuntimeDep() {
|
|
if [ -n "$buildInputs" ]; then
|
|
mkdir -p "$out/nix-support"
|
|
echo "$buildInputs" >> "$out/nix-support/cygwin-buildinputs-as-runtime-deps"
|
|
fi
|
|
|
|
if [ -n "$nativeBuildInputs" ]; then
|
|
mkdir -p "$out/nix-support"
|
|
echo "$nativeBuildInputs" >> "$out/nix-support/cygwin-buildinputs-as-runtime-deps"
|
|
fi
|
|
}
|