diff options
author | Pascal Wittmann <mail@pascal-wittmann.de> | 2015-09-08 17:27:37 +0200 |
---|---|---|
committer | Pascal Wittmann <mail@pascal-wittmann.de> | 2015-09-08 17:28:00 +0200 |
commit | f0fc9943696c332b78673b00e833544528b16aca (patch) | |
tree | ed1e7929c795e3b3ac4e71afbc71264c4bbac082 /pkgs/games/airstrike | |
parent | 57c33c1c54dba43c52b0e2d488dd4a77b3a896e2 (diff) |
airstrike: init at pre-6a
Diffstat (limited to 'pkgs/games/airstrike')
-rw-r--r-- | pkgs/games/airstrike/default.nix | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkgs/games/airstrike/default.nix b/pkgs/games/airstrike/default.nix new file mode 100644 index 0000000000000..24f71a5c6a16e --- /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; + }; +} |