summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL_gfx/default.nix
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-28 16:08:17 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2011-03-28 16:08:17 +0000
commit97182f0bcbe0ebbecf1d320f1f079228273fd1e8 (patch)
tree477595c02f7b4cc9c21c27c5e4eaa9f51a4ee1b6 /pkgs/development/libraries/SDL_gfx/default.nix
parent83b3ab465700c1a1651ea2af42ccb599d1da5876 (diff)
downloadnixpkgs-97182f0bcbe0ebbecf1d320f1f079228273fd1e8.tar
nixpkgs-97182f0bcbe0ebbecf1d320f1f079228273fd1e8.tar.gz
nixpkgs-97182f0bcbe0ebbecf1d320f1f079228273fd1e8.tar.bz2
nixpkgs-97182f0bcbe0ebbecf1d320f1f079228273fd1e8.tar.lz
nixpkgs-97182f0bcbe0ebbecf1d320f1f079228273fd1e8.tar.xz
nixpkgs-97182f0bcbe0ebbecf1d320f1f079228273fd1e8.tar.zst
nixpkgs-97182f0bcbe0ebbecf1d320f1f079228273fd1e8.zip
Making SDL_gfx and SDL_image find the SDL headers, by a postInstall patch.
They expected to sit in the same directory as the SDL headers.

svn path=/nixpkgs/trunk/; revision=26574
Diffstat (limited to 'pkgs/development/libraries/SDL_gfx/default.nix')
-rw-r--r--pkgs/development/libraries/SDL_gfx/default.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/pkgs/development/libraries/SDL_gfx/default.nix b/pkgs/development/libraries/SDL_gfx/default.nix
index aabbd8f8941..1090a99915f 100644
--- a/pkgs/development/libraries/SDL_gfx/default.nix
+++ b/pkgs/development/libraries/SDL_gfx/default.nix
@@ -12,7 +12,12 @@ stdenv.mkDerivation rec {
 
   configureFlags = "--disable-mmx";
 
-  postInstall = "ln -s $out/include/SDL/*.h $out/include/";
+  postInstall = ''
+    sed -i -e 's,"SDL.h",<SDL/SDL.h>,' \
+      $out/include/SDL/*.h
+    
+    ln -s $out/include/SDL/*.h $out/include/;
+  '';
 
   meta = {
     description = "SDL graphics drawing primitives and support functions";