nixpkgs/pkgs/applications/video/xine/ui.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

79 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
2022-02-09 22:39:49 +00:00
, autoreconfHook
, curl
2023-07-29 16:04:01 +00:00
, libXext
, libXft
, libXi
, libXinerama
, libXtst
, libXv
, libXxf86vm
, libjpeg
, libpng
, lirc
, ncurses
, pkg-config
, readline
, shared-mime-info
, xine-lib
2023-07-29 16:04:01 +00:00
, xorgproto
}:
2023-07-29 16:04:01 +00:00
stdenv.mkDerivation (finalAttrs: {
pname = "xine-ui";
2023-07-29 16:04:01 +00:00
version = "0.99.14";
2018-09-08 13:28:10 +00:00
src = fetchurl {
2023-07-29 16:04:01 +00:00
url = "mirror://sourceforge/xine/xine-ui-${finalAttrs.version}.tar.xz";
hash = "sha256-1NSQ1c7OcOK7mEnJ5ILyz4evAwLUUbYUR2/cw2Qs2cM=";
};
2018-09-08 13:28:10 +00:00
2023-07-29 16:15:30 +00:00
outputs = [ "out" "dev" "lib" "man" ];
nativeBuildInputs = [
2022-02-09 22:39:49 +00:00
autoreconfHook
pkg-config
shared-mime-info
];
2023-07-29 16:04:01 +00:00
buildInputs = [
curl
libXext
libXft
libXi
libXinerama
libXtst
libXv
libXxf86vm
2023-07-29 16:04:01 +00:00
libjpeg
libpng
lirc
ncurses
readline
xine-lib
xorgproto
2023-07-29 16:04:01 +00:00
];
2018-07-25 21:44:21 +00:00
configureFlags = [ "--with-readline=${readline.dev}" ];
2018-09-08 13:28:10 +00:00
2023-07-29 16:04:01 +00:00
env = {
LIRC_CFLAGS="-I${lirc}/include";
LIRC_LIBS="-L ${lirc}/lib -llirc_client";
};
postInstall = ''
substituteInPlace $out/share/applications/xine.desktop \
--replace "MimeType=;" "MimeType="
'';
2023-07-29 16:04:01 +00:00
meta = {
homepage = "https://xine.sourceforge.net/";
description = "Xlib-based frontend for Xine video player";
2023-07-29 16:04:01 +00:00
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.linux;
};
2023-07-29 16:04:01 +00:00
})