at 18.09-beta 1.0 kB view raw
1{ stdenv, fetchurl, xz, coreutils ? null }: 2 3stdenv.mkDerivation rec { 4 name = "diffutils-3.6"; 5 6 src = fetchurl { 7 url = "mirror://gnu/diffutils/${name}.tar.xz"; 8 sha256 = "1mivg0fy3a6fcn535ln8nkgfj6vxh5hsxxs5h6692wxmsjyyh8fn"; 9 }; 10 11 outputs = [ "out" "info" ]; 12 13 nativeBuildInputs = [ xz.bin ]; 14 /* If no explicit coreutils is given, use the one from stdenv. */ 15 buildInputs = [ coreutils ]; 16 17 configureFlags = 18 # "pr" need not be on the PATH as a run-time dep, so we need to tell 19 # configure where it is. Covers the cross and native case alike. 20 stdenv.lib.optional (coreutils != null) "PR_PROGRAM=${coreutils}/bin/pr" 21 ++ stdenv.lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "gl_cv_func_getopt_gnu=yes"; 22 23 meta = with stdenv.lib; { 24 homepage = http://www.gnu.org/software/diffutils/diffutils.html; 25 description = "Commands for showing the differences between files (diff, cmp, etc.)"; 26 license = licenses.gpl3; 27 platforms = platforms.unix; 28 }; 29}