2021-04-27 15:23:49 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, curl
|
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, lirc
|
|
|
|
, ncurses
|
|
|
|
, pkg-config
|
|
|
|
, readline
|
|
|
|
, shared-mime-info
|
|
|
|
, xine-lib
|
|
|
|
, xorg
|
|
|
|
}:
|
2009-04-09 16:27:48 +01:00
|
|
|
|
2012-01-09 10:25:56 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2021-04-27 15:23:49 +01:00
|
|
|
pname = "xine-ui";
|
|
|
|
version = "0.99.12";
|
2018-09-08 14:28:10 +01:00
|
|
|
|
2004-12-10 23:16:23 +00:00
|
|
|
src = fetchurl {
|
2021-04-27 15:23:49 +01:00
|
|
|
url = "mirror://sourceforge/xine/${pname}-${version}.tar.xz";
|
2019-12-25 00:11:56 +00:00
|
|
|
sha256 = "10zmmss3hm8gjjyra20qhdc0lb1m6sym2nb2w62bmfk8isfw9gsl";
|
2004-12-10 23:16:23 +00:00
|
|
|
};
|
2018-09-08 14:28:10 +01:00
|
|
|
|
2021-04-27 15:23:49 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
pkg-config
|
|
|
|
shared-mime-info
|
|
|
|
];
|
|
|
|
buildInputs = [
|
|
|
|
curl
|
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
lirc
|
|
|
|
ncurses
|
|
|
|
readline
|
|
|
|
xine-lib
|
|
|
|
] ++ (with xorg; [
|
|
|
|
libXext
|
|
|
|
libXft
|
|
|
|
libXi
|
|
|
|
libXinerama
|
|
|
|
libXtst
|
|
|
|
libXv
|
|
|
|
libXxf86vm
|
|
|
|
xlibsWrapper
|
|
|
|
xorgproto
|
|
|
|
]);
|
|
|
|
|
2018-07-25 22:44:21 +01:00
|
|
|
configureFlags = [ "--with-readline=${readline.dev}" ];
|
2018-09-08 14:28:10 +01:00
|
|
|
|
2012-01-09 10:25:56 +00:00
|
|
|
LIRC_CFLAGS="-I${lirc}/include";
|
|
|
|
LIRC_LIBS="-L ${lirc}/lib -llirc_client";
|
2006-10-12 11:53:16 +01:00
|
|
|
|
2021-09-08 21:12:48 +01:00
|
|
|
postInstall = ''
|
|
|
|
substituteInPlace $out/share/applications/xine.desktop \
|
|
|
|
--replace "MimeType=;" "MimeType="
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-04-27 15:23:49 +01:00
|
|
|
homepage = "http://xinehq.de/";
|
|
|
|
description = "Xlib-based frontend for Xine video player";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2018-09-08 14:28:10 +01:00
|
|
|
platforms = platforms.linux;
|
2006-10-12 11:53:16 +01:00
|
|
|
};
|
2004-12-10 23:16:23 +00:00
|
|
|
}
|