vcs: init at 1.13.4

* vcs: init at 1.13.4

* Update pkgs/applications/video/vcs/default.nix

Co-Authored-By: symphorien <symphorien@users.noreply.github.com>

* Update pkgs/applications/video/vcs/default.nix

Co-authored-by: Ryan Mulligan <ryan@ryantm.com>

Co-authored-by: symphorien <symphorien@users.noreply.github.com>
Co-authored-by: Ryan Mulligan <ryan@ryantm.com>

authored by

Eric Litak
symphorien
Ryan Mulligan
and committed by
GitHub
028e05d8 d6d1c121

+64
+39
pkgs/applications/video/vcs/default.nix
···
··· 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 + }
+23
pkgs/applications/video/vcs/fonts.patch
···
··· 1 + --- a/vcs 2020-04-04 14:37:53.531095977 -0700 2 + +++ b/vcs 2020-04-04 14:40:46.459407878 -0700 3 + @@ -3669,18 +3669,8 @@ 4 + [[ ( -z $USR_FONT_TITLE ) && ( $FONT_TITLE != 'DejaVu-Sans-Book' ) ]] && return 5 + [[ ( -z $USR_FONT_TSTAMPS ) && ( $FONT_TSTAMPS != 'DejaVu-Sans-Book' ) ]] && return 6 + [[ ( -z $USR_FONT_SIGN ) && ( $FONT_SIGN != 'DejaVu-Sans-Book' ) ]] && return 7 + - # Try to locate DejaVu Sans 8 + - local dvs='' 9 + - if [[ -d /usr/local/share/fonts ]]; then 10 + - dvs=$(find /usr/local/share/fonts/ -type f -iname 'dejavusans.ttf') 11 + - fi 12 + - if [[ ( -z $dvs ) && ( -d /usr/share/fonts ) ]]; then 13 + - dvs=$(find /usr/share/fonts/ -type f -iname 'dejavusans.ttf') 14 + - fi 15 + - if [[ -z $dvs ]]; then 16 + - warn "Unable to locate DejaVu Sans font. Falling back to helvetica." 17 + - dvs=helvetica 18 + - fi 19 + + # Use DejaVu Sans, by default 20 + + local dvs='@dejavu_fonts@/share/fonts/truetype/DejaVuSans.ttf' 21 + [[ -z $USR_FONT_HEADING ]] && FONT_HEADING="$dvs" 22 + [[ -z $USR_FONT_TITLE ]] && FONT_TITLE="$dvs" 23 + [[ -z $USR_FONT_TSTAMPS ]] && FONT_TSTAMPS="$dvs"
+2
pkgs/top-level/all-packages.nix
··· 23775 23776 vcprompt = callPackage ../applications/version-management/vcprompt { }; 23777 23778 vcv-rack = callPackage ../applications/audio/vcv-rack { }; 23779 23780 vdirsyncer = with python3Packages; toPythonApplication vdirsyncer;
··· 23775 23776 vcprompt = callPackage ../applications/version-management/vcprompt { }; 23777 23778 + vcs = callPackage ../applications/video/vcs { }; 23779 + 23780 vcv-rack = callPackage ../applications/audio/vcv-rack { }; 23781 23782 vdirsyncer = with python3Packages; toPythonApplication vdirsyncer;