Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 10 lines 328 B view raw
1sanitiseHeaderPaths() { 2 local header 3 while IFS= read -r -d '' header; do 4 nixLog "sanitising header path in $header" 5 sed -i "1i#line 1 \"$header\"" "$header" 6 @removeReferencesTo@ -t "${!outputInclude}" "$header" 7 done < <(find "${!outputInclude}/include" -type f -print0) 8} 9 10preFixupHooks+=(sanitiseHeaderPaths)