From a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5 Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Mon, 2 Jul 2012 16:17:44 +0200 Subject: [PATCH] SDL_net: fix-up installed headers Patch submitted by Jan Malakhovski . --- pkgs/development/libraries/SDL_net/default.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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";