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
71 lines
1.5 KiB
Nix
71 lines
1.5 KiB
Nix
{ lib, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, libGLU
|
|
, xlibsWrapper
|
|
, xorg
|
|
, xinput_calibrator
|
|
, doxygen
|
|
, libpthreadstubs
|
|
, alsaLib
|
|
, alsaOss
|
|
, libao
|
|
, width ? 30
|
|
, mute ? false
|
|
, effects ? false
|
|
, sensitivity ? 5
|
|
, reverseY ? false
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "MAR1D";
|
|
version = "0.2.0";
|
|
options = "-w${toString width}"
|
|
+ " -s${toString sensitivity}"
|
|
+ (if mute then " -m" else "")
|
|
+ (if effects then " -f" else "")
|
|
+ (if reverseY then " -r" else "");
|
|
|
|
src = fetchFromGitHub {
|
|
sha256 = "152w5dnlxzv60cl24r5cmrj2q5ar0jiimrmxnp87kf4d2dpbnaq7";
|
|
rev = "v${version}";
|
|
repo = "fp_mario";
|
|
owner = "olynch";
|
|
};
|
|
|
|
buildInputs =
|
|
[
|
|
alsaLib
|
|
alsaOss
|
|
cmake
|
|
doxygen
|
|
libao
|
|
libpthreadstubs
|
|
libGLU
|
|
xlibsWrapper
|
|
xinput_calibrator
|
|
xorg.libXrandr
|
|
xorg.libXi
|
|
xorg.xinput
|
|
xorg.libXxf86vm
|
|
];
|
|
|
|
preConfigure = ''
|
|
cd src
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "First person Super Mario Bros";
|
|
longDescription = ''
|
|
The original Super Mario Bros as you've never seen it. Step into Mario's
|
|
shoes in this first person clone of the classic Mario game. True to the
|
|
original, however, the game still takes place in a two dimensional world.
|
|
You must view the world as mario does, as a one dimensional line.
|
|
'';
|
|
homepage = "https://github.com/olynch/fp_mario";
|
|
license = licenses.agpl3;
|
|
maintainers = with maintainers; [ taeer ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|