mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 18:42:15 +00:00
a3baa41e0b
https://www.gnu.org/software/gengetopt/NEWS * deps, parallel build
42 lines
948 B
Nix
42 lines
948 B
Nix
{ fetchurl, stdenv, texinfo, help2man }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "gengetopt";
|
|
version = "2.23";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz";
|
|
sha256 = "1b44fn0apsgawyqa4alx2qj5hls334mhbszxsy6rfr0q074swhdr";
|
|
};
|
|
|
|
doCheck = true;
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
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/;
|
|
|
|
license = stdenv.lib.licenses.gpl3Plus;
|
|
|
|
maintainers = [ ];
|
|
platforms = stdenv.lib.platforms.all;
|
|
};
|
|
}
|