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

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

80 lines
1.3 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchurl
2022-02-10 01:39:49 +03:00
, fetchpatch
, autoreconfHook
, curl
2023-07-29 19:04:01 +03:00
, libXext
, libXft
, libXi
, libXinerama
, libXtst
, libXv
, libXxf86vm
, libjpeg
, libpng
, lirc
, ncurses
, pkg-config
, readline
, shared-mime-info
, xine-lib
2023-07-29 19:04:01 +03:00
, xorgproto
}:
2023-07-29 19:04:01 +03:00
stdenv.mkDerivation (finalAttrs: {
pname = "xine-ui";
2023-07-29 19:04:01 +03:00
version = "0.99.14";
2018-09-08 16:28:10 +03:00
src = fetchurl {
2023-07-29 19:04:01 +03:00
url = "mirror://sourceforge/xine/xine-ui-${finalAttrs.version}.tar.xz";
hash = "sha256-1NSQ1c7OcOK7mEnJ5ILyz4evAwLUUbYUR2/cw2Qs2cM=";
};
2018-09-08 16:28:10 +03:00
2023-07-29 19:15:30 +03:00
outputs = [ "out" "dev" "lib" "man" ];
nativeBuildInputs = [
2022-02-10 01:39:49 +03:00
autoreconfHook
pkg-config
shared-mime-info
];
2023-07-29 19:04:01 +03:00
buildInputs = [
curl
libXext
libXft
libXi
libXinerama
libXtst
libXv
libXxf86vm
2023-07-29 19:04:01 +03:00
libjpeg
libpng
lirc
ncurses
readline
xine-lib
xorgproto
2023-07-29 19:04:01 +03:00
];
2018-07-26 00:44:21 +03:00
configureFlags = [ "--with-readline=${readline.dev}" ];
2018-09-08 16:28:10 +03:00
2023-07-29 19:04:01 +03: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 19:04:01 +03:00
meta = {
homepage = "https://xine.sourceforge.net/";
description = "Xlib-based frontend for Xine video player";
2023-07-29 19:04:01 +03:00
license = lib.licenses.gpl2Plus;
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.linux;
};
2023-07-29 19:04:01 +03:00
})