1 { fetchurl, lib, stdenv, texinfo, help2man }:
3 stdenv.mkDerivation rec {
8 url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
9 sha256 = "1b44fn0apsgawyqa4alx2qj5hls334mhbszxsy6rfr0q074swhdr";
13 # attempts to open non-existent file
15 rm tests/test_conf_parser_save.sh
18 # test suite is not thread safe
19 enableParallelBuilding = false;
21 nativeBuildInputs = [ texinfo help2man ];
25 substituteInPlace configure --replace \
30 env = lib.optionalAttrs stdenv.cc.isClang {
31 CXXFLAGS = "-std=c++14";
35 description = "Command-line option parser generator";
36 mainProgram = "gengetopt";
39 '' GNU Gengetopt program generates a C function that uses getopt_long
40 function to parse the command line options, to validate them and
44 homepage = "https://www.gnu.org/software/gengetopt/";
46 license = lib.licenses.gpl3Plus;
49 platforms = lib.platforms.all;