11 stdenv.mkDerivation rec {
13 version = "unstable-2022-05-26";
15 src = fetchFromGitHub {
18 rev = "c5793e5f3f2765fc09c24380d7e92136a0e33d3b";
19 sha256 = "sha256-Z0u83K1GIXd0jUYo5ZyWUH2Zt7Hn8z+yr06DAtAEukw=";
22 nativeBuildInputs = [ autoconf automake makeWrapper pkg-config ];
24 buildInputs = [ SDL2 ]
25 ++ lib.optional stdenv.isDarwin darwin.libobjc;
27 outputs = [ "out" "dev" "man" ];
34 moveToOutput bin/smpeg2-config "$dev"
35 wrapProgram $dev/bin/smpeg2-config \
36 --prefix PATH ":" "${pkg-config}/bin" \
37 --prefix PKG_CONFIG_PATH ":" "${SDL2.dev}/lib/pkgconfig"
40 enableParallelBuilding = true;
43 homepage = "http://icculus.org/smpeg/";
44 description = "SDL2 MPEG Player Library";
45 license = licenses.lgpl2;
46 platforms = platforms.unix;
47 maintainers = with maintainers; [ orivej ];