@@ -0,0 +1,39 @@
1+{ stdenv, fetchurl, makeWrapper
2+, coreutils, ffmpeg, gawk, gnugrep, gnused, imagemagick, mplayer, utillinux
3+, dejavu_fonts
4+}:
5+with stdenv.lib;
6+let
7+ version = "1.13.4";
8+ runtimeDeps = [ coreutils ffmpeg gawk gnugrep gnused imagemagick mplayer utillinux ];
9+in
10+stdenv.mkDerivation {
11+ pname = "vcs";
12+ inherit version;
13+ src = fetchurl {
14+ url = "http://p.outlyer.net/files/vcs/vcs-${version}.bash";
15+ sha256 = "0nhwcpffp3skz24kdfg4445i6j37ks6a0qsbpfd3dbi4vnpa60a0";
16+ };
17+
18+ unpackCmd = "mkdir src; cp $curSrc src/vcs";
19+ patches = [ ./fonts.patch ];
20+ nativeBuildInputs = [ makeWrapper ];
21+ doBuild = false;
22+
23+ inherit dejavu_fonts;
24+ installPhase = ''
25+ mkdir -p $out/bin
26+ mv vcs $out/bin/vcs
27+ substituteAllInPlace $out/bin/vcs
28+ chmod +x $out/bin/vcs
29+ wrapProgram $out/bin/vcs --argv0 vcs --set PATH "${makeBinPath runtimeDeps}"
30+ '';
31+
32+ meta = {
33+ description = "Generates contact sheets from video files";
34+ homepage = "http://p.outlyer.net/vcs";
35+ license = licenses.cc-by-nc-sa-30;
36+ maintainers = with maintainers; [ elitak ];
37+ platforms = with platforms; unix;
38+ };
39+}