nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 39 lines 1.0 kB view raw
1{ lib, stdenv, fetchurl, makeDesktopItem, SDL2, SDL2_net }: 2 3stdenv.mkDerivation rec { 4 pname = "maelstrom"; 5 version = "3.0.7"; 6 7 src = fetchurl { 8 url = "http://www.libsdl.org/projects/Maelstrom/src/Maelstrom-${version}.tar.gz"; 9 sha256 = "0dm0m5wd7amrsa8wnrblkv34sq4v4lglc2wfx8klfkdhyhi06s4k"; 10 }; 11 12 # this fixes a typedef compilation error with gcc-3.x 13 patches = [ ./fix-compilation.patch ]; 14 15 buildInputs = [ SDL2 SDL2_net ]; 16 17 postInstall = '' 18 mkdir -p $out/bin 19 ln -s $out/games/Maelstrom/Maelstrom $out/bin/maelstrom 20 ''; 21 22 desktopItems = [ 23 (makeDesktopItem { 24 name = "maelstrom"; 25 exec = "maelstrom"; 26 desktopName = "Maelstrom"; 27 genericName = "Maelstrom"; 28 comment = "An arcade-style game resembling Asteroids"; 29 categories = [ "Game" ]; 30 }) 31 ]; 32 33 meta = with lib; { 34 description = "An arcade-style game resembling Asteroids"; 35 license = licenses.gpl2Plus; 36 platforms = platforms.all; 37 maintainers = with maintainers; [ tmountain ]; 38 }; 39}