···11+{ lib, stdenv, fetchFromGitHub, ffmpeg, libjpeg, libpng, pkg-config }:
22+33+stdenv.mkDerivation rec {
44+ pname = "harvid";
55+ version = "0.8.3";
66+77+ src = fetchFromGitHub {
88+ owner = "x42";
99+ repo = "harvid";
1010+ rev = "v${version}";
1111+ sha256 = "0l1plfsfh2ixhlzg3hqqvjj42z7g422718a9kgbh7b4p882n71x7";
1212+ };
1313+1414+ nativeBuildInputs = [ pkg-config ];
1515+1616+ buildInputs = [ ffmpeg libjpeg libpng ];
1717+1818+ makeFlags = [ "DESTDIR=$(out)" "libdir=\"/lib\"" ];
1919+2020+ postInstall = ''
2121+ mkdir -p $out/bin
2222+ mv $out/usr/local/bin/* $out/bin
2323+ mv $out/usr/local/share $out/
2424+ rm -r $out/usr
2525+ '';
2626+2727+ meta = with lib; {
2828+ description =
2929+ "Decodes still images from movie files and serves them via HTTP";
3030+ longDescription = ''
3131+ harvid's intended use-case is to efficiently provide frame-accurate data
3232+ and act as second level cache for rendering the video-timeline in Ardour,
3333+ but it is not limited to that: it has applications for any task that
3434+ requires a high-performance frame-accurate online image extraction
3535+ processor.
3636+ '';
3737+ homepage = "http://x42.github.io/harvid";
3838+ license = licenses.gpl2Plus;
3939+ platforms = platforms.linux;
4040+ maintainers = with maintainers; [ mitchmindtree ];
4141+ };
4242+}
+48
pkgs/tools/video/xjadeo/default.nix
···11+{ lib, stdenv, autoreconfHook, fetchFromGitHub, ffmpeg, freetype, libGLU
22+, libjack2, liblo, libX11, libXv, pkg-config, portmidi, xorg }:
33+44+stdenv.mkDerivation rec {
55+ pname = "xjadeo";
66+ version = "0.8.10";
77+88+ src = fetchFromGitHub {
99+ owner = "x42";
1010+ repo = "xjadeo";
1111+ rev = "v${version}";
1212+ sha256 = "0dma4cjgbrpy16x63zvfr0xss4lryl0zw7nvixvhq2f6z8day1ds";
1313+ };
1414+1515+ nativeBuildInputs = [ autoreconfHook pkg-config ];
1616+1717+ buildInputs = [
1818+ ffmpeg
1919+ libjack2
2020+ libX11
2121+ xorg.libXext
2222+ xorg.libXpm
2323+ # The following are recommended in the README, but are seemingly
2424+ # unnecessary for a successful build. That said, the result of including
2525+ # these in the build process is possibly required at runtime in some cases,
2626+ # but I've not the time to test thoroughly for these cases. Should
2727+ # consider investigating and splitting these into options in the future.
2828+ freetype
2929+ libGLU
3030+ liblo
3131+ libXv
3232+ portmidi
3333+ ];
3434+3535+ meta = with lib; {
3636+ description = "The X Jack Video Monitor";
3737+ longDescription = ''
3838+ Xjadeo is a software video player that displays a video-clip in sync with
3939+ an external time source (MTC, LTC, JACK-transport). Xjadeo is useful in
4040+ soundtrack composition, video monitoring or any task that requires to
4141+ synchronizing movie frames with external events.
4242+ '';
4343+ homepage = "http://xjadeo.sourceforge.net";
4444+ license = licenses.gpl2Plus;
4545+ platforms = platforms.linux;
4646+ maintainers = with maintainers; [ mitchmindtree ];
4747+ };
4848+}