From 56cd5ac4db773ddfdd833ca34844927efdcaf3d3 Mon Sep 17 00:00:00 2001 From: "Yestin L. Harrison" Date: Sat, 27 Nov 2021 23:06:56 -0800 Subject: [PATCH] vcs: substitute standalone getopt outside of linux --- pkgs/applications/video/vcs/default.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pkgs/applications/video/vcs/default.nix b/pkgs/applications/video/vcs/default.nix index 4998797fcf3..37ea20718fd 100644 --- a/pkgs/applications/video/vcs/default.nix +++ b/pkgs/applications/video/vcs/default.nix @@ -1,11 +1,15 @@ { lib, stdenv, fetchurl, makeWrapper -, coreutils, ffmpeg, gawk, gnugrep, gnused, imagemagick, mplayer, util-linux +, coreutils, ffmpeg, gawk, gnugrep, gnused, imagemagick, mplayer +, util-linux, getopt , dejavu_fonts }: with lib; let version = "1.13.4"; - runtimeDeps = [ coreutils ffmpeg gawk gnugrep gnused imagemagick mplayer util-linux ]; + gopt = if stdenv.isLinux then util-linux else getopt; + runtimeDeps = [ + coreutils ffmpeg gawk gnugrep gnused imagemagick mplayer gopt + ]; in stdenv.mkDerivation { pname = "vcs";