@@ -0,0 +1,37 @@
1+{ stdenv, fetchFromGitHub, pkgconfig, perl, libsixel, yasm
2+}:
3+
4+stdenv.mkDerivation rec {
5+
6+ name = "ffmpeg-sixel-${version}";
7+ version = "nightly-2.3.x";
8+
9+ src = fetchFromGitHub {
10+ owner = "saitoha";
11+ repo = "FFmpeg-SIXEL";
12+ rev = "8566fdb8b7516b54aed58f329dc216e06fc10052";
13+ sha256 = "00s2lggfdj2ibpngpyqqg7360p7yb69ys1ppg59yvv0m0mxk5x3k";
14+ };
15+
16+ buildInputs = [
17+ pkgconfig
18+ libsixel
19+ yasm
20+ ];
21+
22+ configurePhase = ''
23+ ./configure --enable-libsixel --prefix=$out
24+ '';
25+
26+ postInstall = ''
27+ mv $out/bin/ffmpeg $out/bin/ffmpeg-sixel
28+ '';
29+
30+ meta = with stdenv.lib; {
31+ description = "A complete, cross-platform solution to record, convert and stream audio and video, extended to support console graphics";
32+ homepage = http://www.ffmpeg.org/;
33+ license = licenses.lgpl3;
34+ platforms = platforms.linux;
35+ maintainers = with maintainers; [ vrthra ];
36+ };
37+}