2021-04-20 20:45:30 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, SDL2
|
|
|
|
, SDL2_mixer
|
2018-02-24 12:59:47 +00:00
|
|
|
, libGLU
|
2021-04-20 20:45:30 +00:00
|
|
|
, libconfig
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkg-config
|
|
|
|
, fetchFromGitHub
|
2024-06-22 09:27:07 +00:00
|
|
|
, fetchpatch
|
2016-11-10 22:11:39 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "MAR1D";
|
2024-06-22 09:27:07 +00:00
|
|
|
version = "unstable-2023-02-02";
|
2016-11-10 22:11:39 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
2024-06-22 09:27:07 +00:00
|
|
|
hash = "sha256-kZERhwnTpBhjx6MLdf1bYCWMjtTiId/5a69kRt+/6oY=";
|
|
|
|
rev = "fa5dc36e1819a15539ced339ad01672e5a498c5c";
|
2021-04-20 20:45:30 +00:00
|
|
|
repo = "MAR1D";
|
|
|
|
owner = "Radvendii";
|
2016-11-10 22:11:39 +00:00
|
|
|
};
|
|
|
|
|
2021-04-20 20:45:30 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config ];
|
2016-11-10 22:11:39 +00:00
|
|
|
|
2021-04-20 20:45:30 +00:00
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
|
|
|
SDL2_mixer
|
|
|
|
libconfig
|
|
|
|
libGLU
|
|
|
|
];
|
2016-11-10 22:11:39 +00:00
|
|
|
|
2024-06-22 09:27:07 +00:00
|
|
|
patches = [
|
|
|
|
# Fix the build on Darwin.
|
|
|
|
# https://github.com/Radvendii/MAR1D/pull/4
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://github.com/Radvendii/MAR1D/commit/baf3269e90eca69f154a43c4c1ef14677a6300fd.patch";
|
|
|
|
hash = "sha256-ybdLA2sO8e0J7w4roSdMWn72OkttD3y+cJ3ScuGiHCI=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2016-11-10 22:11:39 +00:00
|
|
|
description = "First person Super Mario Bros";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "MAR1D";
|
2016-11-10 22:11:39 +00:00
|
|
|
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.
|
|
|
|
'';
|
2021-04-20 20:45:30 +00:00
|
|
|
homepage = "https://mar1d.com";
|
2024-03-19 12:26:06 +00:00
|
|
|
license = licenses.agpl3Only;
|
2016-11-10 22:11:39 +00:00
|
|
|
maintainers = with maintainers; [ taeer ];
|
2021-04-20 20:45:30 +00:00
|
|
|
platforms = platforms.unix;
|
2016-11-10 22:11:39 +00:00
|
|
|
};
|
|
|
|
}
|