2019-08-22 02:57:08 +02:00
|
|
|
{ fetchurl, stdenv, texinfo, help2man }:
|
2010-01-22 18:00:44 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-22 02:57:08 +02:00
|
|
|
pname = "gengetopt";
|
|
|
|
version = "2.23";
|
2010-01-22 18:00:44 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-22 02:57:08 +02:00
|
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
|
|
|
|
sha256 = "1b44fn0apsgawyqa4alx2qj5hls334mhbszxsy6rfr0q074swhdr";
|
2010-01-22 18:00:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2019-08-22 02:57:08 +02:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ texinfo help2man ];
|
|
|
|
|
|
|
|
#Fix, see #28255
|
2017-09-20 19:23:14 +02:00
|
|
|
postPatch = ''
|
2019-08-22 02:57:08 +02:00
|
|
|
substituteInPlace configure --replace \
|
|
|
|
'set -o posix' \
|
|
|
|
'set +o posix'
|
2017-09-20 19:23:14 +02:00
|
|
|
'';
|
|
|
|
|
2010-01-22 18:00:44 +01:00
|
|
|
meta = {
|
2014-08-24 16:21:08 +02:00
|
|
|
description = "Command-line option parser generator";
|
2010-01-22 18:00:44 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2018-12-01 19:22:13 +01:00
|
|
|
homepage = https://www.gnu.org/software/gengetopt/;
|
2010-01-22 18:00:44 +01:00
|
|
|
|
2014-06-19 06:19:00 +02:00
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
2010-01-22 18:00:44 +01:00
|
|
|
|
2013-08-16 23:44:33 +02:00
|
|
|
maintainers = [ ];
|
2010-01-22 18:00:44 +01:00
|
|
|
platforms = stdenv.lib.platforms.all;
|
|
|
|
};
|
|
|
|
}
|