mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +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" ```
34 lines
920 B
Nix
34 lines
920 B
Nix
{ stdenv, lib, fetchurl, SDL2, SDL2_image, SDL2_ttf, SDL2_mixer
|
|
, SDL2_net , SDL2_gfx, zlib, physfs, curl, libxml2, libpng, pkg-config
|
|
, libGL, autoreconfHook }:
|
|
stdenv.mkDerivation rec {
|
|
pname = "manaplus";
|
|
version = "2.1.3.17";
|
|
|
|
src = fetchurl {
|
|
url = "https://download.evolonline.org/manaplus/download/${version}/manaplus-${version}.tar.xz";
|
|
sha256 = "sha256-6NFqxUjEAp7aiIScyTOFh2tT7PfuTCKH1vTgPpTm+j0=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
SDL2 SDL2_image SDL2_ttf SDL2_mixer SDL2_net SDL2_gfx zlib
|
|
physfs curl libxml2 libpng libGL
|
|
];
|
|
|
|
configureFlags = [ "--with-sdl2" "--without-dyecmd" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
meta = {
|
|
maintainers = [ ];
|
|
description = "Free OpenSource 2D MMORPG client";
|
|
homepage = "https://manaplus.org/";
|
|
license = lib.licenses.gpl2Plus;
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
}
|