Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at master 16 lines 389 B view raw
1# shellcheck shell=bash 2 3# This is a horrible hack. You should not use this. 4 5flattenIncludes() { 6 ( 7 cd "${!outputInclude}/include" || exit 8 for file in */*; do 9 target=$(basename "$file") 10 echo "[HACK] Symlinking include $file to flattened path $target..." 11 ln -s "$file" "$target" 12 done 13 ) 14} 15 16preFixupHooks+=(flattenIncludes)