mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 11:53:27 +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" ```
71 lines
1.7 KiB
Nix
71 lines
1.7 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchurl
|
|
, autoconf
|
|
, automake
|
|
, SDL
|
|
, SDL_mixer
|
|
, SDL_image
|
|
, libmikmod
|
|
, tinyxml
|
|
}:
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "tecnoballz";
|
|
version = "0.93.1";
|
|
|
|
src = fetchurl {
|
|
url = "https://linux.tlk.fr/games/TecnoballZ/download/tecnoballz-${finalAttrs.version}.tgz";
|
|
sha256 = "sha256-WRW76e+/eXE/KwuyOjzTPFQnKwNznbIrUrz14fnvgug=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
autoconf
|
|
automake
|
|
];
|
|
|
|
buildInputs = [
|
|
SDL
|
|
SDL_mixer
|
|
SDL_image
|
|
libmikmod
|
|
tinyxml
|
|
];
|
|
|
|
# Newer compilers introduced warnings
|
|
postPatch = ''
|
|
substituteInPlace configure.ac \
|
|
--replace "-Werror" ""
|
|
'';
|
|
|
|
preConfigure = ''
|
|
./bootstrap
|
|
'';
|
|
|
|
installFlags = [
|
|
# Default is $(out)/games
|
|
"gamesdir=$(out)/bin"
|
|
# We set the scoredir to $TMPDIR at install time.
|
|
# Otherwise it will try to write in /var/games at install time
|
|
"scoredir=$(TMPDIR)"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://linux.tlk.fr/games/TecnoballZ/";
|
|
downloadPage = "https://linux.tlk.fr/games/TecnoballZ/download/";
|
|
description = "Brick breaker game with a sophisticated system of weapons and bonuses";
|
|
mainProgram = "tecnoballz";
|
|
longDescription = ''
|
|
A exciting Brick Breaker with 50 levels of game and 11 special levels,
|
|
distributed on the 2 modes of game to give the player a sophisticated
|
|
system of attack weapons with an enormous power of fire that can be build
|
|
by gaining bonuses. Numerous decors, musics and sounds complete this great
|
|
game. This game was ported from the Commodore Amiga.
|
|
'';
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ fgaz ];
|
|
platforms = platforms.all;
|
|
broken = stdenv.hostPlatform.isDarwin;
|
|
};
|
|
})
|