nixpkgs/pkgs/by-name/xi/xine-lib/package.nix
2024-09-10 11:52:32 -03:00

104 lines
1.5 KiB
Nix

{
lib,
aalib,
alsa-lib,
autoreconfHook,
fetchhg,
ffmpeg,
flac,
libGL,
libGLU,
libX11,
libXext,
libXinerama,
libXv,
libcaca,
libcdio,
libmng,
libmpcdec,
libpulseaudio,
libtheora,
libv4l,
libvorbis,
libxcb,
ncurses,
perl,
pkg-config,
speex,
stdenv,
vcdimager,
zlib,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "xine-lib";
version = "1.2.13-unstable-2024-06-29";
src = fetchhg {
url = "http://hg.code.sf.net/p/xine/xine-lib-1.2";
rev = "53845e2f6b1f3b69328de5c030c0ab27eb8f043d";
hash = "sha256-O5lIYmNC2TpoY4QbPMsDWxNOoxdw61967Q4QG9d/+Bg=";
};
outputs = [
"out"
"dev"
"man"
];
nativeBuildInputs = [
autoreconfHook
perl
pkg-config
];
buildInputs = [
aalib
alsa-lib
ffmpeg
flac
libGL
libGLU
libX11
libX11
libXext
libXext
libXinerama
libXinerama
libXv
libXv
libcaca
libcdio
libmng
libmpcdec
libpulseaudio
libtheora
libv4l
libvorbis
libxcb
libxcb
ncurses
perl
speex
vcdimager
zlib
];
env.NIX_LDFLAGS = "-lxcb-shm";
enableParallelBuilding = true;
strictDeps = true;
meta = {
homepage = "https://xine.sourceforge.net/";
description = "High-performance, portable and reusable multimedia playback engine";
license = with lib.licenses; [
gpl2Plus
lgpl2Plus
];
# No useful mainProgram
maintainers = with lib.maintainers; [ AndersonTorres ];
platforms = lib.platforms.linux;
};
})