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