mar1d: fix build

This commit is contained in:
wxt 2024-11-11 12:23:16 +08:00
parent c8cacce22f
commit 49fb875eee
No known key found for this signature in database
GPG Key ID: F62181757D8BF693

View File

@ -12,7 +12,7 @@
fetchpatch, fetchpatch,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs:{
pname = "MAR1D"; pname = "MAR1D";
version = "unstable-2023-02-02"; version = "unstable-2023-02-02";
@ -23,6 +23,12 @@ stdenv.mkDerivation rec {
owner = "Radvendii"; owner = "Radvendii";
}; };
env = {
NIXPKGS_CFLAGS_COMPILE = toString [
"-Wno-error=array-parameter"
];
};
nativeBuildInputs = [ nativeBuildInputs = [
meson meson
ninja ninja
@ -45,7 +51,7 @@ stdenv.mkDerivation rec {
}) })
]; ];
meta = with lib; { meta = {
description = "First person Super Mario Bros"; description = "First person Super Mario Bros";
mainProgram = "MAR1D"; mainProgram = "MAR1D";
longDescription = '' longDescription = ''
@ -55,8 +61,8 @@ stdenv.mkDerivation rec {
You must view the world as mario does, as a one dimensional line. You must view the world as mario does, as a one dimensional line.
''; '';
homepage = "https://mar1d.com"; homepage = "https://mar1d.com";
license = licenses.agpl3Only; license = lib.licenses.agpl3Only;
maintainers = with maintainers; [ taeer ]; maintainers = with lib.maintainers; [ taeer ];
platforms = platforms.unix; platforms = lib.platforms.unix;
}; };
} })