summary refs log tree commit diff
path: root/pkgs/games/gl-117
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2015-07-14 11:29:02 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2015-11-24 14:45:15 +0100
commitbfbb866d41a9c81eb624b3c1ac572a920e4abb60 (patch)
treebc67afabd03d57ee190be365afcbcec3177c3318 /pkgs/games/gl-117
parent33d825aaea825f7fb818a7ac097e3a9c5168ba61 (diff)
downloadnixpkgs-bfbb866d41a9c81eb624b3c1ac572a920e4abb60.tar
nixpkgs-bfbb866d41a9c81eb624b3c1ac572a920e4abb60.tar.gz
nixpkgs-bfbb866d41a9c81eb624b3c1ac572a920e4abb60.tar.bz2
nixpkgs-bfbb866d41a9c81eb624b3c1ac572a920e4abb60.tar.lz
nixpkgs-bfbb866d41a9c81eb624b3c1ac572a920e4abb60.tar.xz
nixpkgs-bfbb866d41a9c81eb624b3c1ac572a920e4abb60.tar.zst
nixpkgs-bfbb866d41a9c81eb624b3c1ac572a920e4abb60.zip
gl117: reimplement using mkDerivation
Diffstat (limited to 'pkgs/games/gl-117')
-rw-r--r--pkgs/games/gl-117/default.nix45
1 files changed, 14 insertions, 31 deletions
diff --git a/pkgs/games/gl-117/default.nix b/pkgs/games/gl-117/default.nix
index e37f474b597..49f61a2f2bc 100644
--- a/pkgs/games/gl-117/default.nix
+++ b/pkgs/games/gl-117/default.nix
@@ -1,41 +1,24 @@
-x@{builderDefsPackage
-  , mesa, SDL, freeglut, SDL_mixer, autoconf, automake, libtool
-  , ...}:
-builderDefsPackage
-(a :  
-let 
-  helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++ 
-    [];
+{ stdenv, fetchurl
+, mesa, SDL, freeglut, SDL_mixer, autoconf, automake, libtool
+}:
 
-  buildInputs = map (n: builtins.getAttr n x)
-    (builtins.attrNames (builtins.removeAttrs x helperArgNames));
-  sourceInfo = rec {
-    version = "1.3.2";
-    name = "gl-117-1.3.2";
-    url = "mirror://sourceforge/project/gl-117/gl-117/GL-117%20Source/gl-117-1.3.2-src.tar.bz2";
-    hash = "1yvg1rp1yijv0b45cz085b29x5x0g5fkm654xdv5qwh2l6803gb4";
-  };
-in
-rec {
-  src = a.fetchurl {
-    url = sourceInfo.url;
-    sha256 = sourceInfo.hash;
+stdenv.mkDerivation rec {
+  name = "gl-117-${version}";
+  version = "1.3.2";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/project/gl-117/gl-117/GL-117%20Source/${name}.tar.bz2";
+    sha256 = "1yvg1rp1yijv0b45cz085b29x5x0g5fkm654xdv5qwh2l6803gb4";
   };
 
-  inherit (sourceInfo) name version;
-  inherit buildInputs;
+  buildInputs = [ mesa SDL freeglut SDL_mixer autoconf automake libtool ];
 
-  /* doConfigure should be removed if not needed */
-  phaseNames = ["doConfigure" "doMakeInstall"];
-      
   meta = {
     description = "An air combat simulator";
-    maintainers = with a.lib.maintainers;
+    maintainers = with stdenv.lib.maintainers;
     [
       raskin
     ];
-    platforms = with a.lib.platforms;
-      linux;
+    platforms = stdenv.lib.platforms.linux;
   };
-}) x
-
+}