diff options
-rw-r--r-- | pkgs/games/airstrike/default.nix | 33 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/games/airstrike/default.nix b/pkgs/games/airstrike/default.nix new file mode 100644 index 000000000000..24f71a5c6a16 --- /dev/null +++ b/pkgs/games/airstrike/default.nix @@ -0,0 +1,33 @@ +{ stdenv, fetchurl, makeWrapper, SDL, SDL_image }: + +stdenv.mkDerivation rec { + name = "airstrike-pre-${version}"; + version = "6a"; + + src = fetchurl { + url = "http://icculus.org/airstrike/airstrike-pre${version}-src.tar.gz"; + sha256 = "1h6rv2zcp84ycmd0kv1pbpqjgwx57dw42x7878d2c2vnpi5jn8qi"; + }; + + buildInputs = [ makeWrapper SDL SDL_image ]; + + installPhase = '' + ls -l + mkdir -p $out/bin + cp airstrike $out/bin + + mkdir -p $out/share + cp -r data airstrikerc $out/share + + wrapProgram $out/bin/airstrike \ + --run "cd $out/share" + ''; + + meta = with stdenv.lib; { + description = "A 2d dogfighting game"; + homepage = https://icculus.org/airstrike/; + license = licenses.gpl2; + maintainers = with maintainers; [ pSub ]; + platforms = platforms.linux; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index f3b22857efbc..9be2b6dda13c 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13647,6 +13647,8 @@ let ### GAMES + airstrike = callPackage ../games/airstrike { }; + alienarena = callPackage ../games/alienarena { }; andyetitmoves = if stdenv.isLinux then callPackage ../games/andyetitmoves {} else null; |