1{ stdenv, fetchurl, coreutils }:
2
3stdenv.mkDerivation rec {
4 name = "findutils-4.6.0";
5
6 src = fetchurl {
7 url = "mirror://gnu/findutils/${name}.tar.gz";
8 sha256 = "178nn4dl7wbcw499czikirnkniwnx36argdnqgz4ik9i6zvwkm6y";
9 };
10
11 nativeBuildInputs = [ coreutils ];
12
13 doCheck = !stdenv.isDarwin;
14
15 outputs = [ "out" "info" ];
16
17 crossAttrs = {
18 # http://osdir.com/ml/bug-findutils-gnu/2009-08/msg00026.html
19 configureFlags = [ "gl_cv_func_wcwidth_works=yes" ];
20 };
21
22 enableParallelBuilding = true;
23
24 meta = {
25 homepage = http://www.gnu.org/software/findutils/;
26 description = "GNU Find Utilities, the basic directory searching utilities of the GNU operating system";
27
28 longDescription = ''
29 The GNU Find Utilities are the basic directory searching
30 utilities of the GNU operating system. These programs are
31 typically used in conjunction with other programs to provide
32 modular and powerful directory search and file locating
33 capabilities to other commands.
34
35 The tools supplied with this package are:
36
37 * find - search for files in a directory hierarchy;
38 * locate - list files in databases that match a pattern;
39 * updatedb - update a file name database;
40 * xargs - build and execute command lines from standard input.
41 '';
42
43 platforms = stdenv.lib.platforms.all;
44
45 license = stdenv.lib.licenses.gpl3Plus;
46 };
47}