at 17.09-beta 868 B 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 22 meta = { 23 homepage = http://www.gnu.org/software/diffutils/diffutils.html; 24 description = "Commands for showing the differences between files (diff, cmp, etc.)"; 25 platforms = stdenv.lib.platforms.unix; 26 }; 27}