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