mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 04:31:52 +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
49 lines
1.3 KiB
Nix
49 lines
1.3 KiB
Nix
{ lib, stdenv, fetchFromGitHub, fetchurl, fetchpatch
|
|
, curl, ed, pkgconfig, freetype, zlib, libX11
|
|
, SDL2, SDL2_image, SDL2_mixer
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "redeclipse";
|
|
version = "2.0.0";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/redeclipse/base/releases/download/v${version}/redeclipse_${version}_nix.tar.bz2";
|
|
sha256 = "143i713ggbk607qr4n39pi0pn8d93x9x6fcbh8rc51jb9qhi8p5i";
|
|
};
|
|
|
|
buildInputs = [
|
|
libX11 freetype zlib
|
|
SDL2 SDL2_image SDL2_mixer
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
curl ed pkgconfig
|
|
];
|
|
|
|
makeFlags = [ "-C" "src/" "prefix=$(out)" ];
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
installTargets = [ "system-install" ];
|
|
|
|
postInstall = ''
|
|
cp -R -t $out/share/redeclipse/data/ data/*
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "A first person arena shooter, featuring parkour, impulse boosts, and more";
|
|
longDescription = ''
|
|
Red Eclipse is a fun-filled new take on the first person arena shooter,
|
|
featuring parkour, impulse boosts, and more. The development is geared
|
|
toward balanced gameplay, with a general theme of agility in a variety of
|
|
environments.
|
|
'';
|
|
homepage = "https://www.redeclipse.net";
|
|
license = with licenses; [ licenses.zlib cc-by-sa-30 ];
|
|
maintainers = with maintainers; [ lambda-11235 ];
|
|
platforms = platforms.linux;
|
|
hydraPlatforms = [];
|
|
};
|
|
}
|