1{ lib
2, stdenv
3, fetchurl
4, SDL
5, SDL_image
6, SDL_mixer
7}:
8
9stdenv.mkDerivation rec {
10 pname = "vectoroids";
11 version = "1.1.0";
12
13 src = fetchurl {
14 url = "ftp://ftp.tuxpaint.org/unix/x/vectoroids/src/vectoroids-${version}.tar.gz";
15 sha256 = "0bkvd4a1v496w0vlvqyi1a6p25ssgpkchxxxi8899sb72wlds54d";
16 };
17
18 buildInputs = [
19 SDL
20 SDL_image
21 SDL_mixer
22 ];
23
24 preConfigure = ''
25 sed -i s,/usr/local,$out, Makefile
26 mkdir -p $out/bin
27 '';
28
29 meta = {
30 homepage = "http://www.newbreedsoftware.com/vectoroids/";
31 description = "Clone of the classic arcade game Asteroids by Atari";
32 license = lib.licenses.gpl2Plus;
33 platforms = lib.platforms.linux;
34 };
35}