summary refs log tree commit diff
path: root/pkgs/development/libraries/SDL_image
diff options
context:
space:
mode:
authorTobias Hammerschmidt <tobias.hammerschmidt@gmx.de>2008-02-06 21:17:42 +0000
committerTobias Hammerschmidt <tobias.hammerschmidt@gmx.de>2008-02-06 21:17:42 +0000
commitaa1f102e1cab25ccd9d40ae08ee53db551edd4e3 (patch)
tree080c5b305e47c14ba5b6466855c2aeb1260ac4e4 /pkgs/development/libraries/SDL_image
parentb60e822bfb4b23e161df958104cfd77db34b7734 (diff)
added SDL_net, some minor modifications to SDL_image and SDL_mixer
svn path=/nixpkgs/trunk/; revision=10528
Diffstat (limited to 'pkgs/development/libraries/SDL_image')
-rw-r--r--pkgs/development/libraries/SDL_image/default.nix17
1 files changed, 10 insertions, 7 deletions
diff --git a/pkgs/development/libraries/SDL_image/default.nix b/pkgs/development/libraries/SDL_image/default.nix
index 4dd7d3679b841..d26213ef7cd79 100644
--- a/pkgs/development/libraries/SDL_image/default.nix
+++ b/pkgs/development/libraries/SDL_image/default.nix
@@ -1,11 +1,14 @@
 args: with args;
-stdenv.mkDerivation {
-  name = "SDL_image-1.2.6";
+stdenv.mkDerivation (rec {
+  pname = "SDL_image";
+  version = "1.2.6";
+
+  name = "${pname}-${version}";
 
   src = fetchurl {
-		url = http://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.6.tar.gz;
-		sha256 = "1i3f72dw3i3l6d77dk81gw57sp0629rng9k76qb37brlz7dv3z48";
-	};
+    url = "http://www.libsdl.org/projects/${pname}/release/${name}.tar.gz";
+    sha256 = "1i3f72dw3i3l6d77dk81gw57sp0629rng9k76qb37brlz7dv3z48";
+  };
 
   buildInputs = [SDL libpng libjpeg libtiff libungif libXpm];
 
@@ -13,7 +16,7 @@ stdenv.mkDerivation {
 
   meta = {
     description = "
-	SDL image library.
+      SDL image library.
 ";
   };
-}
+})