vcs: substitute standalone getopt outside of linux

+6 -2
+6 -2
pkgs/applications/video/vcs/default.nix
··· 1 1 { lib, stdenv, fetchurl, makeWrapper 2 - , coreutils, ffmpeg, gawk, gnugrep, gnused, imagemagick, mplayer, util-linux 2 + , coreutils, ffmpeg, gawk, gnugrep, gnused, imagemagick, mplayer 3 + , util-linux, getopt 3 4 , dejavu_fonts 4 5 }: 5 6 with lib; 6 7 let 7 8 version = "1.13.4"; 8 - runtimeDeps = [ coreutils ffmpeg gawk gnugrep gnused imagemagick mplayer util-linux ]; 9 + gopt = if stdenv.isLinux then util-linux else getopt; 10 + runtimeDeps = [ 11 + coreutils ffmpeg gawk gnugrep gnused imagemagick mplayer gopt 12 + ]; 9 13 in 10 14 stdenv.mkDerivation { 11 15 pname = "vcs";