nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at netboot-syslinux-multiplatform 76 lines 3.0 kB view raw
1{ fetchurl, fetchpatch, lib, stdenv, pkg-config, gettext, python3, SDL, SDL_image, SDL_gfx, SDL_mixer, libogg, libvorbis, lua5_3, libjpeg, libpng, zlib, libiconv }: 2 3let 4 version = "0.16.1"; 5in stdenv.mkDerivation { 6 pname = "freedroidrpg"; 7 inherit version; 8 9 src = fetchurl { 10 url = "ftp://ftp.osuosl.org/pub/freedroid/freedroidRPG-${lib.versions.majorMinor version}/freedroidRPG-${version}.tar.gz"; 11 sha256 = "0n4kn38ncmcy3lrxmq8fjry6c1z50z4q1zcqfig0j4jb0dsz2va2"; 12 }; 13 14 patches = [ 15 # Pull upstream fix for -fno-common tolchains. 16 (fetchpatch { 17 name = "fno-common.patch"; 18 url = "https://gitlab.com/freedroid/freedroid-src/-/commit/e610d427374226b79da5258d979936459f30c761.patch"; 19 sha256 = "1s7sw4dkc7b6i72j6x47driq6v0k3wss48l9ivd4fw40n3iaxjb1"; 20 }) 21 22 # Do not embed build flags in the binary to reduce closure size. 23 ./drop-build-deps.patch 24 ]; 25 26 nativeBuildInputs = [ pkg-config gettext python3 ]; 27 28 buildInputs = [ 29 SDL SDL_image SDL_gfx SDL_mixer libogg libvorbis lua5_3 libjpeg libpng zlib 30 ] ++ lib.optional stdenv.isDarwin libiconv; 31 32 meta = with lib; { 33 description = "Isometric 3D RPG similar to game Diablo"; 34 35 longDescription = '' 36 <para> 37 FreedroidRPG is an original isometric 3D role playing game 38 taking place in the future, on Earth. It features action and 39 dialogs. 40 </para> 41 <para> 42 The game tells the story of a world destroyed by a conflict between 43 robots and their human masters. Play as Tux in a quest to save the 44 world from the murderous rebel bots who know no mercy. You get to 45 choose which path you wish to follow, and freedom of choice is 46 everywhere in the game. 47 </para> 48 <para> 49 FreedroidRPG features a real time combat system with melee and 50 ranged weapons, fairly similar to the proprietary game Diablo. 51 There is an innovative system of programs that can be run in order 52 to take control of enemy robots, alter their behavior, or improve one's 53 characteristics. You can use over 50 different kinds of items and 54 fight countless enemies on your way to your destiny. An advanced 55 dialog system provides story background and immersive role 56 playing situations. 57 </para> 58 <para> 59 The game is complete, fully playable, and can provide about 60 12 hours of fun. It is still being actively developed, and 61 help is welcome in many areas. People having - or trying to acquire - 62 programming, map editing, or writing skills will find FreedroidRPG 63 to be an exciting, fast-moving project in which they can fully 64 express their creativity. 65 </para> 66 ''; 67 68 homepage = "https://www.freedroid.org/"; 69 70 license = licenses.gpl2Plus; 71 72 maintainers = with maintainers; [ ]; 73 platforms = platforms.unix; 74 hydraPlatforms = platforms.linux; # sdl-config times out on darwin 75 }; 76}