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
41 lines
1.3 KiB
Nix
41 lines
1.3 KiB
Nix
{ fetchurl, lib, stdenv, SDL, SDL_image, SDL_mixer, SDL_sound, libsigcxx, physfs
|
|
, boost, expat, freetype, libjpeg, wxGTK, lua, perl, pkgconfig, zlib, zip, bzip2
|
|
, libpng, libtiff, fluidsynth, libmikmod, libvorbis, flac, libogg }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "asc-2.6.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://sourceforge/asc-hq/${name}.tar.bz2";
|
|
sha256 = "1fybasb6srqfg6pqbvh0s0vvzjq9r0n6aq0z44hs7n68kmaam775";
|
|
};
|
|
|
|
configureFlags = [ "--disable-paragui" "--disable-paraguitest" ];
|
|
|
|
NIX_CFLAGS_COMPILE = "-fpermissive"; # I'm too lazy to catch all gcc47-related problems
|
|
hardeningDisable = [ "format" ];
|
|
|
|
buildInputs = [
|
|
SDL SDL_image SDL_mixer SDL_sound libsigcxx physfs boost expat
|
|
freetype libjpeg wxGTK lua perl pkgconfig zlib zip bzip2 libpng
|
|
libtiff fluidsynth libmikmod flac libvorbis libogg
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Turn based strategy game";
|
|
|
|
longDescription = ''
|
|
Advanced Strategic Command is a free, turn based strategy game. It is
|
|
designed in the tradition of the Battle Isle series from Bluebyte and is
|
|
currently available for Windows and Linux.
|
|
'';
|
|
|
|
homepage = "http://www.asc-hq.org/";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|