summary refs log tree commit diff
path: root/pkgs/development/libraries/ffmpeg-sixel/default.nix
blob: d01f22c0b3a173e3dce8150d6a815a17675a7a0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ stdenv, fetchFromGitHub, pkg-config, libsixel, yasm
}:

stdenv.mkDerivation {

  pname = "ffmpeg-sixel";
  version = "nightly-2.3.x";

  src = fetchFromGitHub {
    owner = "saitoha";
    repo = "FFmpeg-SIXEL";
    rev = "8566fdb8b7516b54aed58f329dc216e06fc10052";
    sha256 = "00s2lggfdj2ibpngpyqqg7360p7yb69ys1ppg59yvv0m0mxk5x3k";
  };

  nativeBuildInputs = [ pkg-config ];
  buildInputs = [
    libsixel
    yasm
  ];

  configurePhase = ''
    ./configure --enable-libsixel --prefix=$out
  '';

  postInstall = ''
    mv $out/bin/ffmpeg $out/bin/ffmpeg-sixel
  '';

  meta = with stdenv.lib; {
    description = "A complete, cross-platform solution to record, convert and stream audio and video, extended to support console graphics";
    homepage = "http://www.ffmpeg.org/";
    license = licenses.lgpl3;
    platforms = platforms.linux;
    maintainers = with maintainers; [ vrthra ];
  };
}