summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL_net
diff options
context:
space:
mode:
authorPeter Simons <simons@cryp.to>2012-07-02 16:17:44 +0200
committerPeter Simons <simons@cryp.to>2012-07-02 16:53:54 +0200
commita2981c1d246fe8e52e1314aa6c832b8d64c0f0c5 (patch)
tree267e6fb05d72166e055488c0e65b5e85d45da7f4 /pkgs/development/libraries/SDL_net
parent225ee0a26c3ca448d69076725141e7d192db340f (diff)
downloadnixpkgs-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar
nixpkgs-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar.gz
nixpkgs-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar.bz2
nixpkgs-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar.lz
nixpkgs-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar.xz
nixpkgs-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar.zst
nixpkgs-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.zip
SDL_net: fix-up installed headers
Patch submitted by Jan Malakhovski <oxij@oxij.org>.
Diffstat (limited to 'pkgs/development/libraries/SDL_net')
-rw-r--r--pkgs/development/libraries/SDL_net/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/development/libraries/SDL_net/default.nix b/pkgs/development/libraries/SDL_net/default.nix
index 38ac82537f7..54b38110e00 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",<SDL/SDL.h>,' \
+    -e 's,"SDL_endian.h",<SDL/SDL_endian.h>,' \
+    -e 's,"SDL_version.h",<SDL/SDL_version.h>,' \
+    -e 's,"begin_code.h",<SDL/begin_code.h>,' \
+    -e 's,"close_code.h",<SDL/close_code.h>,' \
+      $out/include/SDL/SDL_net.h
+
+    ln -sv $out/include/SDL/SDL_net.h $out/include/
+  '';
 
   meta = {
     description = "SDL networking library";