2016-11-10 22:11:39 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
2018-02-24 12:59:47 +00:00
|
|
|
, libGLU
|
2018-07-17 21:11:16 +01:00
|
|
|
, xlibsWrapper
|
2016-11-10 22:11:39 +00:00
|
|
|
, xorg
|
|
|
|
, xinput_calibrator
|
|
|
|
, doxygen
|
|
|
|
, libpthreadstubs
|
|
|
|
, alsaLib
|
|
|
|
, alsaOss
|
|
|
|
, libao
|
|
|
|
, width ? 30
|
|
|
|
, mute ? false
|
|
|
|
, effects ? false
|
|
|
|
, sensitivity ? 5
|
|
|
|
, reverseY ? false
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "MAR1D";
|
2016-11-10 22:11:39 +00:00
|
|
|
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
|
2018-02-24 12:59:47 +00:00
|
|
|
libGLU
|
2018-07-17 21:11:16 +01:00
|
|
|
xlibsWrapper
|
2016-11-10 22:11:39 +00:00
|
|
|
xinput_calibrator
|
|
|
|
xorg.libXrandr
|
|
|
|
xorg.libXi
|
|
|
|
xorg.xinput
|
2018-03-28 14:24:39 +01:00
|
|
|
xorg.libXxf86vm
|
2016-11-10 22:11:39 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/olynch/fp_mario";
|
2016-11-10 22:11:39 +00:00
|
|
|
license = licenses.agpl3;
|
|
|
|
maintainers = with maintainers; [ taeer ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|