diff --git a/pkgs/development/libraries/SDL_net/default.nix b/pkgs/development/libraries/SDL_net/default.nix index 38ac82537f75..54b38110e00d 100644 --- a/pkgs/development/libraries/SDL_net/default.nix +++ b/pkgs/development/libraries/SDL_net/default.nix @@ -13,7 +13,16 @@ stdenv.mkDerivation rec { propagatedBuildInputs = [SDL]; - postInstall = "ln -s $out/include/SDL/SDL_net.h $out/include/"; + postInstall = '' + sed -i -e 's,"SDL.h",,' \ + -e 's,"SDL_endian.h",,' \ + -e 's,"SDL_version.h",,' \ + -e 's,"begin_code.h",,' \ + -e 's,"close_code.h",,' \ + $out/include/SDL/SDL_net.h + + ln -sv $out/include/SDL/SDL_net.h $out/include/ + ''; meta = { description = "SDL networking library";