mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
e0464e4788
In preparation for the deprecation of `stdenv.isX`. These shorthands are not conducive to cross-compilation because they hide the platforms. Darwin might get cross-compilation for which the continued usage of `stdenv.isDarwin` will get in the way One example of why this is bad and especially affects compiler packages https://www.github.com/NixOS/nixpkgs/pull/343059 There are too many files to go through manually but a treewide should get users thinking when they see a `hostPlatform.isX` in a place where it doesn't make sense. ``` fd --type f "\.nix" | xargs sd --fixed-strings "stdenv.is" "stdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenv'.is" "stdenv'.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "clangStdenv.is" "clangStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "gccStdenv.is" "gccStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "stdenvNoCC.is" "stdenvNoCC.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "inherit (stdenv) is" "inherit (stdenv.hostPlatform) is" fd --type f "\.nix" | xargs sd --fixed-strings "buildStdenv.is" "buildStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "effectiveStdenv.is" "effectiveStdenv.hostPlatform.is" fd --type f "\.nix" | xargs sd --fixed-strings "originalStdenv.is" "originalStdenv.hostPlatform.is" ```
73 lines
2.7 KiB
Nix
73 lines
2.7 KiB
Nix
{ fetchurl, lib, stdenv, pkg-config, gettext, glew, python3, SDL, SDL_image, SDL_gfx, SDL_mixer, libogg, libvorbis, lua5_3, libjpeg, libpng, zlib, libiconv }:
|
|
|
|
let
|
|
version = "1.0";
|
|
in stdenv.mkDerivation {
|
|
pname = "freedroidrpg";
|
|
inherit version;
|
|
|
|
src = fetchurl {
|
|
url = "ftp://ftp.osuosl.org/pub/freedroid/freedroidRPG-${lib.versions.majorMinor version}/freedroidRPG-${version}.tar.gz";
|
|
hash = "sha256-eZW3C1lCSOoU0bTvWVOXpgGDAxyZFjsBwainDM7zu88=";
|
|
};
|
|
|
|
patches = [
|
|
# Do not embed build flags in the binary to reduce closure size.
|
|
./drop-build-deps.patch
|
|
];
|
|
|
|
nativeBuildInputs = [ pkg-config gettext python3 ];
|
|
|
|
buildInputs = [
|
|
glew SDL SDL_image SDL_gfx SDL_mixer libogg libvorbis lua5_3 libjpeg libpng zlib
|
|
] ++ lib.optional stdenv.hostPlatform.isDarwin libiconv;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Isometric 3D RPG similar to game Diablo";
|
|
mainProgram = "freedroidRPG";
|
|
|
|
longDescription = ''
|
|
<para>
|
|
FreedroidRPG is an original isometric 3D role playing game
|
|
taking place in the future, on Earth. It features action and
|
|
dialogs.
|
|
</para>
|
|
<para>
|
|
The game tells the story of a world destroyed by a conflict between
|
|
robots and their human masters. Play as Tux in a quest to save the
|
|
world from the murderous rebel bots who know no mercy. You get to
|
|
choose which path you wish to follow, and freedom of choice is
|
|
everywhere in the game.
|
|
</para>
|
|
<para>
|
|
FreedroidRPG features a real time combat system with melee and
|
|
ranged weapons, fairly similar to the proprietary game Diablo.
|
|
There is an innovative system of programs that can be run in order
|
|
to take control of enemy robots, alter their behavior, or improve one's
|
|
characteristics. You can use over 50 different kinds of items and
|
|
fight countless enemies on your way to your destiny. An advanced
|
|
dialog system provides story background and immersive role
|
|
playing situations.
|
|
</para>
|
|
<para>
|
|
The game is complete, fully playable, and can provide about
|
|
12 hours of fun. It is still being actively developed, and
|
|
help is welcome in many areas. People having - or trying to acquire -
|
|
programming, map editing, or writing skills will find FreedroidRPG
|
|
to be an exciting, fast-moving project in which they can fully
|
|
express their creativity.
|
|
</para>
|
|
'';
|
|
|
|
homepage = "https://www.freedroid.org/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ ];
|
|
platforms = platforms.unix;
|
|
hydraPlatforms = platforms.linux; # sdl-config times out on darwin
|
|
};
|
|
}
|