2021-02-05 17:12:51 +00:00
|
|
|
{lib, stdenv, fetchurl, pkg-config, xorg, libpng, xineLib, readline, ncurses, curl
|
2020-04-24 23:36:52 +00:00
|
|
|
, lirc, shared-mime-info, libjpeg }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "xine-ui-0.99.12";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/xine/${name}.tar.xz";
|
|
|
|
sha256 = "10zmmss3hm8gjjyra20qhdc0lb1m6sym2nb2w62bmfk8isfw9gsl";
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config shared-mime-info ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ xineLib libpng readline ncurses curl lirc libjpeg
|
|
|
|
xorg.xlibsWrapper xorg.libXext xorg.libXv xorg.libXxf86vm xorg.libXtst xorg.xorgproto
|
|
|
|
xorg.libXinerama xorg.libXi xorg.libXft
|
|
|
|
];
|
|
|
|
|
|
|
|
patchPhase = ''sed -e '/curl\/types\.h/d' -i src/xitk/download.c'';
|
|
|
|
|
|
|
|
configureFlags = [ "--with-readline=${readline.dev}" ];
|
|
|
|
|
|
|
|
LIRC_CFLAGS="-I${lirc}/include";
|
|
|
|
LIRC_LIBS="-L ${lirc}/lib -llirc_client";
|
|
|
|
#NIX_LDFLAGS = "-lXext -lgcc_s";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "http://www.xine-project.org/";
|
|
|
|
description = "Xlib-based interface to Xine, a video player";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|