summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL_gfx/default.nix
diff options
context:
space:
mode:
authorNikolay Amiantov <ab@fmap.me>2016-08-22 06:24:00 +0300
committerNikolay Amiantov <ab@fmap.me>2016-08-22 06:30:00 +0300
commitb47327ebd535468f71bbf6a46366e0bd9357b599 (patch)
tree987e9ce4217b3a72404729c539a6e5f13420a5e2 /pkgs/development/libraries/SDL_gfx/default.nix
parent3e2458a08537e1cd6a5dbcd2ad0cd7fe83be5d34 (diff)
downloadnixpkgs-b47327ebd535468f71bbf6a46366e0bd9357b599.tar
nixpkgs-b47327ebd535468f71bbf6a46366e0bd9357b599.tar.gz
nixpkgs-b47327ebd535468f71bbf6a46366e0bd9357b599.tar.bz2
nixpkgs-b47327ebd535468f71bbf6a46366e0bd9357b599.tar.lz
nixpkgs-b47327ebd535468f71bbf6a46366e0bd9357b599.tar.xz
nixpkgs-b47327ebd535468f71bbf6a46366e0bd9357b599.tar.zst
nixpkgs-b47327ebd535468f71bbf6a46366e0bd9357b599.zip
SDL: cleanup and add patch to discover extensions
Diffstat (limited to 'pkgs/development/libraries/SDL_gfx/default.nix')
-rw-r--r--pkgs/development/libraries/SDL_gfx/default.nix24
1 files changed, 9 insertions, 15 deletions
diff --git a/pkgs/development/libraries/SDL_gfx/default.nix b/pkgs/development/libraries/SDL_gfx/default.nix
index 7bff348b754..ff8c081af93 100644
--- a/pkgs/development/libraries/SDL_gfx/default.nix
+++ b/pkgs/development/libraries/SDL_gfx/default.nix
@@ -1,7 +1,8 @@
-{stdenv, fetchurl, SDL} :
+{ stdenv, fetchurl, SDL }:
 
 stdenv.mkDerivation rec {
-  name = "SDL_gfx-2.0.25";
+  name = "SDL_gfx-${version}";
+  version = "2.0.25";
 
   src = fetchurl {
     url = "http://www.ferzkopp.net/Software/SDL_gfx-2.0/${name}.tar.gz";
@@ -10,16 +11,9 @@ stdenv.mkDerivation rec {
 
   buildInputs = [ SDL ] ;
 
-  configureFlags = "--disable-mmx";
+  configureFlags = [ "--disable-mmx" ];
 
-  postInstall = ''
-    sed -i -e 's,"SDL.h",<SDL/SDL.h>,' \
-      $out/include/SDL/*.h
-    
-    ln -s $out/include/SDL/*.h $out/include/;
-  '';
-
-  meta = {
+  meta = with stdenv.lib; {
     description = "SDL graphics drawing primitives and support functions";
 
     longDescription =
@@ -40,10 +34,10 @@ stdenv.mkDerivation rec {
          code. Its is written in plain C and can be used in C++ code.
        '';
 
-    homepage = https://sourceforge.net/projects/sdlgfx/;
-    license = stdenv.lib.licenses.lgpl2Plus;
+    homepage = "https://sourceforge.net/projects/sdlgfx/";
+    license = licenses.zlib;
 
-    maintainers = [ stdenv.lib.maintainers.bjg ];
-    platforms = stdenv.lib.platforms.unix;
+    maintainers = with maintainers; [ bjg ];
+    platforms = platforms.unix;
   };
 }