nixpkgs/pkgs/by-name/ma/mar1d/package.nix
Silvan Mosberger 4f0dadbf38 treewide: format all inactive Nix files
After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.

Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.

A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.

This commit was automatically created and can be verified using

    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev b32a094368
    result/bin/apply-formatting $NIXPKGS_PATH
2024-12-10 20:26:33 +01:00

69 lines
1.5 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=";
})
];
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;
};
})