Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 18 lines 395 B view raw
1{ 2 lib, 3 makeSetupHook, 4 removeReferencesTo, 5}: 6 7makeSetupHook { 8 name = "sanitise-header-paths-hook"; 9 10 substitutions = { 11 removeReferencesTo = lib.getExe removeReferencesTo; 12 }; 13 14 meta = { 15 description = "Setup hook to sanitise header file paths to avoid leaked references through `__FILE__`"; 16 maintainers = [ lib.maintainers.emily ]; 17 }; 18} ./sanitise-header-paths-hook.bash