Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 37 lines 725 B view raw
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 SDL, 6 SDL_image, 7 SDL_mixer, 8}: 9 10stdenv.mkDerivation rec { 11 pname = "vectoroids"; 12 version = "1.1.0"; 13 14 src = fetchurl { 15 url = "ftp://ftp.tuxpaint.org/unix/x/vectoroids/src/vectoroids-${version}.tar.gz"; 16 sha256 = "0bkvd4a1v496w0vlvqyi1a6p25ssgpkchxxxi8899sb72wlds54d"; 17 }; 18 19 buildInputs = [ 20 SDL 21 SDL_image 22 SDL_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 (SDL.meta) platforms; 36 }; 37}