From 4168b53b734dc72d697dc484d65e6e8ff3a9884a Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Thu, 7 Nov 2024 23:16:24 +0100 Subject: [PATCH] SDL_stretch: mark broken on darwin Also disables sdltest on darwin, since it breaks during configure. And reformats the package, since meta was overindented. --- pkgs/by-name/sd/SDL_stretch/package.nix | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/pkgs/by-name/sd/SDL_stretch/package.nix b/pkgs/by-name/sd/SDL_stretch/package.nix index f7267b86fd6d..70a79f63515f 100644 --- a/pkgs/by-name/sd/SDL_stretch/package.nix +++ b/pkgs/by-name/sd/SDL_stretch/package.nix @@ -16,16 +16,21 @@ stdenv.mkDerivation (finalAttrs: { nativeBuildInputs = [ SDL ]; + configureFlags = [ + (lib.enableFeature (!stdenv.hostPlatform.isDarwin) "sdltest") + ]; + buildInputs = [ SDL ]; strictDeps = true; meta = { - homepage = "https://sdl-stretch.sourceforge.net/"; - description = "Stretch Functions For SDL"; - license = lib.licenses.lgpl2; - maintainers = lib.teams.sdl.members - ++ (with lib.maintainers; [ ]); - inherit (SDL.meta) platforms; + # sdlstretchcode.c:38:10: fatal error: 'malloc.h' file not found + broken = stdenv.hostPlatform.isDarwin; + homepage = "https://sdl-stretch.sourceforge.net/"; + description = "Stretch Functions For SDL"; + license = lib.licenses.lgpl2; + maintainers = lib.teams.sdl.members ++ (with lib.maintainers; [ ]); + inherit (SDL.meta) platforms; }; })