1{stdenv, fetchurl}:
2
3stdenv.mkDerivation rec {
4 name = "gperf-3.0.4";
5
6 src = fetchurl {
7 url = "mirror://gnu/gperf/${name}.tar.gz";
8 sha256 = "0gnnm8iqcl52m8iha3sxrzrl9mcyhg7lfrhhqgdn4zj00ji14wbn";
9 };
10
11 meta = {
12 description = "Perfect hash function generator";
13
14 longDescription = ''
15 GNU gperf is a perfect hash function generator. For a given
16 list of strings, it produces a hash function and hash table, in
17 form of C or C++ code, for looking up a value depending on the
18 input string. The hash function is perfect, which means that
19 the hash table has no collisions, and the hash table lookup
20 needs a single string comparison only.
21
22 GNU gperf is highly customizable. There are options for
23 generating C or C++ code, for emitting switch statements or
24 nested ifs instead of a hash table, and for tuning the algorithm
25 employed by gperf.
26 '';
27
28 license = stdenv.lib.licenses.gpl3Plus;
29
30 homepage = http://www.gnu.org/software/gperf/;
31 };
32}