nixpkgs/pkgs/by-name/sd/SDL_stretch/package.nix
Martin Weinelt 4168b53b73
SDL_stretch: mark broken on darwin
Also disables sdltest on darwin, since it breaks during configure.

And reformats the package, since meta was overindented.
2024-11-07 23:16:24 +01:00

37 lines
871 B
Nix

{
lib,
SDL,
fetchurl,
stdenv,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "SDL_stretch";
version = "0.3.1";
src = fetchurl {
url = "mirror://sourceforge/sdl-stretch/${finalAttrs.version}/SDL_stretch-${finalAttrs.version}.tar.bz2";
hash = "sha256-fL8L+rAMPt1uceGH0qLEgncEh4DiySQIuqt7YjUy/Nc=";
};
nativeBuildInputs = [ SDL ];
configureFlags = [
(lib.enableFeature (!stdenv.hostPlatform.isDarwin) "sdltest")
];
buildInputs = [ SDL ];
strictDeps = true;
meta = {
# 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;
};
})