diff --git a/pkgs/by-name/fb/fbthrift/package.nix b/pkgs/by-name/fb/fbthrift/package.nix index 1987f574e7f4..244c1d7ab7df 100644 --- a/pkgs/by-name/fb/fbthrift/package.nix +++ b/pkgs/by-name/fb/fbthrift/package.nix @@ -7,7 +7,7 @@ cmake, ninja, - removeReferencesTo, + sanitiseHeaderPathsHook, openssl, gflags, @@ -64,7 +64,7 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ cmake ninja - removeReferencesTo + sanitiseHeaderPathsHook ]; buildInputs = [ @@ -104,18 +104,6 @@ stdenv.mkDerivation (finalAttrs: { (lib.cmakeFeature "CMAKE_SHARED_LINKER_FLAGS" "-Wl,-undefined,dynamic_lookup") ]; - postFixup = '' - # Sanitize header paths to avoid runtime dependencies leaking in - # through `__FILE__`. - ( - shopt -s globstar - for header in "$out/include"/**/*.h; do - sed -i "1i#line 1 \"$header\"" "$header" - remove-references-to -t "$out" "$header" - done - ) - ''; - passthru.updateScript = nix-update-script { }; meta = {