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
27 lines
953 B
Nix
27 lines
953 B
Nix
{ lib, stdenv, fetchurl, SDL, SDL_image, SDL_mixer }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gnujump";
|
|
version = "1.0.8";
|
|
src = fetchurl {
|
|
url = "mirror://gnu/gnujump/${pname}-${version}.tar.gz";
|
|
sha256 = "05syy9mzbyqcfnm0hrswlmhwlwx54f0l6zhcaq8c1c0f8dgzxhqk";
|
|
};
|
|
buildInputs = [ SDL SDL_image SDL_mixer ];
|
|
|
|
NIX_LDFLAGS = "-lm";
|
|
|
|
meta = with lib; {
|
|
homepage = "https://jump.gnu.sinusoid.es/index.php?title=Main_Page";
|
|
description = "A clone of the simple yet addictive game Xjump";
|
|
longDescription = ''
|
|
The goal in this game is to jump to the next floor trying not to fall
|
|
down. As you go upper in the Falling Tower the floors will fall faster.
|
|
Try to survive longer get upper than anyone. It might seem too simple but
|
|
once you've tried you'll realize how addictive this is.
|
|
'';
|
|
license = licenses.gpl3;
|
|
maintainers = with maintainers; [ fgaz ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|