2021-02-05 17:12:51 +00:00
|
|
|
{ fetchurl, lib, stdenv, texinfo, help2man }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "gengetopt";
|
|
|
|
version = "2.23";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "1b44fn0apsgawyqa4alx2qj5hls334mhbszxsy6rfr0q074swhdr";
|
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
2020-12-03 08:41:04 +00:00
|
|
|
# attempts to open non-existent file
|
|
|
|
preCheck = ''
|
|
|
|
rm tests/test_conf_parser_save.sh
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
# test suite is not thread safe
|
|
|
|
enableParallelBuilding = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ texinfo help2man ];
|
|
|
|
|
|
|
|
#Fix, see #28255
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace configure --replace \
|
|
|
|
'set -o posix' \
|
|
|
|
'set +o posix'
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Command-line option parser generator";
|
|
|
|
|
|
|
|
longDescription =
|
|
|
|
'' GNU Gengetopt program generates a C function that uses getopt_long
|
|
|
|
function to parse the command line options, to validate them and
|
|
|
|
fills a struct
|
|
|
|
'';
|
|
|
|
|
|
|
|
homepage = "https://www.gnu.org/software/gengetopt/";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
license = lib.licenses.gpl3Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
maintainers = [ ];
|
2021-02-05 17:12:51 +00:00
|
|
|
platforms = lib.platforms.all;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|