about summary refs log tree commit diff
path: root/nixpkgs/pkgs/games/mar1d/default.nix
blob: b069e3fecc46aebdf00113c0421f07073564698c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{ stdenv
, lib
, SDL2
, SDL2_mixer
, libGLU
, libconfig
, meson
, ninja
, pkg-config
, fetchFromGitHub
}:

stdenv.mkDerivation rec {
  pname = "MAR1D";
  version = "0.3.1";

  src = fetchFromGitHub {
    sha256 = "sha256-c48azBGdnzhEQGUeRJWlNLJhtrYjnpiORuWvowcQK5Y=";
    rev = "v${version}";
    repo = "MAR1D";
    owner = "Radvendii";
  };

  nativeBuildInputs = [ meson ninja pkg-config ];

  buildInputs = [
    SDL2
    SDL2_mixer
    libconfig
    libGLU
  ];

  meta = with lib; {
    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 = licenses.agpl3Only;
    maintainers = with maintainers; [ taeer ];
    platforms = platforms.unix;
  };
}