Skip to content

Commit

Permalink
mar1d: fix build (#355125)
Browse files Browse the repository at this point in the history
  • Loading branch information
wegank authored Nov 12, 2024
2 parents 0b5517d + 49fb875 commit 218138d
Showing 1 changed file with 29 additions and 18 deletions.
47 changes: 29 additions & 18 deletions pkgs/by-name/ma/mar1d/package.nix
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{ stdenv
, lib
, SDL2
, SDL2_mixer
, libGLU
, libconfig
, meson
, ninja
, pkg-config
, fetchFromGitHub
, fetchpatch
{
stdenv,
lib,
SDL2,
SDL2_mixer,
libGLU,
libconfig,
meson,
ninja,
pkg-config,
fetchFromGitHub,
fetchpatch,
}:

stdenv.mkDerivation rec {
stdenv.mkDerivation (finalAttrs:{
pname = "MAR1D";
version = "unstable-2023-02-02";

Expand All @@ -22,7 +23,17 @@ stdenv.mkDerivation rec {
owner = "Radvendii";
};

nativeBuildInputs = [ meson ninja pkg-config ];
env = {
NIXPKGS_CFLAGS_COMPILE = toString [
"-Wno-error=array-parameter"
];
};

nativeBuildInputs = [
meson
ninja
pkg-config
];

buildInputs = [
SDL2
Expand All @@ -40,7 +51,7 @@ stdenv.mkDerivation rec {
})
];

meta = with lib; {
meta = {
description = "First person Super Mario Bros";
mainProgram = "MAR1D";
longDescription = ''
Expand All @@ -50,8 +61,8 @@ stdenv.mkDerivation rec {
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;
license = lib.licenses.agpl3Only;
maintainers = with lib.maintainers; [ taeer ];
platforms = lib.platforms.unix;
};
}
})

0 comments on commit 218138d

Please sign in to comment.