Files
nixpkgs/pkgs/by-name/ma/mar1d/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

71 lines
1.6 KiB
Nix

{
stdenv,
lib,
SDL2,
SDL2_mixer,
libGLU,
libconfig,
meson,
ninja,
pkg-config,
fetchFromGitHub,
fetchpatch,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "MAR1D";
version = "unstable-2023-02-02";
src = fetchFromGitHub {
hash = "sha256-kZERhwnTpBhjx6MLdf1bYCWMjtTiId/5a69kRt+/6oY=";
rev = "fa5dc36e1819a15539ced339ad01672e5a498c5c";
repo = "MAR1D";
owner = "Radvendii";
};
env = {
NIXPKGS_CFLAGS_COMPILE = toString [
"-Wno-error=array-parameter"
];
};
nativeBuildInputs = [
meson
ninja
pkg-config
];
buildInputs = [
SDL2
SDL2_mixer
libconfig
libGLU
];
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=";
})
# https://github.com/Radvendii/MAR1D/pull/5
./fix-aarch64.patch
];
meta = {
description = "First person Super Mario Bros";
mainProgram = "MAR1D";
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://mar1d.com";
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ taeer ];
platforms = lib.platforms.unix;
};
})