Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at netboot-syslinux-multiplatform 36 lines 1.1 kB view raw
1{lib, stdenv, fetchurl}: 2 3stdenv.mkDerivation rec { 4 pname = "gperf"; 5 version = "3.1"; 6 7 src = fetchurl { 8 url = "mirror://gnu/${pname}/${pname}-${version}.tar.gz"; 9 sha256 = "1qispg6i508rq8pkajh26cznwimbnj06wq9sd85vg95v8nwld1aq"; 10 }; 11 12 enableParallelBuilding = true; 13 14 meta = { 15 description = "Perfect hash function generator"; 16 17 longDescription = '' 18 GNU gperf is a perfect hash function generator. For a given 19 list of strings, it produces a hash function and hash table, in 20 form of C or C++ code, for looking up a value depending on the 21 input string. The hash function is perfect, which means that 22 the hash table has no collisions, and the hash table lookup 23 needs a single string comparison only. 24 25 GNU gperf is highly customizable. There are options for 26 generating C or C++ code, for emitting switch statements or 27 nested ifs instead of a hash table, and for tuning the algorithm 28 employed by gperf. 29 ''; 30 31 license = lib.licenses.gpl3Plus; 32 33 homepage = "https://www.gnu.org/software/gperf/"; 34 platforms = lib.platforms.unix; 35 }; 36}