nixpkgs/pkgs/games/mar1d/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1.4 KiB
Nix
Raw Normal View History

2021-04-20 20:45:30 +00:00
{ stdenv
, lib
, SDL2
, SDL2_mixer
, 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 {
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=";
})
];
meta = with lib; {
2016-11-10 22:11:39 +00:00
description = "First person Super Mario Bros";
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
};
}