nixpkgs-suyu/pkgs/applications/video/xine-ui/default.nix

67 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
, curl
, libjpeg
, libpng
, lirc
, ncurses
, pkg-config
, readline
, shared-mime-info
, xine-lib
, xorg
}:
stdenv.mkDerivation rec {
pname = "xine-ui";
version = "0.99.12";
2018-09-08 15:28:10 +02:00
src = fetchurl {
url = "mirror://sourceforge/xine/${pname}-${version}.tar.xz";
2019-12-25 01:11:56 +01:00
sha256 = "10zmmss3hm8gjjyra20qhdc0lb1m6sym2nb2w62bmfk8isfw9gsl";
};
2018-09-08 15:28:10 +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
LIRC_CFLAGS="-I${lirc}/include";
LIRC_LIBS="-L ${lirc}/lib -llirc_client";
postInstall = ''
substituteInPlace $out/share/applications/xine.desktop \
--replace "MimeType=;" "MimeType="
'';
meta = with lib; {
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;
};
}