mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
4a7f99d55d
Part of: https://github.com/NixOS/nixpkgs/issues/108938 meta = with stdenv.lib; is a widely used pattern. We want to slowly remove the `stdenv.lib` indirection and encourage people to use `lib` directly. Thus let’s start with the meta field. This used a rewriting script to mostly automatically replace all occurances of this pattern, and add the `lib` argument to the package header if it doesn’t exist yet. The script in its current form is available at https://cs.tvl.fyi/depot@2f807d7f141068d2d60676a89213eaa5353ca6e0/-/blob/users/Profpatsch/nixpkgs-rewriter/default.nix
38 lines
1.2 KiB
Nix
38 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoconf, automake
|
|
, zlib, curl, gnutls, fribidi, libpng, SDL, SDL_gfx, SDL_image, SDL_mixer
|
|
, SDL_net, SDL_ttf, libunwind, libX11, xorgproto, libxml2, pkgconfig
|
|
, gettext, intltool, libtool, perl
|
|
}:
|
|
|
|
stdenv.mkDerivation {
|
|
pname = "warmux";
|
|
version = "unstable-2017-10-20";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fluxer";
|
|
repo = "warmux";
|
|
rev = "8f81d4fc309a548ae89a068c2dde27b7e7ef8851";
|
|
sha256 = "1hvzglsmp75xiqqb0k75qjz4jwi8kl3fhn8zfsz53hhhqmbw6wkr";
|
|
};
|
|
|
|
preConfigure = "patchShebangs autogen.sh && ./autogen.sh";
|
|
configureFlagsArray = ("CFLAGS=-include ${zlib.dev}/include/zlib.h");
|
|
|
|
nativeBuildInputs = [
|
|
autoconf automake gettext intltool libtool pkgconfig
|
|
];
|
|
buildInputs = [
|
|
zlib curl gnutls fribidi libpng SDL SDL_gfx SDL_image SDL_mixer
|
|
SDL_net SDL_ttf libunwind libX11 xorgproto libxml2 perl
|
|
];
|
|
enableParallelBuilding = true;
|
|
|
|
meta = with lib; {
|
|
description = "Ballistics turn-based battle game between teams - unofficial copy";
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
license = with licenses; [ gpl2 ufl ];
|
|
homepage = "https://github.com/fluxer/warmux";
|
|
};
|
|
}
|