diff options
author | Peter Simons <simons@cryp.to> | 2012-07-02 16:17:44 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2012-07-02 16:53:54 +0200 |
commit | a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5 (patch) | |
tree | 267e6fb05d72166e055488c0e65b5e85d45da7f4 /pkgs/development/libraries/SDL_net | |
parent | 225ee0a26c3ca448d69076725141e7d192db340f (diff) | |
download | nixlib-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar nixlib-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar.gz nixlib-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar.bz2 nixlib-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar.lz nixlib-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar.xz nixlib-a2981c1d246fe8e52e1314aa6c832b8d64c0f0c5.tar.zst nixlib-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.nix | 11 |
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 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",<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"; |