1 { lib, stdenv, fetchurl, autoreconfHook, pkg-config
2 , libglvnd, SDL, SDL_image, SDL_mixer, xorg
5 stdenv.mkDerivation rec {
7 version = "0.3.20201218";
10 url = "mirror://sourceforge/pinball/pinball-${version}.tar.gz";
11 sha256 = "0vacypp3ksq1hs6hxpypx7nrfkprbl4ksfywcncckwrh4qcir631";
15 sed -i 's/^AUTOMAKE_OPTIONS = gnu$/AUTOMAKE_OPTIONS = foreign/' Makefile.am
18 nativeBuildInputs = [ autoreconfHook pkg-config ];
19 buildInputs = [ libglvnd SDL SDL_image SDL_mixer xorg.libSM ];
23 "--with-sdl-prefix=${lib.getDev SDL}"
26 env.NIX_CFLAGS_COMPILE = toString [
27 "-I${lib.getDev SDL_image}/include/SDL"
28 "-I${lib.getDev SDL_mixer}/include/SDL"
31 enableParallelBuilding = true;
34 homepage = "https://purl.org/rzr/pinball";
35 description = "Emilia Pinball simulator";
36 license = licenses.gpl2Only;
37 maintainers = with maintainers; [ qyliss ];
38 platforms = platforms.linux;